Skip to Content

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

why sap client id does not work in web service call from .net

I use web service to call sap RFC function from .net, and the web service wsdl address is http://172.18.95.104:8000/sap/bc/soap/wsdl11?services=some_rfc_function&sap-client=130 , which is get the data from sap client 130 , now I want to get the data from client 180 , and I set the wsdl address to http://172.18.95.104:8000/sap/bc/soap/wsdl11?services=some_rfc_function&sap-client=180 , and the returned wsdl is the same as sap client 130 , in .net program, I get the data is from 130, not from 180, how can I do?

replied

regarding your question :

WSDL is the same, but the connexion not :

SAP SIDE

1 - Check on your SAP client 180 that your RFC is available.

2 - Check that the SAP WebAS service soap/rfc is activated with transaction SICF (normally yes)

3 - Check that the RFC are exposed by SAP Soap/rfc service on the SAP WebAS.

4 - to test it you can create a alias with SICF and hardcode a user+password

.Net side.

WSDL describes the service. That's normal that the same because sap client is just a parameter. On your .net project search in the code generated by Visual Studio when you add a webreference the url of your connexion. And you just have to modify it... Can also do it in your own code... URL of the webservice should be modified by an attribute....

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