I've looked high and low for a solution to this problem
I have a java project (which I've inherited). It is essentially a RESTful wrapper to a SOAP web service. I'm not entirely sure why other than they were having problems with PHP connecting to their Webservice so created a Restful service which connected to the WS as a client.
The problem is that the jax-ws autogenerated web services artifacts/classes are being hardcoded to a local path as the machine which compiles the project. Here is the example of annotations created in the java file which is auto generated by jax-ws upon project compile.
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2.10-b140803.1500
* Generated source version: 2.2
*
*/
@WebServiceClient(
name = "flahImplService",
targetNamespace = "http://flah.com/",
wsdlLocation = "file:/C:/Users/WindowsUser/PathToNetBeansProjectFolder/flah.wsdl")
public class flahImplService
}
It seems to be linking to the online WSDL and building the files based on that.
The only other important thing i can find is that in /nbproject/jax-ws.xml there is a xml such as this:
<?xml version="1.0" encoding="UTF-8"?>
<jax-ws xmlns="http://www.netbeans.org/ns/jax-ws/1">
<services>
<service name="flahImplService">
<implementation-class>com.service.management.flahImplService</implementation-class>
<wsdl-url>https://blah.com/flah.wsdl</wsdl-url>
<wsdl-url>blah.com/flah.wsdl</wsdl-url>
Where should I be specifying a path to replace this auto generate and hardcoded local WSDL location?
Edit: btw, when I run this project locally it of course works because the path to the wsdl file is ok, but when deployed to the application server it fails.