Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web Service Client Works Locally, but not with Remote Server

 
Mike London
Ranch Hand
Posts: 1185
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1185
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is fixed.

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

- mike
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic