Thursday, March 31, 2011

WSDL AND JBOSS

When trying to use a SOAP client with JBOSS I found lot of problems.  In particular, I was able to deploy some WSDL files inside the JBOSS server but, when I tried to use them creating a SOAP web service client, JBOSS comes out with lot of errors, each one that said

Exception in thread "main" java.lang.IllegalArgumentException: Cannot obtain wsdl service: {http://localhost:8080/ggServices/CalculatorBean}CalculatorService at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:171)at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:133)
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:85)
 at org.jboss.ws.core.jaxrpc.client.ServiceImpl.<init>(ServiceImpl.java:111)
 at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
 at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128)
 at org.bilgidata.kitapdemo.service.Client.main(Client.java:18


I found around the Web lot of stuff talking about this problem, and it seems that JBOSS have some problem with SOAP clients (especially for my JBOSS version 5.1.0.GA ).
For this I change from SOAP to REST and everything works!

No comments:

Post a Comment