Skip to Content
0
Jan 12, 2012 at 03:25 PM

Problems Configuring back-end webservice using SICF TRANSACTION

47 Views

Hello,

Iu2019m trying to consume a Back-Endu2019s Web Service in a Visual Studio C# application with a SAP Logon Ticket. The configuration of this webservice is displayed in the following picture:

[http://imageshack.us/photo/my-images/853/webserviceconfig.jpg/]

After getting the SAP Logon Ticket (using the user/pass credentials as the parameters in the url of the portal), Iu2019m invoking a method in that webservice using the sap logon ticket in the cookie Container or directly using my credentials:

myProxy.Credentials = new System.Net.NetworkCredential(user, password);

myProxy.CookieContainer = myTicket.CookieContainer;

However, in both scenarios, I get the following error: u201CThe request failed with HTTP status 401: Unauthorizedu201D

I imported the web service using its WSDL because I was receiving this error:

There was an error downloading 'http://192.168.0.50:8020/sap/bc/srt/rfc/sap/ZBSYN_GET_CUSTOMER_VALUE?sap-client=800'.

The request failed with the error message:

--

<soap-env:Envelope><soap-env:Body><soap-env:Fault><faultcode>soap-env:Server</faultcode><faultstringxml:lang="en">SOAP processing failure, error id = 112 </faultstring></soap-env:Fault></soap-env:Body></soap-env:Envelope>

This seems to be a configuration problem, can someone help me?

Best Regards,

Vasco Pessanha