This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 1114
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: 1114
This is fixed.

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

- mike
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Web Service Client Works Locally, but not with Remote Server
 
It's not a secret anymore!