I'm using a pojo webservice on JBoss 4.0.5.GA with JBossWS 1.2.1GA installed over the prepackaged JBossWS libs. With the JBossWS 1.0.1 that comes with
Jboss 4.0.5 my webservice works fine but with JBossWS 1.2.1 all WebParams are set to the string "null". Unfortunately, I need to use JBossWS 1.2.1 for some other functionality.
the following webservice returns "null_test" when invoked.
this looks like a configuration problem but I haven't been able to nail it down.
| @Stateless()
| @WebService( name = "TestWebService", targetNamespace = http://ws.test.com/", serviceName = "TestWebService")
| public class TestWebService {
| @WebMethod
| public String testit(@WebParam(name="instring" ) String instring) {
| return instring+"_test";
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072606#4072606
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072606
Ok I was very frustrated with the state of jboss-4.0.5.GA but now it works :)
1. install the jbossws-2x native into jboss-4.0.5.GA (ant deploy-jboss40)
2. update /opt/jboss-4.0.5.GA/client/jboss-xml-binding.jar from newer jboss (4.2.0 worked for me)
3. generate client java source: wsconsume -k http://your-hosted-wsdl-url
4. #3 creates simple annotated classes + source files you can invoke like so:
Object svcObj = new WebStore_Service();
WebStore_Service webStub = (WebStore_Service) svcObj; WebStore webPort = webStub.getWebStorePort();
WebStoreResponseObject wrsp = webPort.authenticateCustomer("test", "test");
Thanks JBoss Team.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072222#4072222
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072222