Quantcast
Channel: SCN: Message List - Service-Oriented Architecture (SOA) and SAP
Viewing all articles
Browse latest Browse all 1056

Re: Change the SOAP header from web service call

$
0
0

Hi Attila,

 

Correct. This is an outbound client proxy. The web service call actually works but the problem I have is that SAP is generating the following XML header:

 

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

<wsa:To soap-env:mustUnderstand="1"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://csg-rdntqas:81/csg-rdntqas</wsa:To>

<wsa:From xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"><wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address></wsa:From>

<wsa:ReplyTo xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"><wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address></wsa:ReplyTo>

<wsa:FaultTo xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"><wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address></wsa:FaultTo>

<wsa:Action soap-env:mustUnderstand="1"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"></wsa:Action><wsa:MessageID
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">uuid:e38e7b5b-79fa-e3f1-a61e-005056ae0535</wsa:MessageID>

</soap-env:Header>

<soap-env:Body>

 

But the web server that is being called does not like the "wsa" elements on the XML document. Therefore, I want to manipulate the header and remove the "wsa:Form", "wsa:ReplyTo", "wsa:FaultTo", "wsa:Address", "wsa:Action" and  "wsa:MessageID" elements before calling the web service.

 

Thank you.


Viewing all articles
Browse latest Browse all 1056

Trending Articles