[jbossws-issues] [JBoss JIRA] Updated: (JBWS-1138) DOMEnvelopeBuilder misses global namespace declaration

Darran Lofthouse (JIRA) jira-events at lists.jboss.org
Thu Sep 13 13:04:10 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBWS-1138?page=all ]

Darran Lofthouse updated JBWS-1138:
-----------------------------------

    Description: 
I have just been testing a deployment using the latest version of the JBossWS code and the default request message generated by SoapUI is being rejected.

If I send the following message: -
(typ is defined on soapenv:Envelope)

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://www.jboss.org/support/phonebook/types">
   <soapenv:Body>
      <typ:lookup>
         <firstName>Darran</firstName>
         <surname>Lofthouse</surname>
      </typ:lookup>
   </soapenv:Body>
</soapenv:Envelope>

It is rejected with the following error: -

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
   <env:Header/>
   <env:Body>
      <env:Fault>
         <faultcode>env:Client</faultcode>
         <faultstring>org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: The prefix "typ" for element "typ:lookup" is not bound. @ *unknown*[1,13]</faultstring>
      </env:Fault>
   </env:Body>
</env:Envelope>

However if I modify the request message to : - (Moving the namespace from the Envelope element to the lookup element)

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <typ:lookup xmlns:typ="http://www.jboss.org/support/phonebook/types">
         <firstName>Darran</firstName>
         <surname>Lofthouse</surname>
      </typ:lookup>
   </soapenv:Body>
</soapenv:Envelope>

The web service works as expected: -

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
   <env:Header/>
   <env:Body>
      <ns1:lookupResponse xmlns:ns1="http://www.jboss.org/support/phonebook/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <areaCode>01234</areaCode>
         <number>123456</number>
      </ns1:lookupResponse>
   </env:Body>
</env:Envelope>

Regards,
Darran Lofthouse.


  was:
I have just been testing a deployment using the latest version of the JBossWS code and the default request message generated by SoapUI is being rejected.

If I send the following message: -
(typ is defined on soapenv:Envelope)

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://www.jboss.org/support/phonebook/types">
   <soapenv:Body>
      <typ:lookup>
         <firstName>Darran</firstName>
         <surname>Lofthouse</surname>
      </typ:lookup>
   </soapenv:Body>
</soapenv:Envelope>

It is rejected with the following error: -

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
   <env:Header/>
   <env:Body>
      <env:Fault>
         <faultcode>env:Client</faultcode>
         <faultstring>org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: The prefix "typ" for element "typ:lookup" is not bound. @ *unknown*[1,13]</faultstring>
      </env:Fault>
   </env:Body>
</env:Envelope>

However if I modify the request message to : - (Moving the namespace from the Envelope element to the lookup element)

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <typ:lookup xmlns:typ="http://www.jboss.org/support/phonebook/types">
         <firstName>Darran</firstName>
         <surname>Lofthouse</surname>
      </typ:lookup>
   </soapenv:Body>
</soapenv:Envelope>

The web service works as expected: -

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
   <env:Header/>
   <env:Body>
      <ns1:lookupResponse xmlns:ns1="http://www.jboss.org/support/phonebook/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <areaCode>01342</areaCode>
         <number>892702</number>
      </ns1:lookupResponse>
   </env:Body>
</env:Envelope>

Regards,
Darran Lofthouse.



> DOMEnvelopeBuilder misses global namespace declaration
> ------------------------------------------------------
>
>                 Key: JBWS-1138
>                 URL: http://jira.jboss.com/jira/browse/JBWS-1138
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: jbossws-1.0.2
>            Reporter: Heiko Braun
>         Assigned To: Heiko Braun
>             Fix For: jbossws-1.0.3
>
>         Attachments: PhoneBook.war
>
>
> I have just been testing a deployment using the latest version of the JBossWS code and the default request message generated by SoapUI is being rejected.
> If I send the following message: -
> (typ is defined on soapenv:Envelope)
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://www.jboss.org/support/phonebook/types">
>    <soapenv:Body>
>       <typ:lookup>
>          <firstName>Darran</firstName>
>          <surname>Lofthouse</surname>
>       </typ:lookup>
>    </soapenv:Body>
> </soapenv:Envelope>
> It is rejected with the following error: -
> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
>    <env:Header/>
>    <env:Body>
>       <env:Fault>
>          <faultcode>env:Client</faultcode>
>          <faultstring>org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: The prefix "typ" for element "typ:lookup" is not bound. @ *unknown*[1,13]</faultstring>
>       </env:Fault>
>    </env:Body>
> </env:Envelope>
> However if I modify the request message to : - (Moving the namespace from the Envelope element to the lookup element)
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>    <soapenv:Body>
>       <typ:lookup xmlns:typ="http://www.jboss.org/support/phonebook/types">
>          <firstName>Darran</firstName>
>          <surname>Lofthouse</surname>
>       </typ:lookup>
>    </soapenv:Body>
> </soapenv:Envelope>
> The web service works as expected: -
> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
>    <env:Header/>
>    <env:Body>
>       <ns1:lookupResponse xmlns:ns1="http://www.jboss.org/support/phonebook/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>          <areaCode>01234</areaCode>
>          <number>123456</number>
>       </ns1:lookupResponse>
>    </env:Body>
> </env:Envelope>
> Regards,
> Darran Lofthouse.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list