Namespace problem
gunnarbos May 17, 2010 8:11 AMHi,
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:
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