axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anne Thomas Manes" <atma...@gmail.com>
Subject Re: Empty SOAP Body in Input Message Causes NPE on Axis 1.3
Date Wed, 24 May 2006 21:07:21 GMT
Please post the WSDL and the WSDD for the service.

Anne

On 5/24/06, Ted Jones <Tjones@metamatrix.com> wrote:
>
>  I am executing a web service with no input parameters so the SOAP body is
> empty like so:
>
> *<soapenv:Envelope xmlns:soapenv="
> http://schemas.xmlsoap.org/soap/envelope/">
>    <soapenv:Body/>
> </soapenv:Envelope>*
>
> I am getting an NPE returned before I even hit my Web Service, so I am
> assuming the exception is happening in Axis somewhere (I'm not seeing a
> stack trace). Here is the response:
>
> *<?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
>   <soapenv:Fault>
>    <faultcode>soapenv:Server.userException</faultcode>
>    <faultstring>java.lang.NullPointerException</faultstring>
>    <detail/>
>   </soapenv:Fault>
> </soapenv:Body>
> </soapenv:Envelope>*
> **
> I get this using Coral and Systinet as my clients. When I generate an Axis
> client, I do not get an NPE but I get a node added to my body with the
> operation name in it (which I don't want to see as my logic depends on the
> body to be empty when no inputs are provided).
>
> Any help would be greatly appreciated!
>
> Thanks,
> Ted Jones
>
>
>

Mime
View raw message