Starting a PunchOut session using cXML

A request is sent from the Buyer’s solution.

The procurement application generates a PunchOutSetupRequest document and sends it to an e-commerce hub, which forwards it to the supplier’s PunchOut website.

 

Following is a sample PunchOutSetupRequest document:

<?xml version="1.0"?>

<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd">

<cXML xml:lang="en-US" payloadID="933694607118.1869318421@jlee"

timestamp="2002-08-15T08:36:47-07:00">

 <Header>

         <From> {Originator (buying organization)}

                 <Credential domain="DUNS">

                         <Identity>65652314</Identity>

                 </Credential>

         </From>

         <To> {Destination (supplier)}

                 <Credential domain="DUNS">

                         <Identity>83528721</Identity>

                 </Credential>

         </To>

         <Sender> {Previous relaying entity (Network hub in this case)}

                 <Credential domain="NetworkId">

                         <Identity>AN200001</Identity>

                         <SharedSecret>abracadabra</SharedSecret>

                 </Credential>

                 <UserAgent>Procurement System 2.0</UserAgent>

         </Sender>

 </Header>

 <Request>

         <PunchOutSetupRequest operation="create"> {Type of request}

                 <BuyerCookie>1CX3L4843PPZO</BuyerCookie>

                 <Extrinsic name="UserEmail">jsmith</Extrinsic>

                 <Extrinsic name="UniqueName">John_Smith</Extrinsic>

                 <Extrinsic name="CostCenter">610</Extrinsic>

                 <BrowserFormPost> {Destination for final PunchOutOrderMessage}

                         <URL>https://bigbuyer.com:2600/punchout?client=NAwl4Jo</URL>

                 </BrowserFormPost>

                 <SupplierSetup>

                         <URL>http://www.workchairs.com/punchout.asp</URL>

                 </SupplierSetup>

                 <ShipTo>

                         <Address addressID="1000467">

                                 <Name xml:lang="en">1000467</Name>

                                 <PostalAddress>

                                         <DeliverTo>John Smith</DeliverTo>

                                         <Street>123 Main Street</Street>

                                         <City>Sunnyvale</City>

                                         <State>CA</State>

                                         <PostalCode>94089</PostalCode>

                                         <Country isoCountryCode="US">United States</Country>

                                 </PostalAddress>

                         </Address>

                 </ShipTo>

                 <SelectedItem>

                         <ItemID>

                                 <SupplierPartID>5555</SupplierPartID>

                         </ItemID>

                 </SelectedItem>

         </PunchOutSetupRequest>

 </Request>

</cXML>