wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 1043
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: 1043
This is fixed.

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

- mike
 
Don't get me started about those stupid light bulbs.
 
subject: Web Service Client Works Locally, but not with Remote Server
 
Similar Threads
com.sun.xml.ws.client.ClientTransportException JAX-WS
NoSuchMethodError.
Unable to register handlers in JAF command map
Web service client problem
Deployment / Client Problem with "Simple Jax-ws" Web Service