Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SOAP Connection vs RFC Connection

I'm developing a .Net Connector Proxy for two BW BAPIs :

<b>BAPI_MDPROVIDER_GET_KEY_DATE</b> and <b>BAPI_MDPROVIDER_SET_KEY_DATE</b> in order to manage the key date for some MDX queries on the same BW System. When I use the RFC Connection for my proxy, all is Ok and I'm able to set and retrive the new Key Date, but when I try to use the SOAP Connection it doesn't work (no SAP Session between the 2 calls ?).

The code is

BAPIRET2 ret= new BAPIRET2();

string kd;

sapProxy11.Bapi_Mdprovider_Set_Key_Date("20020101", out ret);

sapProxy11.Bapi_Mdprovider_Get_Key_Date(out kd, out ret);


Former Member

It could also work that you have actually 2 WebService proxies, but share the CookieContainer:

CookieContainer cookies = new CookieContainer();

WSProxy1 proxy1 = new WSProxy1();
WSProxy2 proxy2 = new WSProxy2();
proxy1.CookieContainer = cookies;
proxy2.CookieContainer = cookies;

string orgUrl = proxy1.Url;
proxy1.Url = orgUrl + "?session_mode=1";
proxy1.Url = orgUrl;
proxy1.Url = orgUrl + "?session_mode=2";

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question