JBoss Community

Re: javax.xml.ws.WebServiceException: Could not find wsdl

created by Hugo Pais in JBoss AS 7 Development - View the full discussion

I pass a URL pointing to the wsdl:

{code}

private static final URL wsdl = MyWebserviceRequest.class.getClassLoader().getResource("request.wsdl");

private static final MyService myWebService = new MyService(wsdl);

{code}

 

The URL is valid, I can print its content, that is, the wsdl.

Exception occurs when a WebMethod is invoked (createAsyncOrder).

 

{code}

@WebService(targetNamespace = "http://.../", name = "Test")

@XmlSeeAlso(value = {ObjectFactory.class})

@SOAPBinding(style = Style.RPC)

public interface Test {

 

     @WebResult(name = "TestKey", targetNamespace = "http://.../", partName = "TestKey")

     @WebMethod

     public TestKey createAsyncOrder(@WebParam(partName = "TestValue", name = "TestValue") TestValue ov) throws IllegalOrderException_Exception;

}

{code}

 

Is there any annotation that isn't valid? I had to change @WebService(endpointInterface = "[...].response.client.WebServiceResponseClient") to @WebService() at WebserviceResponse

Thanks for the fast reply!

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community