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. ============================================================================= - WSIF0007I: 將 WSIFProvider 'org.apache.wsif.providers.soap.apacheaxis.WSIFDynamicProvider_ApacheAxis' 用於 namespaceURI 'http://schemas.xmlsoap.org/wsdl/soap/ - Exception: org.xml.sax.SAXException: Deserializing parameter 'sayHiResponse': could not find deserializer for type {http://wsDemo}sayHiResponse at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:276) at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:893) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:684) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:265) at org.apache.axis.client.Call.invoke(Call.java:1871) at org.apache.axis.client.Call.invoke(Call.java:1777) at org.apache.axis.client.Call.invoke(Call.java:1315) at org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeAXISDocStyle(Unknown Source) at org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeRequestResponseOperation(Unknown Source) at org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.executeRequestResponseOperation(Unknown Source) at wsif.WSIFInvoke.run(WSIFInvoke.java:59) at wsif.WSIFInvoke.main(WSIFInvoke.java:29) org.apache.wsif.WSIFException: exception on AXIS invoke: ; nested exception is: org.xml.sax.SAXException: Deserializing parameter 'sayHiResponse': could not find deserializer for type {http://wsDemo}sayHiResponse; nested exception is: org.xml.sax.SAXException: Deserializing parameter 'sayHiResponse': could not find deserializer for type {http://wsDemo}sayHiResponse at org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeAXISDocStyle(Unknown Source) at org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeRequestResponseOperation(Unknown Source) at org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.executeRequestResponseOperation(Unknown Source) at wsif.WSIFInvoke.run(WSIFInvoke.java:59) at wsif.WSIFInvoke.main(WSIFInvoke.java:29) Caused by: org.xml.sax.SAXException: Deserializing parameter 'sayHiResponse': could not find deserializer for type {http://wsDemo}sayHiResponse at org.apache.axis.AxisFault.makeFault(AxisFault.java:120) at org.apache.axis.client.Call.invoke(Call.java:1874) at org.apache.axis.client.Call.invoke(Call.java:1777) at org.apache.axis.client.Call.invoke(Call.java:1315) ... 5 more Caused by: org.xml.sax.SAXException: Deserializing parameter 'sayHiResponse': could not find deserializer for type {http://wsDemo}sayHiResponse at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:276) at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:893) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:684) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:265) at org.apache.axis.client.Call.invoke(Call.java:1871) ... 7 more ==============================================================================
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 -- View this message in context: http://www.nabble.com/org.xml.sax.SAXException%3A-Deserializing-parameter-tf4382197.html#a12492378 Sent from the WSIF - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
