# Send cXML doc with AS2

**URL:** <https://techcommunity.softwareag.com/t/send-cxml-doc-with-as2/107588>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [June 7, 2004, 4:52pm UTC](https://techcommunity.softwareag.com/t/send-cxml-doc-with-as2/107588 "2004-06-07T16:52:12Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [June 7, 2004, 4:52pm UTC](https://techcommunity.softwareag.com/t/send-cxml-doc-with-as2/107588/1 "2004-06-07T16:52:12Z")

</div>

Hi,

Can anyone plz tell me how I can send an cXML document with wm.EDIINT:send service. For EDI documents we are using application/edifact as content type. Which content type do i need to use for an cXML/XMl document?

Cheers,  
Cemil

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [June 8, 2004, 1:32am UTC](https://techcommunity.softwareag.com/t/send-cxml-doc-with-as2/107588/2 "2004-06-08T01:32:16Z")

</div>

Cemil,

I believe for routing cXML messages you have to use (WmAribaSupplier) package gateway services.

To get basic understanding on webMethods-Ariba process, please review the (AribaOnramp UserGuide)it will have precise explanation regarding inbound/oubound of cXML documents…

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [June 9, 2004, 8:56pm UTC](https://techcommunity.softwareag.com/t/send-cxml-doc-with-as2/107588/3 "2004-06-09T20:56:07Z")

</div>

RMG,

When I pass an cXML document to wm.EDIINT:send service with content type text/xml the document is sent to the TN. In TN console I can see that the EDIINT document is recognized but the processing rule ‘EDIINT Send Message’ is not selected. Instead of that the ‘default processing rule’ is selected. Any ideas why this is happening.

When I send an EDI document with the right content type everything is processed fine.

Regards,

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [June 9, 2004, 9:08pm UTC](https://techcommunity.softwareag.com/t/send-cxml-doc-with-as2/107588/4 "2004-06-09T21:08:40Z")

</div>

I believe if you use wm.EDIINT:send service then it works only for EDI (EDINT) AS1,AS2 messages and kicks of the EDIINT processing rules as expected.

Try making use of wm.tn.doc.xml:routeXML or WmAribaSupplier services that will post cXML to TN and create a custom processing rule that will as per your requirement.

HTH,

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [June 10, 2004, 12:53pm UTC](https://techcommunity.softwareag.com/t/send-cxml-doc-with-as2/107588/5 "2004-06-10T12:53:58Z")

</div>

The current architecture is as follow  
ftp–(xml)—\>IS—(routeXML)—\>TN—\>wm.EDIINT:send—(EDIINT doc)-----\>TN(AS2)

I’ve read the Wm EDIINT documentation and it is possible to send XML doc with wm.EDIINT:send . But didn’t yet figured out how!

Regards,  
Cemil

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [June 10, 2004, 6:24pm UTC](https://techcommunity.softwareag.com/t/send-cxml-doc-with-as2/107588/6 "2004-06-10T18:24:59Z")

</div>

I have not routed xml documents using with EDIINT services.  
Have you contacted Tech support regarding this problem?

Regards,

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [June 10, 2004, 8:27pm UTC](https://techcommunity.softwareag.com/t/send-cxml-doc-with-as2/107588/7 "2004-06-10T20:27:30Z")

</div>

I figured out. With the following services you can send an XML document as an EDIINT data to the TN,

input is \*node

- xmlNodeToDocument
- getXMLNodeType
- documentToXMLString
- stringToStream
- getExternalID (sender)
- getExternalID (receiver)
- send (wm.EDIINT:send )

Regards.

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [June 10, 2004, 8:32pm UTC](https://techcommunity.softwareag.com/t/send-cxml-doc-with-as2/107588/8 "2004-06-10T20:32:08Z")

</div>

Cemil,

Sounds good,

So now the EDIINT processing rules triggers as expected and delivering the document from TN?

I believe you should have missed converting string to stream in the send service.

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [June 10, 2004, 8:37pm UTC](https://techcommunity.softwareag.com/t/send-cxml-doc-with-as2/107588/9 "2004-06-10T20:37:30Z")

</div>

I agree that we can handle xml docs via EDIINT services with proper content type (application/xml) and pass the stream object to send service.

Regards,

---

<div class="post-metadata">

**Author:** ![cemil.arik.33324](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@cemil.arik.33324](https://techcommunity.softwareag.com/u/cemil.arik.33324)\
**Post date:** [June 11, 2004, 12:36pm UTC](https://techcommunity.softwareag.com/t/send-cxml-doc-with-as2/107588/10 "2004-06-11T12:36:12Z")

</div>

Yep, the content type is, as you pointed, application/XML. Then the EDIINT data, actually wrapped XML data, will recognized by TN. And the EDIINT Send Message processing rule will be processessed.

Regards

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:04pm UTC](https://techcommunity.softwareag.com/t/send-cxml-doc-with-as2/107588/11 "2021-04-02T15:04:52Z")

</div>

Closed on April 2, 2021, 3:04pm UTC


