Skip to Content
0
Former Member
Jun 29, 2009 at 06:32 AM

Problem in Executing Model using WSDL imported from the Service Registry

33 Views

Hi All,

I have imported the following WSDL from the HU2 System in my WebDynpro project.

http://erp.esworkplace.sap.com/sap/bc/srt/xip/sap/ecc_customeraddressbasicdataqr/version2?sap-client=800&wsdl=1.1&mode=sap_wsdl

when iam trying to import the WSDL without creating logical destinations in my webDynpro application, it is showing the following exception. Iam working in CE 7.1 Ehp1

com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://erp.esworkplace.sap.com/sap/bc/srt/xip/sap/ecc_customeraddressbasicdataqr/version2?sap-client=800&wsdl=1.1&mode=sap_wsdl"

i set the invocation parameters to the model using the below code.

wdContext.currentRequest_CustomerERPAddressBasicDataByNameAndAddressQueryResponse_InElement().modelObject().setInvokerProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY, "");

wdContext.currentRequest_CustomerERPAddressBasicDataByNameAndAddressQueryResponse_InElement().modelObject().setInvokerProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY, "");

Regards,

Gayathri

Edited by: gayathri kavi on Jun 29, 2009 12:07 PM