|
From: Aaron T. <te...@dr...> - 2003-12-10 15:05:47
|
hi, I am writing a perl ebXML MSH and attempting to send ebXML messages with it to a test Hermes MSH I have running. when I send : <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xlink="http://www.w3c.org/1999/xlink/namespace" xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"><SOAP-ENV:Header><eb:MessageHeader eb:id=".." SOAP-ENV:mustUnderstand="1" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" eb:version="2"><eb:From><eb:PartyId>sample</eb:PartyId></eb:From><eb:To><eb:PartyId>sample</eb:PartyId></eb:To><eb:CPAId>CPA_2002</eb:CPAId><eb:ConversationId>Item_No_128</eb:ConversationId><eb:Service>http://www.cecid.hku.hk/ebxml/service</eb:Service><eb:Action>Order</eb:Action><eb:MessageData><eb:MessageId>12</eb:MessageId><eb:Timestamp>2003-12-10T14:39:19</eb:Timestamp><eb:RefToMessageID xsi:null="1"/></eb:MessageData><eb:DuplicateElimination xsi:null="1"/></eb:MessageHeader></SOAP-ENV:Header><SOAP-ENV:Body><eb:Manifest eb:id="Manifest" SOAP-ENV:mustUnderstand="1" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" eb:version="2.0"><eb:Reference eb:id="pay01" xlink:role="http://regrep.org/gci/purchaseOrder" xlink:href="cid:payload-d"><eb:Description xml:lang="en-US">Purchase Order for 100,000 widgets</eb:Description><eb:Schema eb:version="2.0" eb:location="http://regrep.org/gci/purchaseOrder/po.xsd" xsi:null="1"/></eb:Reference><c-gensym21 xsi:null="1"/></eb:Manifest></SOAP-ENV:Body></SOAP-ENV:Envelope> This is a close copy of the example provided in the Technical Architecture document, so I was surprised by a SOAP error. The server responded with : <faultcode>Client</faultcode> <faultstring>[10503] Cannot internalize SOAP object Exception: hk.hku.cecid.phoenix.message.packaging.validation.SOAPValidationException Message: MustUnderstand: SOAP Element <eb:MessageHeader> has the attribute mustUnderstand = "1" but it cannot be recognized.</faultstring> I was wondering if there was some negotiation I was failing to send to 'set up' a connection. any pointers would be much appreciated. cheers, A. -- Aaron J Trevena - Perl Hacker, Kung Fu Geek, Internet Consultant AutoDia --- Automatic UML and HTML Specifications from Perl, C++ and Any Datasource with a Handler. http://droogs.org/autodia |