|
-
Feb 28th, 2009, 01:39 AM
#3
Thread Starter
New Member
Re: [2005] XML Template
Example, whenever someone buy a book on my bookshop website, my bookshop engine will send a XML request to my main supplier with the book and customer info.
XML sample,
<tns:Request xsi:schemaLocation="...." xmlns:tns="...." messageType="REQUEST" messageId="12345">
<tns:MsgHeader requestorId="69" isAsync="true" referenceId="" destinationId="SupplierGateway">
<tns:Gateway gatewayName="SupplierGateway" gatewayType="HTTP"></tns:Gateway>
</tns:MsgHeader>
<tns:MsgBody>
<tns:Operations execMode="PARALLEL">
<tns:Operation execOrder="0" execType="ASYNC" action="new_order">
<tns:ParameterList>
<tns:ParameterDef parameterName="bookno" parameterType="String" parameterValue="9473204"/>
<tns:ParameterDef parameterName="customername" parameterType="String" parameterValue="John"/>
<tns:ParameterDef parameterName="customeraddress" parameterType="String" parameterValue="Queensland street 17 ..."/>
</tns:ParameterList>
</tns:Operation>
</tns:Operations>
</tns:MsgBody>
</tns:Request>
Everytime when there is a new order, the only changes in the XML are bookno, customername and customeraddress values. Am thinking is there a way to create the XML template so that the codings will looks better and easy to amend when there is a XML modification at supplier end
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|