I have an OSB proxy exposed as a WS. The proxy consumes a business service which is of service type "Any SOAP Service". The business service does an http post of the SOAP formatted XML to an external service. Everything looks good except that when I see the payload being posted to the external service the namespace elements are different between the soap envelope and the header/body. This causes the external service to fail as expected because of this mismatch in namespaces. The payload being posted to the external service by the business service appears as follows:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<DeliveryInformation xmlns:ns2="http://www.digitaloilfield.com/ocp" xmlns="http://www.digitaloilfield.com/ocp">
...
</DeliveryInformation>
</env:Header>
<env:Body xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<OrderChange pid:transactionPurposeIndicator="Replace" xmlns:ns="http://www.api.org/pidXML" xmlns="http://www.api.org/pidXML" xmlns:pid="http://www.api.org/pidXML">
</OrderChange>
</env:Body>
</soapenv:Envelope>
Can someone tell me how to make these namespaces the same?
Regards,
M -