Hi Marcello,
I am using the same code and works great but the client has concern in using the userid/password in ABAP code, to avoid that In SOAMANAGER I have maintained the user/password. Now I have to remove the below piece of code. Since I remove the header item obviously the lv_raw variable is null and there is exception.
Now the question is how can I remove this header from the code and make the WebService to work based on SOAMANAGER settings. I also notice that in the given web service there is a tag AuthHeader tag , since this is part of the WebServie do I need to userid and password in ABAP code.
<s:element name="AuthHeader" type="tns:AuthHeader"/>
-<s:complexType name="AuthHeader">
-<s:sequence><s:element name="sUserName" type="s:string" maxOccurs="1" minOccurs="0"/>
<s:element name="sPassword" type="s:string" maxOccurs="1" minOccurs="0"/>
</s:sequence>
<s:anyAttribute/>
CONCATENATE
'<soap:Header>'
'<AuthenticationInfo xmlns:s0="urn:CHG_ChangeInterface_WS">'
'<userName>' user '</userName>'
'<password>' password '</password>'
'</AuthenticationInfo>'
'</soap:Header>' INTO lv_raw.
Thanks
Krish