File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Web Service Client Works Locally, but not with Remote Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Service Client Works Locally, but not with Remote Server" Watch "Web Service Client Works Locally, but not with Remote Server" New topic
Author

Web Service Client Works Locally, but not with Remote Server

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1066
For some reason, the same logic that works locally, fails when trying to connect remotely.

The WSDL is alive and up. I created the client WS code using that WSDL.

Yet, when I call it the same way I do the local code, it fails with the error stack below.

The main method code that sets up the endpoint looks like this:



I've tried the hard coded path to the remote server's actual "WWW" address, with the same results.
---------

Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: java.lang.NullPointerException
at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:163)
at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:102)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:236)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:206)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
at $Proxy29.getCitiesFromZip(Unknown Source)
at client.WsClient.main(WsClient.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)


Any suggestions would be greatly appreciated.

-- mike
Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1066
This is fixed.

Just a case issue in persistence.xml....the database had to match case with what was in MySQL.

- mike
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web Service Client Works Locally, but not with Remote Server