on-internet
← Community

Return custom object from Web services using JAX-WS

Stack Overflow ·

The question is a little bit long but I wanted to supply all the information in advance I have the following class: package test.api.soap.server; public class TestClassA { public TestClassA() { } public String doA() { System.out.println("Start doA()"); return "In do A"; } } I want to expose it as web service but not directly so i created wrapper class: package test.api.soap.server; import javax.jws.WebMethod; import javax.jws.WebService; @WebService public class MyClientApiV2_5 { public MyClientApiV2_5() { } @WebMethod public TestClassA getTestClassA() { return new TestClassA(); } } I creating

Comments

Sign in or sign up to comment and upvote.

No comments yet.