users@jax-rpc.java.net

Re: wscompile generated Stub classes fails at runtime

From: Doug Kohlert <Doug.Kohlert_at_Sun.COM>
Date: Wed, 04 May 2005 08:55:15 -0700

 From the stack trace it looks like the server is namespace qualifying
the result element. According to the WSDL,
the result element should not have a namespace. Do you know what the
server is running?

Xibin Zeng wrote:

> Hi –
>
> Attached please find the wsdl that was used to generate the stub. For
> some reason it couldn’t match the element result with the namespace
> qualified result. In the wsdl, both the request and response has the
> namespace attributes defined. I’m fairly new in this so I could be
> missing something. Hitting the service via an URL or a manual soap
> request all work.
>
> Thanks in advance for your help.
>
> The stack trace is as follows:
>
> [java] java.rmi.RemoteException: Runtime exception; nested exception is:
>
> [java] unexpected element name: expected=result,
> actual={http://rpc.webparam.test
>
> s.ts.bea.com}result
>
> [java] at
> com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(St
>
> reamingSender.java:318)
>
> [java] at
> com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:300)
>
> [java] at
> com.bea.ts.tests.webparam.DefaultRpcWebParamWebService_Stub.hello(Defau
>
> ltRpcWebParamWebService_Stub.java:69)
>
> [java] at com.bea.ts.tests.webparam.Client2.testHelloRPC(Unknown Source)
>
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
>
> va:39)
>
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
>
> rImpl.java:25)
>
> [java] at java.lang.reflect.Method.invoke(Method.java:585)
>
> [java] at
> com.sun.javatest.lib.TestCases.invokeTestCases(TestCases.java:176)
>
> [java] at com.sun.javatest.lib.MultiTest.run(MultiTest.java:115)
>
> [java] at com.bea.ts.tests.webparam.Client2.main(Unknown Source)
>
> [java] Caused by: unexpected element name: expected=result,
> actual={http://rpc.webpar
>
> am.tests.ts.bea.com}result
>
> [java] at
> com.bea.ts.tests.webparam.DefaultRpcWebParamWebService_hello_ResponseSt
>
> ruct_LiteralSerializer.doDeserialize(DefaultRpcWebParamWebService_hello_ResponseStruct_Lit
>
> eralSerializer.java:57)
>
> [java] at
> com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.internalDe
>
> serialize(LiteralObjectSerializerBase.java:216)
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>