on 08-06-2009 9:56 PM
Hello all,
I imported adaptive web service model in webdynpro java, and tried to execute the model. I am getting following exception:
Exception on execution of web service on destination 'SP_DEST' for operation 'Query' in interface 'QueryServiceSoap': Invalid Response Code: (401) Unauthorized. The requested URL was:"http://x.x.x.x:xxxx/_vti_bin/spsearch.asmx"; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://x.x.x.x:xxxx/_vti_bin/spsearch.asmx"
In visual admin I have put basic authentication with username and password for destinations.
Any solutions please...?
Thanks in advance,
Sandesh
Hi
it might be due to Webservice deastinations are not propertly configured in visual administrator.
Login to visual administator check whether destinations are ok or not?
in VA,Go to Services->Destinations->Select the destination and test it once.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Anup,
I tested both of my destinations. One of destination is giving error:
"Error during operation. Received HTTP response 401 "
But I have put correct login credentials, why is it still giving that error. Is there any other setting to be done.
I have already awarded you points for helpful answer.
Any help from anyone would be highly appreciated.
Thanks,
Sandesh
Hi
Probably need to restart the server, if the problem still exists then need to configure wsdl destionation properly.
Check this to configure wsdl destionation
Thanks
Hi
Probably you need to configure second destination(As you suggested above)
check this hlep might help you.[Creating Web Service Physical Destinations|http://help.sap.com/saphelp_nwce711/helpdata/en/47/fb728265553c88e10000000a42189c/content.htm]
[ Configuring Web Services and Web Service Clients in the SAP NetWeaver Administrator |http://help.sap.com/saphelp_nwce10/helpdata/en/44/4d2bb1c6b00597e10000000a155369/content.htm]
Thanks
Hi Sandesh,
I think the authorization is missing for the model object.
Check this [wiki|https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=74383659].
set user id and password in WS execute method.
Feel free to revert back if this could not resolve your issue.
Regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.