KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I wrote a simple JAX-WS web service for tomcat application server on java. I have one interface and on implementation class: interface @WebService(name = "myWs") @SOAPBinding(style = Style.RPC) public interface IMyWs { @WebMethod(operationName = "getUser") Response getUser(@WebParam(name = "phone", mode = Mode.IN) String phone); } implementation @WebService(endpointInterface = "ge.mari.IMyWs") public class MyWs implements IMyWs { @Override public Response getUser(String phone) { // SOME CODE return response; } } My problem is that, in my wsdl file Response class is defined in xsd file. This is the snippet from my wsdl file <types> <xsd:schema> <xsd:import namespace="http://ws.mari.ge/" schemaLocation="http://localhost:8080/MyServcie/MyWs?xsd=1"> </xsd:import> </xsd:schema> </types> How can I make web service to generate all types in WSDL file instead of separate XSD file? Should I change any configuration or add some annotation to my web service?
Tags (comma-separated)
Save Edits
Cancel