on 09-25-2009 1:39 AM
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?
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
Try both the options.
Best Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.