Hello,
I have an error when the as2 plugin try to send as2 message in my loopback test.
I make a successfull call to the as2 sender service via java coded client and I get a new messageId in return.
But when I ask the status of this message, I get the response DF for Delivery Failure.
Where could I be wrong?
here is my as2.log
2012-12-11 16:53:37 [8080-exec-10] <INFO > <Outbound payload received - From: as2loopback, To: as2loopback, Type: bin>
2012-12-11 16:53:37 [8080-exec-10] <INFO > <Outbound payload persisted - From: as2loopback, To: as2loopback, Type: bin>
2012-12-11 16:53:37 [Thread-170 ] <INFO > <Persisting outbound AS2 Message [
20121211-1...@127.0.1.1, From: as2loopback, To: as2loopback]>
2012-12-11 16:53:37 [Thread-170 ] <DEBUG> <AS2 Message [20121211-1...@127.0.1.1, From: as2loopback, To: as2loopback] is being captured>
2012-12-11 16:53:37 [Thread-170 ] <DEBUG> <Clearing cache of AS2 Message [20121211-1...@127.0.1.1, From: as2loopback, To: as2loopback]: true>
2012-12-11 16:53:37 [Thread-171 ] <INFO > <Sending outgoing AS2 Message [Unknown ID, From: null, To: null] to http://127.0.0.1:8080/corvus/httpd/as2/inbound>2012-12-11 16:53:37 [Thread-171 ] <ERROR> <Outgoing message task failure>
hk.hku.cecid.edi.as2.AS2Exception: Error in sending outgoing AS2 message:
20121211-1...@127.0.1.1 by hk.hku.cecid.piazza.commons.net.ConnectionException: Unable to send HTTP request
by java.io.IOException: Server returned HTTP response code: 400 for URL:
http://127.0.0.1:8080/corvus/httpd/as2/inbound at hk.hku.cecid.edi.as2.module.OutgoingMessageTask.execute(OutgoingMessageTask.java:108)
at hk.hku.cecid.piazza.commons.module.ActiveThread.run(ActiveThread.java:90)
at java.lang.Thread.run(Thread.java:722)
Caused by: hk.hku.cecid.piazza.commons.net.ConnectionException: Unable to send HTTP request
by java.io.IOException: Server returned HTTP response code: 400 for URL:
http://127.0.0.1:8080/corvus/httpd/as2/inbound at hk.hku.cecid.piazza.commons.net.HttpConnector.send(HttpConnector.java:233)
:
my soap request :
<SOAP-ENV:Envelope xmlns:SOAP-ENV="
http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><tns:as2_from xmlns:tns="
http://service.as2.edi.cecid.hku.hk/">as2loopback</tns:as2_from><tns:as2_to xmlns:tns="
http://service.as2.edi.cecid.hku.hk/">as2loopback</tns:as2_to><tns:type xmlns:tns="
http://service.as2.edi.cecid.hku.hk/">bin</tns:type></SOAP-ENV:Body></SOAP-ENV:Envelope>
the tomcat error page (translated from my mother tongue to english)
type : state report
message : Invalid AS2 Message
description : request send by the client was syntax incorrect
thanks in advance.