Hi Scott and others,
I have written a JAVA based webservice client to download a file. I have converted it into a simple web application with one servlet which take 2 parameters (node id and version number). Everything work fine when it is deployed on my local glassfish server. But, when I take the .war file and deploy it on to another remote application server, it gives me an exception because it tries to find the WSDL file at my local path (like C:\WSDL) which is not true on the remote server.
To get around this problem, I changed my code to get the WSDL file from WEB-INF/wsdl which is in .war file. But the exception is still there.
WebServiceClient ann = Webservice_DocumentManagement.DocumentManagement_Service.class.getAnnotation(WebServiceClient.class);
URL wsdlURL = this.getClass().getResource("/WEB-INF/wsdl/client/DocumentManagement/DocumentManagement.wsdl");
Webservice_DocumentManagement.DocumentManagement_Service docmanService = new Webservice_DocumentManagement.DocumentManagement_Service(wsdlURL, new QName(ann.targetNamespace(), ann.name()));
//Webservice_DocumentManagement.DocumentManagement_Service docmanService = new Webservice_DocumentManagement.DocumentManagement_Service();
Webservice_DocumentManagement.DocumentManagement docmanPort = docmanService.getBasicHttpBindingDocumentManagement();
Please let me know what I am doing wrong.
Thanks.
Kapil