Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

SOAP namespace alias changing on SOAP Service

Not applicable

Hi,

I'm creating and SOAP Service and for some reason Apigee is changing the alias.

Here are two examples, one from Apigee (capture on Trace) and other from SoapUI.

Apigee

<s12:Envelope 
    xmlns:s12="http://www.w3.org/2003/05/soap-envelope">
    <s12:Header 
        xmlns:wsa="http://www.w3.org/2005/08/addressing">
        <wsse:Security soap:mustUnderstand="true" 
            xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" 
            xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsse:UsernameToken>
                <wsse:Username>****</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">****</wsse:Password>
            </wsse:UsernameToken>
        </wsse:Security>
        <wsa:To>https://someurl</wsa:To>
        <wsa:Action>http://ESB.Mongeral/Documento/IDocumento/ListaDocumentos</wsa:Action>
    </s12:Header>
    <s12:Body>
        <ns1:ListaDocumentos xmlns:ns1="http://ESB.Mongeral/Documento" />
    </s12:Body>
</s12:Envelope>

SoapUI

<soap:Envelope 
    xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header 
        xmlns:wsa="http://www.w3.org/2005/08/addressing">
        <wsse:Security soap:mustUnderstand="true" 
            xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" 
            xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsse:UsernameToken>
                <wsse:Username>****</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">****</wsse:Password>
            </wsse:UsernameToken>
        </wsse:Security>
        <wsa:To>https://someurl</wsa:To>
        <wsa:Action>http://ESB.Mongeral/Documento/IDocumento/ListaDocumentos</wsa:Action>
    </soap:Header>
    <soap:Body>
        <doc:ListaDocumentos xmlns:doc="http://ESB.Mongeral/Documento" />
    </soap:Body>
</soap:Envelope>

You'll notice that Apigee is changing "soap" and "doc" alias to "ns12" and "ns1".

WIth this change our service can't understand the message, and so, fails.

Is there any way to make Apigee follow what is on the wsdl?

1 1 6,928
1 REPLY 1