[jboss-user] [JBossWS] - JBWS-1138 - DOMEnvelopeBuilder misses global namespace decla

RajeshRamchander do-not-reply at jboss.com
Tue Oct 10 16:37:53 EDT 2006


SOAP request that does not work:
 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:com="http://com.angel.api/">

   <soapenv:Body>

      <com:updateAccount>

         

            <com:emailAddress>ramchander at angel.com</com:emailAddress>

            <com:firstName>Rajesh</com:firstName>

            <com:lastName>Ramchander</com:lastName>

            <com:phone>703-270-2315</com:phone>

            <com:pin>1234</com:pin>

            <com:timeZone>EST</com:timeZone>

         

      </com:updateAccount>

   </soapenv:Body>

</soapenv:Envelope>

 

SOAP response for above request:
 

<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>

   <env:Header/>

   <env:Body>

      <env:Fault>

         env:Client

         org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: The prefix "com" for element "com:emailAddress" is not bound. @ *unknown*[2,31]

         

      </env:Fault>

   </env:Body>

</env:Envelope>



Modified SOAP request that does work:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:com="http://com.angel.api/">

   <soapenv:Body>

      <com:updateAccount>

         

            <com:emailAddress xmlns:com="http://com.angel.api/">ramchander at angel.com</com:emailAddress>

            <com:firstName xmlns:com="http://com.angel.api/">Rajesh</com:firstName>

            <com:lastName xmlns:com="http://com.angel.api/">Ramchander</com:lastName>

            <com:phone xmlns:com="http://com.angel.api/">703-270-2315</com:phone>

            <com:pin xmlns:com="http://com.angel.api/">1234</com:pin>

            <com:timeZone xmlns:com="http://com.angel.api/">EST</com:timeZone>

         

      </com:updateAccount>

   </soapenv:Body>

</soapenv:Envelope>


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977363#3977363

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977363



More information about the jboss-user mailing list