org.xml.sax.SAXException: Deserializing parameter
wilson1315 <[email protected]> Tue, 4 Sep 2007 23:28:49 -0700 (PDT)
| Newsgroups | gmane.comp.apache.webservices.wsif.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have a trouble in my testing program. I create a web service (Hello) with
Eclipse WTP3.3. Its wsdl is the attachment-Hello.wsdl.(
http://www.nabble.com/file/p12492378/Hello.wsdl Hello.wsdl )
The "Hello" web service has two methods, one is "sayHello" with a parameter
"name", the other is "sayHi" WITHOUT any parameter. They both will return a
result in String type.
Then I create a program WSIFInvoke.java(
http://www.nabble.com/file/p12492378/WSIFInvoke.java WSIFInvoke.java ) with
WSIF2.0 api.
When invoking the sayHello method with a parameter, it is fine. But it
doesnt work when invoking the sayHi without a parameter. And the error is
below.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
- WSIF0007I: =E5=B0=87 WSIFProvider
'org.apache.wsif.providers.soap.apacheaxis.WSIFDynamicProvider_ApacheAxis'
=E7=94=A8=E6=96=BC namespaceURI 'http://schemas.xmlsoap.org/wsdl/soap/
- Exception:
org.xml.sax.SAXException: Deserializing parameter 'sayHiResponse': could
not find deserializer for type {http://wsDemo}sayHiResponse
=09at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:276)
=09at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Deserializ=
ationContextImpl.java:893)
=09at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200=
)
=09at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java=
:684)
=09at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
=09at org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
=09at org.apache.axis.client.Call.invoke(Call.java:1871)
=09at org.apache.axis.client.Call.invoke(Call.java:1777)
=09at org.apache.axis.client.Call.invoke(Call.java:1315)
=09at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeAX=
ISDocStyle(Unknown
Source)
=09at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeRe=
questResponseOperation(Unknown
Source)
=09at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.executeR=
equestResponseOperation(Unknown
Source)
=09at wsif.WSIFInvoke.run(WSIFInvoke.java:59)
=09at wsif.WSIFInvoke.main(WSIFInvoke.java:29)
org.apache.wsif.WSIFException: exception on AXIS invoke: ; nested exception
is:=20
=09org.xml.sax.SAXException: Deserializing parameter 'sayHiResponse': coul=
d
not find deserializer for type {http://wsDemo}sayHiResponse; nested
exception is:=20
=09org.xml.sax.SAXException: Deserializing parameter 'sayHiResponse': coul=
d
not find deserializer for type {http://wsDemo}sayHiResponse
=09at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeAX=
ISDocStyle(Unknown
Source)
=09at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeRe=
questResponseOperation(Unknown
Source)
=09at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.executeR=
equestResponseOperation(Unknown
Source)
=09at wsif.WSIFInvoke.run(WSIFInvoke.java:59)
=09at wsif.WSIFInvoke.main(WSIFInvoke.java:29)
Caused by: org.xml.sax.SAXException: Deserializing parameter
'sayHiResponse': could not find deserializer for type
{http://wsDemo}sayHiResponse
=09at org.apache.axis.AxisFault.makeFault(AxisFault.java:120)
=09at org.apache.axis.client.Call.invoke(Call.java:1874)
=09at org.apache.axis.client.Call.invoke(Call.java:1777)
=09at org.apache.axis.client.Call.invoke(Call.java:1315)
=09... 5 more
Caused by: org.xml.sax.SAXException: Deserializing parameter
'sayHiResponse': could not find deserializer for type
{http://wsDemo}sayHiResponse
=09at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:276)
=09at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Deserializ=
ationContextImpl.java:893)
=09at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200=
)
=09at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java=
:684)
=09at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
=09at org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
=09at org.apache.axis.client.Call.invoke(Call.java:1871)
=09... 7 more
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
Can anyone help me or give me some advice/suggestion to solve it. I have
stuck here over a week. Thank you very much for any help first.
Thank you,
Wilson
--=20
View this message in context: http://www.nabble.com/org.xml.sax.SAXExceptio=
n%3A-Deserializing-parameter-tf4382197.html#a12492378
Sent from the WSIF - User mailing list archive at Nabble.com.