[C1 OnRamp Error] Expected record to contain an Envelope in

Hello,

I need to do the following
1- customer sends xCBL20 to our http://…/wm.tn/receive on our Reverse Invoke <== this is working
2- C1 OnRamp sends back the technical akncowledgment <== FAILS from here
2- C1 OnRamp sends the PurchaseOrder message to a custom service
4- the custom service sends a PurchaseOrderResponse embeded in a SOX envelope with pub.client.http
5- the same custom service sends the PO to our system <== this is working !

Here is how I do it for now :

1- customer sends xCBL20 to our http://…/wm.tn/receive on our Reverse Invoke

the message is correctly received by the Reverse Invoke and sent to Wm IS

2- processing rule triggers the message and sends it to the “pub.marketConnect/receiveEnvelope” service

the goal is to have C1 OnRamp to automatically send back the technical aknowledgment to the customer and return the PurchaseOrder Data to TN
this FAILS with error “com.wm.pkg.marketconnect.lang.DetailedException: Expected record to contain an Envelope in envelope field. Field is empty.”
the file I send is as below

What am I doing wrong ?

Thanks!

Renaud

-------------------- SAMPLE FILE -----------------------

Message-ID: 1901632.1107168032974.JavaMail.root@ms444
Date: Mon, 15 Jan 2005 11:41:41 +0100 (CET)
Mime-Version: 1.0
Content-Type: multipart/related; boundary=“1759489.1107168032973.JavaMail.root@ms111”
Content-ID: abcdefgh-abcd-abcd-abcd-abcdefghi
x-Date-Sent: 15 Jan 2005 11:41:41 CET
portal_routing_history_key: portal_routing_history; mpid_1=a1a1a1a1a-a1a1-a1a1-a1a1a1a1a
x-Document-Type: PurchaseOrder
x-Priority: 5
x-Correlation-Id: abcdefgh-abcd-abcd-abcd-abcdefghi
x-Request-Mode: peer-peer; ack=yes
x-Request-Annotation: normal
x-Sender-Id: zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzz
x-Message-Format: Commerce One 1.0 N; owner=“Commerce One”; version=1.0; date=“June 1999”; variant=N
x-Recipient-Id: 12345678-1234-1234-1234-123456789
x-Date-Recieved: 15 Jan 2005 04:40:32 CST
x-Message-Id: abcdefgh-abcd-abcd-abcd-abcdefghi

–1759489.1107168032973.JavaMail.root@ms111
Content-Type: application/xml; owner=x-commerceone; version=1.0; type=PurchaseOrder; ns=“urn:x-commerceone:document:com:commerceone:CBL:CBL.sox$1.0”; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-ID: 11111111-1111-1111-1111-111111111
Content-Description: Document
Content-Disposition: inline

<?soxtype urn:x-commerceone:document:com:commerceone:CBL:CBL.sox$1.0?> <?import urn:x-commerceone:document:com:commerceone:CBL:CBL.sox$1.0?> 20050129T00:00:00 20050201T00:00:00 20050201T00:00:00 CUSTOMER_PS_PROD FR05M.2005000079 PSFT_EP CustRefNum zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzz GatewayURL Other http://192.168.42.106/servlets/gateway CUSTOMER CUSTOMER 15 gd rue PARIS CEDEX 02 75000 FR SMITH Alan Alan.SMITH@CUSTOMER.com InfoContact Lyreco LYRECO FRANCE VALENCIENNES 59 59318 FR CUSTROMER SMITH Alan CUSTOMER - PARIS ACI= 123 PARIS 13002 FR SMITH Alan Alan.SMITH@CUSTOMER.com CUSTOMER CUSTOMER 15 gd rue '-ACI=' PARIS CEDEX 02 75000 FR InfoContact 19.6 FR1 12.89 0 EUR fr Other Other Other 0 0 Other 20000101T00:00:00 0 Other false 1 100000 100000 100000 01020100 description 5 EA 0 EA CUSTROMER SMITH Alan CUSTOMER - PARIS ACI= 123 PARIS 13002 FR SMITH Alan SMITH Alan Other Delivery Other Other FR/01 false 1#2#3## 20050201T00:00:00 20050201T00:00:00 19.6 3.25 0 3.320 EA 20000101 20000101 2 100000 100000 100000 01020100 description 4 EA 0 EA CUSTROMER SMITH Alan CUSTOMER - PARIS ACI= 123 PARIS 13002 FR SMITH Alan SMITH Alan Other Delivery Other Other FR/01 false 1#2#3## 20050201T00:00:00 20050201T00:00:00 19.6 9.64 0 12.290 EA 20000101 20000101 78.650 2 --1759489.1107168032973.JavaMail.root@ms111 Content-Type: application/xml; owner=x-commerceone; version=1.0; type=catalog; ns="urn:x-commerceone:document:com:commerceone:xdk:xml:catalog.dtd$1.0"; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-ID: 33333333-3333-3333-3333-333333333 Content-Description: Catalog Content-Disposition: inline <?xml version="1.0"?> <!DOCTYPE catalog [

]>


–1759489.1107168032973.JavaMail.root@ms111
Content-Type: application/xml; owner=x-commerceone; version=1.0; type=Credential; ns=“urn:x-commerceone:document:com:commerceone:ccs:doclet:security:Security.sox$1.0”; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-ID: 11111111-1111-1111-1111-111111111
Content-Description: Document
Content-Disposition: inline

<?soxtype urn:x-commerceone:document:com:commerceone:ccs:doclet:security:Security.sox$1.0?> <?import urn:x-commerceone:document:com:commerceone:ccs:doclet:security:Security.sox$1.0?> CUSTOMER_PS_PROD FileUpload SupplyOrderPreferences OrderManagement Accountmanagement L2Supplier zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzz zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzz CUSTOMER101 CUSTOMER101

–1759489.1107168032973.JavaMail.root@ms111–

-------------------- /SAMPLE FILE -----------------------