4 Replies Latest reply on Nov 16, 2006 5:25 AM by rajeshramchander

    JBWS-1138 - DOMEnvelopeBuilder misses global namespace decla

    rajeshramchander

      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>
      
       <contactInfo>
      
       <com:emailAddress>ramchander@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>
      
       </contactInfo>
      
       </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>
      
       <faultcode>env:Client</faultcode>
      
       <faultstring>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]
      
       </faultstring>
      
       </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>
      
       <contactInfo>
      
       <com:emailAddress xmlns:com="http://com.angel.api/">ramchander@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>
      
       </contactInfo>
      
       </com:updateAccount>
      
       </soapenv:Body>
      
      </soapenv:Envelope>