为什么服务提供商返回SOAP Webservice错误? [英] Why is the SOAP Webservice error returned by the service provider?

查看:275
本文介绍了为什么服务提供商返回SOAP Webservice错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 webservicex SOAP 网络服务 c $ c>服务器(从


I'm using a SOAP web-service developed by webservicex server (downloaded from here) to develop a country locator application with IP address as input. Imported the jar files and java files, using the wsimport. Now, developed a java application that returns the country name by taking the input as IP address. Everything was working as per plan, without any syntax errors.

But when executing the java program, it returned an error which I couldn't trace back(I'm a learner). I'm not sure if it is a problem with either WS or Jar files.

The error is as follows:

Exception in thread "main" com.sun.xml.internal.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at WebserviceX.Service.Adapter.IPAdapter.CheckIP(String IP)
   at WebserviceX.Service.GeoIPService.GetGeoIP(String IPAddress)
   --- End of inner exception stack trace --- Please see the server log to find more detail regarding exact cause of the failure.
    at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
    at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:116)
    at com.sun.xml.internal.ws.client.sei.StubHandler.readResponse(StubHandler.java:238)
    at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:189)
    at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:276)
    at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:104)
    at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:77)
    at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:147)
    at com.sun.proxy.$Proxy31.getGeoIP(Unknown Source)
    at org.giri.soap.IPcountryFinder.main(IPcountryFinder.java:20)

Can someone shed some light on why this error occurs, am I missing from normal steps in executing the program.

Is this some an error returned by the web-service provider? If so, should I contact the service provider?

解决方案

This problem is not in the code it's with the webservice provider. if you go to the link http://www.webservicex.net/geoipservice.asmx?op=GetGeoIP and pass Ip address you will get the same error

这篇关于为什么服务提供商返回SOAP Webservice错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆