on 04-12-2006 5:59 PM
Hi All,
I am getting the following error while invoking a web service,
java.rmi.RemoteException: Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
Can anyone help.
Thanks in Advance
Chemmanz
If you use Adpative WebService thn you can configure those on VisualAdmin also.
Check the blog /people/anilkumar.vippagunta2/blog/2006/12/13/secured-webservices-ii
Regards,ANilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Im getting a similar error, while testing the demoszenario "Service-Enabled Procurement Scenario" from the SAP discovery system. The error appears in the first step when a salesorder should be created via a soap-adapter from an adobe offline form.
The error message in the status field is:
Error: RemoteException: Service call exception; nested exception is:
com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:http://iwdfvm2160:51080/XISOAPAdapter/MessageServlet?channel=:WebService:SO_WS_SOAP_SENDER
It would be nice if somebody could tell us how to set the authorization.
Thanks and regards
marlies
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chemmanz,
This error message appears when you dont have the necessary authorizations to access the web service.
Thanks,
Sam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Chemmanz,
You have generated WS Request object with execute method, i.e. you are already have SomeWs_Request.execute(). So just before execution call
SomeWs_Request._setUser("user")
SomeWs_Request._setPassword("plain-password")
Valery Silaev
SaM Solutions
Hi Valery
thanks for your answer. The problem is, that this is the demo Procurement scenario from the sap discovery system. And yet I don´t have access to the code. I only know, that the adobe form is presented via sap portal. I found the iview with the sales formular via portal content administration. But I'm not able to edit the object. But is this the right way to search for the code where the setUser is set. Another question is which user is the correct user which has the authorisation to create the salesorder. From the j2ee administrator log I get the message, that the user j2ee_guest is not authorized. Where is the connection between the user proc_sales and j2ee_guest?
In XI as far as I know the user PIAPPLUSER is used to route the message via soap adapter and abap proxy to the ERP System.
Who rejects the call ? Fact is, that in the RWB no message is incoming.
Regards Marlies
I found the solution on my own. Here it is
Goto VisualAdmin:
Select Cluster/Services/Destinations
Select Webservice
Select sap.com/XApps_XI_SO_WS_Proxy/com.sap.esadiscovery.so.wsproxy.XApps_XI_SO_WS_ProxyName/ESA_MI_SO_CREATE_WS_INPort
Change the Hostname in the following Custom URL to the right hostname: http://iwdfvm1127.wdf.sap.corp:51080/XISOAPAdapter/MessageServlet?channel=:WebService:GM_WS_SOAP_SEN...
In our case the correct hostname is iwdfvm2160.
Further set the authentication to basic and fill username with PIAPPLUSER and Password with the approriate password
regards Marlies
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.