Domanda

Pre-Info: Sto imparando ad usare l'orchestrazione dei metodi Web (WM). Ho completato con successo le lezioni con ASSINGS, invocando metodi Web, alcune elaborazioni parallele in BPEL. Sto usando Eclipse Indigo 3.7.1 con Plugin BPEL, Tomcat7 Server con Apache Ode come base di orchestrazione. All'altro lato ho bisogno di imparare chiamare i WMS protettiti scritti sulla piattaforma Mono .NET.

Avendo ora: Ora sto avendo problemi a chiamare qualsiasi metodo Web. Ho fatto: 1) Metodo Web Esecuzione di Mono .NET - Lavori, può essere testato con Browser (http:// localhost: 8081 / hwws.asmx) e con lo strumento Eclipse "Web Services Explorer", funziona bene. 2) La mia BPEL che richiama solo questo metodo web .NET attraverso il porto di sapone. 3) In altre stantioni di lavoro ho apportato il servizio .NET con Visual Studio. Avere errori, se necessario, lo posterò un testo in seguito.

Problema: Sto ottenendo errori a richiamare.

Schermate: 1) Test del browser di .NET WS HW (Helloworld) http:// foto -hosting.winsoftwaremagic .com / 1 / s4nbwdsqib.jpg 2) Test eclipse di .NET ws hw http://photo-hosting.winsoftmagic.com/ 1 / zywnl2wtgu.jpg 3) Errore I Ottenere http://photoollow"> http://photo-hosting.winsoftmagic.com/1/ltbexoxcdl. JPG

Elenco errori:

. 18: 15: 25.294 Warn Externalservice Risposta dei guasti: FAULTYPE= (UNKOUND) Sapone: ClientCoad non diserializzare il messaggio del sapone 18: 15: 15.376 Errore Invulga il fallimento durante invocare: 18: 15: 25.382 Info BPelRuntimeContextImpl ActivityRecovery: Registrazione Attività 11, Failure Motivo: sul canale 21

E dà un errore di timeout in seguito. Ho già passato una settimana intorno a questi problemi, cercato tutti i modi in cui potevo pensare.

modifica 12.03.2012: Ora prova con Mono WS ha funzionato per qualche motivo. Ho provato a chiamare WS da Internet e ha dato lo stesso errore di aver avuto al punto di lavoro:

. 14: 25: 16,177 Errore [Invocato] Guasto durante INVOKE: errore di invio dell'errore (Mex= {PartnerroleMex # hqejbhcnphr747jefui9ic [PID {http://wsaspx.tns/} inetws-24] chiamando org.apache.ode.bpel.epr. Wsaendpoint@1e3a4c7.checktext (...) stato async}): Il flusso di ingresso per un messaggio in arrivo è nullo. 14: 25: 16,178 INFO [BPELRUNTIMECONTEXTIMPL] ACTIVITÀRECOVERY: Registrazione Attività 11, fallimento Motivo: errore di invio dell'errore (Mex= {partnerrolemex # hqejbhcnphr747jefui9ic [PID {http://wsaspx.tns/} inetws-24] Chiamata a chiamare Org.apache. .bel.epr.wsaendpoint @ 1E3A4C7.CheckText (...) Stato ASYNC}): Il flusso di input per un messaggio in arrivo è nullo. sul canale 21.

Allo stesso tempo questo servizio funziona da tutti i moduli di prova.

Modifica: 16.03.2012 Il mio metodo mono ha smesso di funzionare come è iniziato senza la mia comprensione. TCPMON-1.1.jar mostra di nuovo tale messaggio:

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>

In realtà ottengo uno dei 3 errori: non potevo deserializzare, il flusso di input per un messaggio in arrivo è nullo o addirittura errori 411 ieri :) P.S. ha avuto il 4 ° errore senza socket che si collega anche, ma tutti loro sono svaniti .

Il mio obiettivo principale è SSL + Autorizzazione .NET Servizi - sarebbe gravente se hai esempi. Grazie mille per tutti! È vero piacere vedere il tuo aiuto :)

È stato utile?

Soluzione

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! :-]

Altri suggerimenti

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top