users@jax-ws.java.net

Re: [nbusers] (newbie) WS client problem: SOAPXMLDecoder excpetion

From: Lukas Jungmann <Lukas.Jungmann_at_Sun.COM>
Date: Fri, 01 Jun 2007 17:51:50 +0200

re-sending to users_at_jax-ws, I hope there's someone who can help...
Thanks,

--lj

Aggeliki Dimitriou wrote:
> Thanks for the answer, but I'm actually using NetBeans 5.5.1 with JDK 1.6. Any
> other hint?
>
> Angela
>
> Lukas Jungmann <Lukas.Jungmann_at_Sun.COM> said:
>
>
>> Hi
>>
>> can you try to run your client application with newer version of
>> JAX-WS (ie. use NetBeans 5.5.1), please?
>> This issue might be fixed there.
>> Thanks,
>>
>> --lj
>>
>> Aggeliki Dimitriou wrote:
>>
>>> I'm trying to develop a simple web service consumer application but I keep
>>> getting the following exception:
>>>
>>> javax.xml.ws.WebServiceException
>>> at
>>>
>>>
> com.sun.xml.internal.ws.encoding.soap.client.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:276)
>
>>> at
>>>
>>>
> com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:536)
>
>>> at
>>>
>>>
> com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:260)
>
>>> at
>>>
>>>
> com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:139)
>
>>> at
>>>
>>>
> com.sun.xml.internal.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:86)
>
>>> at
>>>
>>>
> com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:174)
>
>>> at
>>>
>>>
> com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:108)
>
>>> at $Proxy8.existsUser(Unknown Source)
>>>
>>> I didn't do much. I just created the client by providing the wsdl url to the
>>> New Web Service Client menu and then called one of the web service's
>>> operations passing some value to the arguemnts. The operation called is
>>> ExistsUser and the SOAP messages exchanged between the service and the client
>>> are the following:
>>>
>>> The client sent...:
>>> ---------------------------------------
>>> <?xml version="1.0" ?>
>>> <soapenv:Envelope
>>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>>> <soapenv:Body>
>>> <ans:ExistsUser xmlns:ans="http://my.server.com/uportalinterface.php">
>>> <SubsystemID>0</SubsystemID>
>>> <UserNumber>1234567</UserNumber>
>>> </ans:ExistsUser>
>>> </soapenv:Body>
>>> </soapenv:Envelope>HTTP/1.1 200 OK
>>> ---------------------------------------
>>>
>>> ..and the service responded:
>>> ---------------------------------------
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <SOAP-ENV:Envelope
>>> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>>> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
>>> <SOAP-ENV:Body>
>>> <ExistsUserResponse
>>> xmlns="http://my.server.com/uportalinterface.php">
>>> <Status>1</Status>
>>> <ErrorMessage></ErrorMessage>
>>> <UserName>someusername</UserName>
>>> </ExistsUserResponse>
>>> </SOAP-ENV:Body>
>>> </SOAP-ENV:Envelope>
>>> ---------------------------------------
>>>
>>> Is there anything wrong or something I have not taken into account?
>>> Unfortunatelly the stack trace is not very helpful. I would appreciate any
>>>
> help.
>
>>> Angela
>>>
>>>
>
>
>
>