wso2 esb 不支持的媒体类型

编程入门 行业动态 更新时间:2024-10-28 00:29:49
本文介绍了wso2 esb 不支持的媒体类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我希望我的公司使用Wso2ESB,但是我只有两天时间说服他们,并且创建Proxy不起作用!

I would like my company to use the Wso2ESB, but I have only two days left to convince them, and the creation of Proxy does not work!

我迫切需要真正的帮助来解决我的问题:我创建的每个代理似乎都会产生

I am desperate for a real help for my problem: every proxy that I create seem to produce

HTTPSender Unable to sendViaPost to...

(为什么无法发送?)

Transport error: 415 Error: Unsupported Media Type

(是无法发送的结果?还是配置有问题?)

(is it a consequence of the fact that it could not send? or a problem in the configuration?)

我全新安装的 WSO2 ESB 4.5 不适用于我尝试过的任何 Web 服务:JAXWS 和 C#.我总是有以下消息LOG:

My fresh installation of WSO2 ESB 4.5 is not working with any web service I have tried: JAXWS and C#. I always have the following message LOG:

[2012-05-09 08:42:19,381] INFO - LogMediator To: /services/NET.NETHttpSoap12Endpoint, WSAction: tempuri/Iuser/CheckUserExistsSimple, SOAPAction: tempuri/Iuser/CheckUserExistsSimple, MessageID: urn:uuid:6e46c985-3646-4441-ba8d-0c366c063c4b, Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="www.w3/2003/05/soap-envelope"><soapenv:Body><p:CheckUserExistsSimple xmlns:p="tempuri/"><!--0 to 1 occurrence--><p:User>-</p:User></p:CheckUserExistsSimple></soapenv:Body></soapenv:Envelope> [2012-05-09 08:42:19,437] INFO - HTTPSender Unable to sendViaPost to url[192.168.10.177:8280/services/NET.NETHttpSoap12Endpoint] org.apache.axis2.AxisFault: Transport error: 415 Error: Unsupported Media Type at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:308) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:450) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:277) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531) at org.apache.jsp.admin.jsp.WSRequestXSSproxy_005fajaxprocessor_jsp._jspService(WSRequestXSSproxy_005fajaxprocessor_jsp.java:272) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:161) at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:36) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:58) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:179) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:49) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579) at org.apache.tomcat.util.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Unsupported Media Type[2012-05-09 08:44:32,644] WARN - ClientHandler I/O error : Connection reset by peer For : 192.168.10.71:80

这是代理定义:

<proxy xmlns="ws.apache/ns/synapse" name="NET" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> <target> <inSequence> <property name="useOriginalwsdl" value="true" scope="default" type="STRING"/> <log level="full"/> </inSequence> <outSequence> <send/> </outSequence> <endpoint> <address uri="omitted"/> </endpoint> </target> <publishWSDL uri="omitted?wsdl"/> <description></description> </proxy>

当我尝试使用soapUI 调用代理服务时,我收到以下消息:

when I try to use soapUI to call the proxy service I get this message:

加载 [NET?xsd=...?xsd=xsd0] 时出错:java.io.IOException: Attempted read from closed 流

但如果我直接在 Glassfish/IIS 上调用真正的服务,它就可以工作.

but if I call the real service directly on Glassfish/IIS, it works.

推荐答案

这是因为您在请求中发送了不受支持的消息类型,并且它与 ESB 的任何消息类型都不兼容..

This is because you are sending an unsupported message type in your request and it is incompatible with whatever the ESB's message type..

您能否将 TCPmon 放置在您的客户端和 ESB 之间并捕获整个消息并检查您实际发送到 ESB 的内容?

Can you place the TCPmon between your client and ESB and capture the whole message and check what you are actually sending to ESB?

您的 wsdl 是否导入任何模式?..如果您使用发布 wsdl 选项,您应该提供所有模式..

And does your wsdl imports any schemas?..You should provide all schemas if you use publish wsdl option..

首先最好不要使用发布 wsld 选项,首先尝试向代理发送消息并查看服务是否正在接收

First better dont use the publish wsld, option and first try to send message to proxy and see the service is receiving or not

更多推荐

wso2 esb 不支持的媒体类型

本文发布于:2023-11-16 21:21:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1607509.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不支持   类型   媒体   esb

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!