[JBoss Web Services Users] - Jboss 4.0.0 web service client -
by ehognestad@gmail.com
I am developing a web service client to consume a web service that returns an Object not a String. When I make the webservice return a String it works perfectly, when I switch to a Object then it throws this exception:
org.xml.sax.SAXException: Deserializing parameter 'result': could not find deserializer for type {http://ericsson.webservice.ems.com.br/EricssonMockingWebService/types}SendResponse
at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:330)
at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:1188)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:244)
at org.apache.axis.message.SOAPElementAxisImpl.publishToHandler(SOAPElementAxisImpl.java:1407)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:263)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:397)
at org.apache.axis.client.Call.invoke(Call.java:2652)
at org.apache.axis.client.Call.invoke(Call.java:2524)
at org.apache.axis.client.Call.invokeInternal(Call.java:1976)
at org.apache.axis.client.Call.invoke(Call.java:1917)
at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:175)
at org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:251)
at $Proxy145.send(Unknown Source)
at br.com.ouvi.ems.gw.ericssonipx.ejb.EricssonIPXWebServiceHelperEJB.sendSms(EricssonIPXWebServiceHelperEJB.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:113)
at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:316)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:149)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:854)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:413)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:82)
at $Proxy143.sendSms(Unknown Source)
My client looks like this.
public SendResponse sendSms(String smsMessage) throws WebserviceException {
SendResponse sendSmsResponse;
sendSmsResponse = null;
try {
System.out.println("Contacting webservice at http://localhost:8080/ws4ee/services/EricssonMockingWebService?wsdl");
URL url = new URL("http://localhost:8080/ws4ee/services/EricssonMockingWebService?wsdl");
QName qname = new QName("http://ericsson.webservice.ems.com.br",
"EricssonMockingWebService");
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService(url, qname);
EricssonMockingWebServiceEndpoint endpoint = (EricssonMockingWebServiceEndpoint) service.getPort(EricssonMockingWebServiceEndpoint.class);
System.out.println("output:" + endpoint.send("blablabalblabl"));
} catch (Exception ex) {
logger.error("Exception doing sms request for IPX: " + ex.getMessage(), ex);
throw new WebserviceException(ex.getMessage(), ex);
}
return sendSmsResponse;
}
The exception is thrown from the line:
System.out.println("output:" + endpoint.send("blablabalblabl"));
I am guessing I am missing a deserializer class that is produced by the wstools, but I haven't been able to find out which yet.
Anybody experienced the same problem?
Best regards,
Eivind
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263600#4263600
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263600
15 years
[JBoss Web Services Users] - Re: Why no forum for Resteasy
by traviskds
"bill.burke(a)jboss.com" wrote : Also, we have over 100+ pages of documentation. I don't know what exactly you mean by thin...
Bill, my apologies regarding the thin on doco comment. I guess I did not phrase it properly. What I was trying to convey was that you don't get user posts/replies that relate to issues rather than documentation of RE per say.
The docs on the framework itself is really great. Without any prior REST background, I was able to very quickly get it working with consumes and produces of xml, json,plain text and multipart . This is truly a very easy to use framework.
And yes, RE rocks. I first did a standalone application and then did one with Seam. Yesterday we had a code hackathon at my company and I did an application using SEAM/RE and it just rocks and was able to impress my fellow non SEAM/RE colleagues. So thanks a lot to Bill and his team/contributors. I hope RE will go from strength to strength.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263592#4263592
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263592
15 years
[JBoss Web Services Users] - Re: Why no forum for Resteasy
by traviskds
Thanks Justin and Bill.
Will get on the mailing list. Its just that I have been using the JBoss forums and have done a lot of extensive searches before I post a question.
I guess I can refer to the mail list archives before I post any question. Not sure if it provides any search functionality. Maybe I need to look a bit more.
But may I suggest that you guys look at forums or at least presenting all the JBoss technology stack in a consistent fashion.
I work for a very large telco and I am one of the JBoss champions within the organizations and one of the issues we face when we come up against guys promoting commercial products such as the Oracle stack is that open source is fragmented and difficult to get information. This is true when you compare different open source frameworks from different communities but if you decide to go with one stack (as I advocate I.E. use the JBoss stack), then we need to have all the information presented/searchable via a common format. Most of JBoss technology is in the forums but a few like SEAM have their own forum and then now RestEasy does not even use a forum and prefer mailing lists.
I am not complaining as for me I will go where ever the information is available to get my job done so its not that much of an issue for me but when you look at the bigger picture, then can be an issue.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263591#4263591
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263591
15 years