1 Reply Latest reply on May 20, 2010 2:39 AM by Gunnar Bostrom

    Namespace problem

    Gunnar Bostrom Newbie

      Hi,

      I have a web service ported from JBoss 4 to JBoss 5.1.0.GA.

      The behaviour of the web service is differnent depending of the soap request called from a client. I've tested the service with soapUI.

       

      The following request is fine:

         <soapenv:Header/>
         <soapenv:Body>
            <jaws:getInvoiceData>
               <InvoiceRequest>
                  <invId>44406152098</invId>
                  <productType>BROADBAND</productType>
               </InvoiceRequest>
            </jaws:getInvoiceData>
         </soapenv:Body>
      </soapenv:Envelope>

       

      but the following request returns a NullPointerException (the object invoiceRequest is null when the webMethod is called which is not anticipated)

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

         <soapenv:Header/>

         <soapenv:Body>

            <getInvoiceData xmlns="http://ws.ebill.teliasonera.se/jaws">

               <InvoiceRequest>

                  <invId>44406152098</invId>

                  <productType>BROADBAND</productType>

               </InvoiceRequest>

            </getInvoiceData>

         </soapenv:Body>

      </soapenv:Envelope>

       

      This is also fine:

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

         <soapenv:Header/>

         <soapenv:Body>

            <getInvoiceData xmlns="http://ws.ebill.teliasonera.se/jaws">

               <InvoiceRequest xmlns="">

                  <invId>44406152098</invId>

                  <productType>BROADBAND</productType>

               </InvoiceRequest>

            </getInvoiceData>

         </soapenv:Body>

      </soapenv:Envelope>

       

      and also this:

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

         <soapenv:Header/>

         <soapenv:Body>

            <ns:getInvoiceData xmlns:ns="http://ws.ebill.teliasonera.se/jaws">

               <InvoiceRequest>

                  <invId>44406152098</invId>

                  <productType>BROADBAND</productType>

               </InvoiceRequest>

            </ns:getInvoiceData>

         </soapenv:Body>

      </soapenv:Envelope>

       

      What is wrong here and what can I do about it?

      /Gunnar