[英]Unsupported Content-Type: text/html; charset=UTF-8 Supported ones are: [text/xml] in Jdev
I'm trying to consume a mock service from SoapUI in Jdev by generating proxy client but i keep getting the following exception in Jdev : 我试图通过生成代理客户端从Jdev中的SoapUI使用模拟服务,但我在Jdev中不断获得以下异常:
Exception in thread "main" com.sun.xml.internal.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/html; charset=iso-8859-1 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:278)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:180)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:83)
at com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:105)
at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:587)
at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:546)
at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:531)
at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:428)
at com.sun.xml.internal.ws.client.Stub.process(Stub.java:211)
at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:124)
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:107)
at $Proxy33.searchOrder(Unknown Source)
at beans.util.search.ShowOrderSearchResults.getOrderSearchResults(ShowOrderSearchResults.java:43)
at beans.util.search.ShowOrderSearchResults.main(ShowOrderSearchResults.java:32)
Can anyone tell me what is the probable cause of this as I'm new to webservices. 任何人都可以告诉我这可能是什么原因,因为我是webservices的新手。
This error is not about the request, but about the response. 此错误与请求无关 ,而与响应有关。 The JAX-WS client-side runtime has sent the request and is about to process the response, but the response is not text/xml as expected (a SOAP response).
JAX-WS 客户端运行时已发送请求并即将处理响应,但响应不是预期的text / xml(SOAP响应)。 Two possible root causes:
两个可能的根本原因:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.