ClioSport.net

Register a free account today to become a member!
Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • When you purchase through links on our site, we may earn an affiliate commission. Read more here.

XML and ASP



  Rav4
I need to extract some information from and XML file, that information needs to be stored as variables somewhere in the shopping cart and then the person goes to proceed checkout them variables are grabbed again and sent off.

Any ideas?
 

KDF

  Audi TT Stronic
Can you not store the data in an SQL databse ? what info is in the XML ?
 
  Rav4
Could do.

The problem here is that my knowledge in ASP is not too good, and this is a pain in the bum.

Basically.

Ariba send a PunchOutSetupRequest to testShop

testShop sends a receivePunchoutSetupRequest to Ariba

Ariba opens a new framed page, with testShop on bottom frame.

User goes around the shop and adds products to shopping cart.

When the user finalises checkout then the user is taken back to Ariba admin page where they can finish the transaction.

Needs to send them back to this url

<URL>https://service.ariba.com/CatalogTester.aw/1411292/ad/handleEditPunchOutOrder/wyKQE9vzTZ9MlsMM?awr=5&amp;aws=wyKQE9vzTZ9MlsMM</URL>

which is acquired from the XML document which the URL is unique every time.

GASH

Code:
cXML PunchOutSetupRequest 

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.011/cXML.dtd"><cXML timestamp="2007-06-01T03:22:19-07:00" payloadID="1180693339844-7180485994049997156@216.109.111.141" xml:lang="en-GB">        <Header><From>            <Credential domain="NetworkID">    <Identity>AN01000002779-T</Identity>    </Credential></From><To>        <Credential domain="DUNS">    <Identity>732556399-T</Identity>    </Credential>    </To><Sender>        <Credential domain="AribaNetworkUserId">    <Identity>ariba-network-catalog-tester@ariba.com</Identity>    <SharedSecret>******</SharedSecret></Credential>        <UserAgent>CatalogTester</UserAgent>    </Sender></Header><Request>        <PunchOutSetupRequest operation="create">            <BuyerCookie>wyKQE9vzTZ9MlsMM0.793581465081883416</BuyerCookie>            <Extrinsic name="CostCenter">670</Extrinsic><Extrinsic name="UserEmail">catalog_tester@ariba.com</Extrinsic><Extrinsic name="UniqueName">catalog_tester</Extrinsic><BrowserFormPost>                <URL>https://service.ariba.com/CatalogTester.aw/1411292/ad/handleEditPunchOutOrder/wyKQE9vzTZ9MlsMM?awr=5&amp;aws=wyKQE9vzTZ9MlsMM</URL>            </BrowserFormPost>            <SupplierSetup>                <URL>https://www.justchampagne.co.uk/airProducts/</URL>            </SupplierSetup>            <ShipTo>                     <Address addressID="26">    <Name xml:lang="en-GB">Catalog Tester</Name>    <PostalAddress name="_9uiCBb">    <DeliverTo>Catalog Tester</DeliverTo>    <Street>1234 Catalog Tester Way</Street>    <City>Sunnyvale</City>    <State>CA</State>    <PostalCode>94089</PostalCode>    <Country isoCountryCode="US">United States</Country></PostalAddress>    </Address>                </ShipTo><SelectedItem>                    <ItemID>                        <SupplierPartID>AAA</SupplierPartID>                        <SupplierPartAuxiliaryID></SupplierPartAuxiliaryID>                    </ItemID>                </SelectedItem>                    </PunchOutSetupRequest>    </Request></cXML>
 


Top