ATG Order XML

98 views
Skip to first unread message

Kishor

unread,
Nov 29, 2008, 5:24:21 AM11/29/08
to ATG_Tech
Hi.

I am trying to integrate ATG Commerce with a different fulfillment
system. As part of this. I developed a Sink per DMS (Dynamo messaging
system) specification and configured it to subscribe on SubmitOrder
topic. I am able to get the Order Id of the submitted order. I am
using OrderServices class "getOrderAsXML" method to get the ATG Order
as XML.

In this XML, the value of repository attributes as coming out as
CDATA. The fulfillment system (not ATG fulfillment modue - some other
fulfillment) module requires the XML with the database attribute
values as "nodes" rather than "CDATA".

Does ATG provide an OOB features to transform the XML generated? Is
this process configurable? If so, please let me know how to go about
it.

Thanks in advance,
Kishor

Following is a snippet from the XML generated.

<order:shipItemRel.state xsi:type="string">
<![CDATA[ INITIAL]]>
</order:shipItemRel.state>


I would like to get this as below:

<shipItemRelState>INITIAL</shipItemRelState>

Bob Withers

unread,
Nov 29, 2008, 8:32:24 AM11/29/08
to atg_...@googlegroups.com
Is your custom fulfillment system using an XML parser? The reason I
ask is that the two snippets you provide are identical according to
XML syntax and any parser should have no problem with either. On the
other hand if "INITIAL" represents text that contains XML
metacharacters then CDATA is required.

Regards,
Bob

Kishor

unread,
Nov 30, 2008, 8:26:41 AM11/30/08
to ATG_Tech
Hi Bob,

The custom fulfillment system is using an XML Parser and I agree with
your point that the XMLs snippets are similar. However, I would still
like to understand the level customization/configuration ATG provides
interms of customizing the generated XML.

Thanks,
Kishor
> > <shipItemRelState>INITIAL</shipItemRelState>- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages