前信息前: 我正在学习使用Web方法(WM)的编排。我已经成功完成了课程,并调用了Web方法,在BPEL中进行了一些并行处理。我正在使用Eclipse Indigo 3.7.1与BPEL插件,Tomcat7服务器,具有Apache ODE作为Orchestration基础。在另一方面,我需要学习在Mono .NET平台上写入的安全WMS。

现在: 现在我正在遇到任何Web方法的问题。我做了: 1)通过Mono .NET运行的Web方法 - 可以使用浏览器(http:// localhost:8081 / hwws.asmx)和Eclipse工具“Web Services Explorer”进行测试,它可以正常工作。 2)我的bpel只调用这个.NET Web方法通过SOAP端口。 3)在其他工作中,我用Visual Studio制作了.NET服务。有错误,如果需要,我会稍后发布它。

问题:我正在调用错误。

屏幕: 1).NET WS HW(HelloWorld)http:// photo -hosting.winsoftmagic .com / 1 / s4nbwdsqib.jpg浏览器测试 2).NET WS HW http://photo-hosting.winsoftmagic.com/)的Eclipse测试.winsoftmagic.com/ 1 / zywnl2wtgu.jpg 3)错误我得到 http://photo-hosting.winsoftmagic.com/1/ltbexoxcdl。 jpg

错误列表:

18:15:25:25,294 Warn ExternalService故障响应:FaustType=(Unkown) SOAP:客户必须将SOAP消息进行反序列化 18:15:25,376调用期间的错误调用失败: 18:15:25:25,382信息BPELRUNTIMECONTEXTIMPL ActivityRecovery:注册活动11,失败原因:在频道21

,稍后会给超时错误。我已经在这个问题周围度过了一周,用我可以思考的所有方式搜索。

编辑12.03.2012: 现在用Mono WS测试了一些原因的测试。 我从互联网上调用ws,它给出了与我在工作点的相同的错误:

14:25:16,177在调用期间发生故障[调用]错误:错误发送消息(MEX= {partnerRolemex#hqejbhcnphr747jefui9ic [pid {http://wsaspx.tns/} Inetws-24]调用org.apache.ode.bpel.epr.epr。 wsaendpoint@1e3a4c7.checktext(...)status async}):传入消息的输入流为null。 14:25:16,178信息[BPELRUNTIMECONTEXTIMPL] ActivityRecovery:注册活动11,失败原因:错误发送消息(MEX= {PartnerRoleMex#HQEJBHCNPHR747JEFUI9IC [PID {http://wsaspx.tns/} Inetws-24]调用org.apache.ode .bpel.epr.wsaendpoint @ 1e3a4c7.checktext(...)status async}):传入消息的输入流为null。在频道21上

同时,此服务从所有测试表格中工作。

编辑:16.03.2012 我的单声道方法在没有我的理解的情况下启动时相同。 TCPMON-1.1.JAR再次显示此类消息:

POST /hwws.asmx HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "http://hwws.tps/HelloWorld"
User-Agent: Axis2
Host: localhost:8092
Transfer-Encoding: chunked <--- EDITED: REASON OF NOT WORKING ----

31c
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<addr:To xmlns:addr="http://www.w3.org/2005/08/addressing">http://localhost:8092/hwws.asmx</addr:To>
<addr:Action xmlns:addr="http://www.w3.org/2005/08/addressing">http://hwws.tps/HelloWorld</addr:Action>
<addr:ReplyTo xmlns:addr="http://www.w3.org/2005/08/addressing"><addr:Address>http://www.w3.org/2005/08/addressing/anonymous</addr:Address></addr:ReplyTo>
<addr:MessageID xmlns:addr="http://www.w3.org/2005/08/addressing">uuid:hqejbhcnphr74k7fapcntd</addr:MessageID>
</soapenv:Header>
<soapenv:Body><HelloWorld xmlns="http://hwws.tps/">
<s0:st xmlns:s0="http://hwws.tps/">My test message</s0:st>
</HelloWorld></soapenv:Body></soapenv:Envelope>
0

HTTP/1.0 500 Internal Server Error
Date: Fri, 16 Mar 2012 08:01:50 GMT
Server: Mono.WebServer2/0.4.0.0 Unix
Connection: close
X-AspNet-Version: 4.0.30319
Content-Length: 366
Cache-Control: private
Content-Type: text/xml; charset=utf-8

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body><soap:Fault><faultcode>soap:Client</faultcode>
<faultstring>Could not deserialize Soap message</faultstring>
</soap:Fault></soap:Body></soap:Envelope>

实际上我得到了3个错误中的一个:无法反向,输入消息的输入流是NULL甚至错误411昨天:) P.S。没有套接字连接的第4个错误,但所有它们都消失了

我的主要目标是SSL +授权.NET服务 - 如果您有示例,则是Gryfull。 非常感谢大家!看到你的帮助是真正的乐趣:)

有帮助吗?

解决方案

Thanks to all, testing soap-body shown that it was good and problem was in headers part which had some strange "Chunked" and numbers before xml (length of xml text) and 0 after xml end. I just set http.request.chunk=false and now it work at all my tests yet. For that purpose download sample.endpoint from http://ode.apache.org/endpoint-configuration.html , renamed it as bpel name (MonoCaller.bpel => MonoCaller.endpoint). It has string for chunked already commented. And also added something like http.default-headers.authorization=Basic <64b code of "login:password" made in any coder> for authorization purpose and it also works now! :-]

其他提示

The same error has occured with me, the problem was with the web service itself, I had an empty constructor plus the methodes wich causes a problem, the solution is to delete the constructor.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top