By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,314 Members | 1,751 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,314 IT Pros & Developers. It's quick & easy.

Has anyone implemented ebXML messages using C# Client?

P: n/a
Hi,

Has anyone out there managed to write a C# Web Service client which can add
ebXML data to the SOAP Enveloper? And if so, could you please give me some
pointers? I just can't figure out how to programmatically create a SOAP
Envelope in this format.

I've added a sample of a message I have to produce below, in the hope that
someone can make sense of it.

Any help would be greatly appreciated.

Thanks.

George.

Content-Type: multipart/related; type="text/xml";
boundary="----=_Part_0_14114039.1107448735093"
SOAPAction: urn:nnn:names:services:mm/XXXXX9999999999
Content-Length: 6121

------=_Part_0_14114039.1107448735093
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/
http://www.oasis-open.org/committees/ebxml-msg/schema/envelope.xsd">
<soap:Header
xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd
http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd">
<eb:MessageHeader
eb:id="ID301816781107448734968server" eb:version="2.0"
soap:mustUnderstand="1">
<eb:From>
<eb:PartyId
eb:type="urn:nnn:names:partyIdType:ocs+serviceInst ance">C83030-0000537</eb:PartyId>
<eb:Role>Sender</eb:Role>
</eb:From>
<eb:To>
<eb:PartyId
eb:type="urn:nnn:names:partyIdType:ocs+serviceInst ance">T141C-0000010</eb:PartyId>
<eb:Role>Receiver</eb:Role>
</eb:To>
<eb:CPAId>S718A4015</eb:CPAId>
<eb:ConversationId>7DDA60FB-2590-429E-A2D0-7EAF6818BA50</eb:ConversationId>
<eb:Service
eb:type="string">urn:nnn:names:services:mm</eb:Service>
<eb:Action>XXXXX9999999999</eb:Action>
<eb:MessageData>
<eb:MessageId>7DDA60FB-2590-429E-A2D0-7EAF6818BA50</eb:MessageId>
<eb:Timestamp>2005-02-03T16:38:53.343Z</eb:Timestamp>
</eb:MessageData>
<eb:DuplicateElimination/>
</eb:MessageHeader>
<eb:SyncReply
eb:id="ID330133711107448735015server" eb:version="2.0"
soap:actor="http://schemas.xmlsoap.org/soap/actor/next"
soap:mustUnderstand="1"/>
<eb:AckRequested
eb:id="ID185110871107448734734server" eb:signed="false"
eb:version="2.0"
soap:actor="urn:oasis:names:tc:ebxml-msg:actor:toPartyMSH"
soap:mustUnderstand="1"/>
</soap:Header>
<soap:Body
xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd"
xsi:schemaLocation="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd
http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd">
<eb:Manifest
eb:id="ID331964241107448735015server"
eb:version="2.0">
<eb:Reference
eb:id="ID223160521107448734937server"
xlink:href="cid:A1107448734937.257@server"
xlink:type="simple"
xmlns:xlink="http://www.w3.org/1999/xlink"/>
</eb:Manifest>
</soap:Body>
</soap:Envelope>

------=_Part_0_14114039.1107448735093
Content-Type: application/xml
Content-Transfer-Encoding: 8bit
filename: XXXXX99999999994_MMD_7DDA60FB-2590-429E-A2D0-7EAF6818BA50.MMD
Content-Id: <A1107448734937.257@server>

<?xml version="1.0"?>
<XXXXX9999999999 xmlns="urn:gre-org:v3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<id root="7DDA60FB-2590-429E-A2D0-7EAF6818BA50"></id>
</XXXXX9999999999>

------=_Part_0_14114039.1107448735093--
Nov 23 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.