-
1. Re: javax.xml.ws.WebServiceException: Could not find wsdl
ropalka May 11, 2012 7:38 AM (in response to equilibrium)How do you create JAXWS client proxy?
How does your client class path looks like?
-
2. Re: javax.xml.ws.WebServiceException: Could not find wsdl
equilibrium May 11, 2012 8:41 AM (in response to ropalka)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!
-
3. Re: javax.xml.ws.WebServiceException: Could not find wsdl
lexev Jul 18, 2012 10:50 AM (in response to equilibrium)Hi,
I'm facing the same issue now, so I've been wondering if you've managed to resolve it. Thanks in advance!
-
4. Re: javax.xml.ws.WebServiceException: Could not find wsdl
yerraguntla07 Mar 7, 2014 8:26 AM (in response to equilibrium)Hi,
I'm facing the same issue now . Any solution.
thanks
-
5. Re: javax.xml.ws.WebServiceException: Could not find wsdl
arusstam Aug 3, 2015 7:33 AM (in response to equilibrium)I fixed that problem in WildFly 8.2.1 by moving my JAR file (with wsdl and generated classes) from module to EAR file.
If I understood it right, problem was that "JBoss7 only scans for annotations in classes within deployed ears." (http://stackoverflow.com/questions/24087079/cannot-call-webservice-method-from-webservice-client-running-in-jboss7)
-
6. Re: javax.xml.ws.WebServiceException: Could not find wsdl
gdchanchay Nov 14, 2016 10:33 AM (in response to equilibrium)I fixed this problem with out moving the JAR file (with wsdl and generated classes) from module to EAR file.
I resolved it adding these dependencies to the module xml file.
<dependencies>
<module name="javax.api" />
<module name="javax.xml.ws.api" />
<module name="javax.xml.ws.api" />
<module name="javax.annotation.api" />
</dependencies>