users@jax-ws.java.net

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

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Fri, 01 Jun 2007 10:01:40 -0700

Are you using the final version of NB 5.5.1? NB 5.5.1 final release
comes with the latest JAXWS RI 2.1.1. The stack trace shows that the
exception is coming from JAX-WS RI 2.0. Since you are running on JDK6 so
its picking up old, JAX-WS 2.0 classes. In order to use the latest
JAX-WS RI, you should copy atleast jaxws-api.jar and jaxb-api.jar in to
the endorsed directory[1]. These jars should be in your NB 5.5.1
installation at, $NB_HOME/ide7/modules/ext/jaxws21.

-vivek.
[1]https://jax-ws.dev.java.net/nonav/2.1.1/docs/ReleaseNotes.html#Running_on_top_of_JDK_6

Lukas Jungmann wrote:
> 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
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>