问题描述
- centos环境下Webserviceclient发送消息无响应
-
公司项目中有webservice 与SAP对接,在windows环境开发测试webservice都可以使用发送和接受数据,但是部署到centos服务器环境下就不行了,发送大量数数据SAPServer端就无响应,每次发送一条数据就可以,但是在windows环境下每次发送大量数据都没有问题,测试了好长时间在Centos环境下使用linux版的Myeclipse单独发送测试数据至SAPserver 也不行,报如下错误:
com.sun.xml.internal.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/plain Supported ones are: [text/xml]结束
at com.sun.xml.internal.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:284)
at com.sun.xml.internal.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:118)
at com.sun.xml.internal.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:343)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.createResponsePacket(HttpTransportPipe.java:254)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:203)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:122)
at com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:95)
at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:626)
at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:585)
at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:570)
at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:467)
at com.sun.xml.internal.ws.client.Stub.process(Stub.java:308)
at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:163)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:98)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:135)
at com.sun.proxy.$Proxy24.siMm09901HjuSender(Unknown Source)
at com.test.MonthPlan.reportMonthPlan(MonthPlan.java:38)
at com.test.Client.main(Client.java:105)
java.lang.NullPointerException
at com.test.Client.main(Client.java:106)使用linux上myeclipse也无法通过URL方式生成webservice client,实在搞不懂是什么原因,请各位朋友帮忙看看,给些提示,先谢过各位朋友了。