Skip to Content
0
Former Member
Jan 10, 2007 at 04:23 PM

Consume WSDL in ABAP proxy : Issue with name space

40 Views

Hi,

I was trying to consume a WSDL in ABAP and I have created ABAP proxy using wizard in SE80 and also did the LPCONFIG.

While calling the proxy methods it is throughing the "authrization failed" error because of the following issue.I have successfully executed same WSDL from some third party tools with out error.only difference I have observed in SOAP request is, Third party tools passing all name spaces at envelope level but in ABAP proxy it is not passing all name spaces at envelope level.

1. SOAP genarated from WSDL in third party tool.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.xxxxx.com ">

<soap:Body>

<tns:<b>GetKMContent</b>>

<tns:request>

<tns:clientID>1</tns:clientID>

<tns:employeeID>307478</tns:employeeID>

<tns:languageCountryCode>en-US</tns:languageCountryCode>

<tns:wscVariables>

<tns:empcountry>US</tns:empcountry>

</tns:wscVariables>

</tns:request>

</tns:GetKMContent>

</soap:Body>

</soap:Envelope>

SOAP genarated from WSDL in ABAP proxy.

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">

<soap-env:Header>

http://www.sap.com/webas/630/soap/features/runtime/tracing/">

Fullhttp:// Full" target="_blank">www.sap.com/webas/630/soap/features/runtime/tracing/">Full>

</n0:Trace></soap-env:Header>

<soap-env:Body>

GetKMContent xmlns:nr1=" http://schemas.xxxxx.com ">

<nr1:request>

<nr1:clientID>1</nr1:clientID>

<nr1:employeeID>307478</nr1:employeeID>

<nr1:languageCountryCode>en-US</nr1:languageCountryCode>

<nr1:wscVariables>

<nr1:empcountry>US</nr1:empcountry>

</nr1:wscVariables>

</nr1:request>

</nr1:GetKMContent>

</soap-env:Body>

</soap-env:Envelope>

I was trying to use the SOAP genarated in ABAP proxy in thrid party tool and end up with same "authrization failed " error. If I move the name space nr1 from <nr1:GetKMContent xmlns:nr1="http://schemas.xxxxx.com "> GetKMContent node to soap-env:Envelope http://schemas.xmlsoap.org/soap/envelope/" xmlns:nr1=" http://schemas.xxxxx.com "> then it is working fine.

Question :Is there any way in ABAP proxy to pass name space at soap-env:Envelope level or is there any way to change the SOAP request once it is genarated from ABAP Proxy?. Is there any API to change SOAP information?

Thanks,