cancel
Showing results for 
Search instead for 
Did you mean: 

PI as Webservice provider - URL with username and password

0 Kudos

Dear Experts,

I need to test my webservice in PI from a SOAP client like XMLSpy or SOAPUI.

I tested the URL from the browser. It prompted for the username and password and worked.

How do I pass the username and password in the URL when I call this from the SOAP clients?

I tried the following format:

http://<server:5xxxx>/XISOAPAdapter/MessageServlet?channel=:<bs>:<soap sender channel>&sap-user=<username>&sap-password=<password>

I still got a 401 Unauthorized response back.

Any ideal please?

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member183906
Active Contributor
0 Kudos

Hi

1) testing through XML Spy

In your WSDL file provide URL in -

<soap:address location="http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>

While sending request to server,it will ask XI/PI user id and password itself. The user id must have authorization to invoke web service.Better take SAP_ALL or PIAPPLUSER authorization in this id.

2) You can pass user id and password also in this URL

http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel>&sap-user=<username>&sap...;

Try both the options.

Best Regards

Former Member
0 Kudos

Hi Param,

This is not possible. But instead of sending to soap adapter in the wsdl url while creating for soap sender communication channel give the integration engine url. Then it will allow to skip the user id and pwd. You should create the url like mentioned by stefan in his blog:

/people/stefan.grube/blog/2006/09/21/using-the-soap-inbound-channel-of-the-integration-engine

I think the other way would be to use soap axis framework where you can add user name and pwd in your moudle configuration and this will add to the url before it hits the adapter.

Regards,

---Satish

0 Kudos

Satish,

Thank u for the response. Still no success.

Former Member
0 Kudos

Hi Param,

It works for me without a userid and pwd if I post to integrationengine. Can you give the wsdl what you are trying to post? If you try to do this are you still getting the 401 error?

Regards,

---Satish

Former Member
0 Kudos

Hi Param,

I was also getting the same response while trying the SOAP<----> XI<--


>SAP scenario. But this 401 error was coming from the unauthorization of receiver XI adapter on SAP system. Kindly check if you are getting 401 unauthorized error due to the XI web service or the access on the end receiver system.,

Thanks

Ajay Garg