I have a web service in remote server and I need to access the same from my machine. I also have the wsdl of the web service in my local machine. I can generate the stubs from the wsdl to execute the web service. But in remote server my web service is exposed but not it's wsdls(Wsdl in my local to generate the stubs). In this scenario, what should be my approach to execute the web service. I have already generated stubs from my local machine.
Stub:
@WebServiceClient(name = "CohProvisioningService", targetNamespace = "http://provision.soap.coh.ericsson.com/", wsdlLocation = "file:/home/esouvbh/NetBeansProjects/BCS/SSP/trunk/ssp-service-coh/target/wsdl/coh/CohProvisioningService.wsdl")
public class CohProvisioningService
extends Service
{
private final static URL COHPROVISIONINGSERVICE_WSDL_LOCATION;
private final static Logger logger = Logger.getLogger(com.ericsson.coh.soap.provision.CohProvisioningService.class.getName());
public CohProvisioningService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
}
Object creation code:
private CohProvisioningConnector() {
super(new QName("http://provision.soap.coh.ericsson.com/", "CohProvisioningService"));
service = new CohProvisioningService("<Ip Address>/CohProvisioningService/ProvisionWebService", qname);
}