Outside IS, we can pass the SOAP message with name space declared either at root element or individual elements. Both will work. we can edit the soap message the way we need.
The issue is the soap message having the same name space declared at all complex type elemnts. If the namespace was declared to root level, the declartion was needed only once and remove the ned of declaring again at each complex type elements. effectively reduces the soap payload size as well.
An example below to elaborate this:
SOAP request send by IS via SOAP consumer connector as below:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns1:complexType1 [b]xmlns:ns1="http://www.ns1.com/"[/b]>
<ns1:filed1></ns1:filed1>
<ns1:filed2>false</ns1:filed2>
</ns1:complexType1>
<ns1:complexType2 [b]xmlns:ns1="http://www.ns1.com/"[/b]>
<ns1:filed1></ns1:filed1>
<ns1:filed2>false</ns1:filed2>
</ns1:complexType2>
</soapenv:Body>
</soapenv:Envelope>
But if we can control the name space declaration at root level like below, it will help to save payload size:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" [b]xmlns:ns1="http://www.ns1.com/"[/b]>
<soapenv:Body>
<ns1:complexType1 >
<ns1:filed1></ns1:filed1>
<ns1:filed2>false</ns1:filed2>
</ns1:complexType1>
<ns1:complexType2 >
<ns1:filed1></ns1:filed1>
<ns1:filed2>false</ns1:filed2>
</ns1:complexType2>
</soapenv:Body>
</soapenv:Envelope>
So I am looking for the option/configuration to handle this in IS (outbound soap calls).
#webMethods#soa#API-Management