Hi,

 

I have problems when validating the incoming soap call which has been generated with the Axis2-generated stub ( I am using the latest nightly build). The problem is that the namespace is not recognized anymore. This is the error message:

The element 'MessageTag' in namespace 'http://www.stockholm.se/xml/namespace/sgis/messageTag.xsd' has invalid child element 'IdTag'. List of possible elements expected: 'IdTag' in namespace 'http://www.stockholm.se/xml/namespace/sgis/messageTag.xsd'.

 

This is the generated call before it has been packed into the SOAP envelope:

 

<GetBelagenhetsadresser xmlns="http://www.stockholm.se/xml/namespace/portal/interface" xmlns:mes="http://www.stockholm.se/xml/namespace/sgis/messageTag.xsd">

  <Belagenhetsadresser>

    <mes:MessageTag>

      <mes:IdTag Id="2"/>

    </mes:MessageTag>

  </Belagenhetsadresser>

</GetBelagenhetsadresser>

 

What I found out is that the toEnvelope method in my Stub adds this xmlns=”” in the IdTag element. That’s the call after it has been packed into the Soap envelope:

 

<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header

/><soapenv:Body><GetBelagenhetsadresser xmlns="http://www.stockholm.se/xml/namespace/portal/interface"><Belagenhetsadresser><MessageTag

xmlns="http://www.stockholm.se/xml/namespace/sgis/messageTag.xsd"><IdTag xmlns="" Id="2"

/></MessageTag></Belagenhetsadresser></GetBelagenhetsadresser></soapenv:Body></soapenv:Envelope>

 

 

Where does that come from? How can I avoid that? I have attached the xsd files for your attention!

 

Thanks a lot for your help,

Felix

 

Attachment: MessageTag.xsd
Description: Binary data

Attachment: Belagenhetsadresser.xsd
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to