2012-03-10 45 views
2

預信息: 我正在學習用的Web方法(WM)編排。我已經成功地完成了關於調整的課程,調用了Web方法和BPEL中的一些並行處理。我使用帶有BPEL插件的Eclipse Indigo 3.7.1,帶有Apache Ode作爲編排基礎的Tomcat7服務器。在另一方面,我需要學習在Mono .Net平臺上編寫的安全WM調用。調用外部Web方法與BPEL + Apache ODE上(調用的.Net ASMX)問題

現在: 現在我有問題調用任何網絡方法。我做了: 1)通過Mono.Net運行的Web方法 - 可以使用瀏覽器(http:// localhost:8081/hwws.asmx)和Eclipse工具「Web Services Explorer」進行測試,它工作正常。 2)我的BPEL只通過SOAP端口調用.Net Web方法。 3)在其他工作環境中,我使用Visual Studio製作了.NET服務。有錯誤,如果需要,我會稍後發佈文本。

問題:我在調用時出錯。

屏幕: 1).NET WS HW(的helloWorld)HTTP的瀏覽器測試://相片-hosting.winsoftmagic的.com/1/s4nbwdsqib.jpg 2)的Eclipse .NET WS HW http://photo-hosting.winsoftmagic.com/1/zywnl2wtgu.jpg 測試3)錯誤我得到http://photo-hosting.winsoftmagic.com/1/ltbexoxcdl.jpg

錯誤列表:

18:15:25294 WARN ExternalService故障響應:faultType =(未知) 皁:ClientCould無法反序列化SOAP消息 18:15:調用期間25,376 ERROR INVOKE失敗: 18:15:25382信息BpelRuntimeContextImpl ActivityRecovery:註冊活動11,失敗原因:在通道21

而且它以後給超時錯誤。我已經花了一個星期的時間解決這個問題,用我能想到的所有方式進行搜索。

編輯12.03.2012:

現在用單WS測試工作的某些原因。 我tryed從互聯網呼叫WS,它給了同樣的錯誤,因爲我不得不在工作現場:

14:25:16177錯誤[INVOKE]失敗調用時:發送郵件時出錯(MEX = { PartnerRoleMex#hqejbhcnphr747jefui9ic [PID {http://wsaspx.tns/} inetWS-24]調用 [email protected](...)Status ASYNC}):輸入流傳入消息爲空。 14:25:16,178 INFO [BpelRuntimeContextImpl] ActivityRecovery:註冊活動11,失敗原因:發送消息錯誤(mex = {PartnerRoleMex#hqejbhcnphr747jefui9ic [PID {http://wsaspx.tns/} inetWS-24]調用org.apache。 [email protected](...)Status ASYNC}):傳入消息的輸入流爲空。在頻道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> 

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錯誤之一:無法反序列化,傳入消息的輸入流爲空或甚至錯誤411昨天:) 體育。沒有插座連接也有第4個錯誤,但它們全都消失了

我的主要目標是ssl +授權.net服務 - 如果您有示例,將會非常困難。 非常感謝大家!這是真正的樂趣,看看你的幫助:)

+0

您是否在服務端看到錯誤?你可以攔截(你可以使用[TCPMon](http://java.net/projects/tcpmon))從ODE發送到Mono服務的消息,並檢查它是否正確。您可以使用[SoapUI](http://www.soapui.org/)使用攔截的消息來測試Web服務。 – warunapww 2012-03-11 16:46:15

+0

你還可以附加在[附加圖片](http://photo-hosting.winsoftmagic.com/1/ltbexoxcdl.jpg)中部分可見的請求xml以及它的模式嗎? – 2012-03-11 17:47:43

+0

你問一下deploy.xml嗎?這是它http://photo-hosting.winsoftmagic.com/1/7dibhqqdc2.jpg圖形+文本視圖 – Eluny 2012-03-12 07:31:31

回答

0

感謝所有,檢測出皁體,這是好的,問題是頭帶來了一些奇怪的「分塊」和數字XML之前(部分的長度xml文本)和xml結束後的0。我只是設置http.request.chunk = false,現在它可以在我所有的測試中工作。爲此,從http://ode.apache.org/endpoint-configuration.html下載sample.endpoint,將其重命名爲bpel名稱(MonoCaller.bpel => MonoCaller.endpoint)。它有已經評論過的分塊字符串。並且還添加了類似http.default-headers.authorization =基本< 64位代碼的「登錄名:密碼」在任何編碼器中>用於授權目的,現在也可以使用! : - ]

0

同樣的錯誤與我發生,問題是與Web服務本身,我有一個空的構造加上methodes至極會導致一個問題,的解決方案是刪除構造