[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Newbie confusion with xml

  • To: "xml . org" <xml-dev@l...>
  • Subject: Newbie confusion with xml
  • From: <dale@q...>
  • Date: Mon, 19 Aug 2002 11:05:49 -0400
  • Organization: Dataworld Inc.
  • Reply-to: <dale@q...>

credential domain
 
 
  Ok, I have a million and one questions for you guys but I'm going to take it step by step. The company I work for has an account on Ariba and orders are placed and sent to us through e-mail. We have the option of receiving it in cXML if we specify a URL to send it to. Our overall goal is to convert the info into csv format. We then need to be able to send back an order confirmation and order updates back to Ariba in response to the orderRequest.
 
This is an example of what we would be receiving in the orderRequest.xml, please take a look and I have a few question at bottom...
 

  <?xml version="1.0" encoding="UTF-8" ?>
- <!--
    Ordering three line items for delivery on the same day (a few days
    after the order date).
 

  -->
  <!DOCTYPE cXML (View Source for full doctype...)>
- <cXML payloadID="32232995@a..." timestamp="2000-10-12T18:39:09-08:00" xml:lang="en-US" version="1.2.007">
- <Header>
- <From>
- <!--  The buying marketplace and member organization.
  -->
- <Credential domain="AribaNetworkUserId" type="marketplace">
  <Identity>bigadmin@m...</Identity>
  </Credential>
- <Credential domain="AribaNetworkUserId">
  <Identity>admin@a...</Identity>
  </Credential>
  </From>
- <To>
- <Credential domain="DUNS">
  <Identity>942888711</Identity>
  </Credential>
  </To>
- <Sender>
- <!--
 This document has passed through Ariba CSN to the
                 supplier.
 
  -->
- <Credential domain="AribaNetworkUserId">
  <Identity>sysadmin@a...</Identity>
  <SharedSecret>abracadabra</SharedSecret>
  </Credential>
  <UserAgent>Ariba CSN 33</UserAgent>
  </Sender>
  </Header>
- <Request deploymentMode="test">
- <OrderRequest>
- <OrderRequestHeader orderID="DO1234" orderDate="2000-10-12" type="new" orderType="regular">
- <Total>
  <Money currency="USD">187.60</Money>
  </Total>
- <ShipTo>
- <Address>
  <Name xml:lang="en">Acme</Name>
- <PostalAddress name="default">
  <DeliverTo>Joe Smith</DeliverTo>
  <DeliverTo>Mailstop M-543</DeliverTo>
  <Street>123 Anystreet</Street>
  <City>Sunnyvale</City>
  <State>CA</State>
  <PostalCode>90489</PostalCode>
  <Country isoCountryCode="US">United States</Country>
  </PostalAddress>
  </Address>
  </ShipTo>
- <BillTo>
- <Address>
  <Name xml:lang="en">Acme</Name>
- <PostalAddress name="default">
  <Street>123 Anystreet</Street>
  <City>Sunnyvale</City>
  <State>CA</State>
  <PostalCode>90489</PostalCode>
  <Country isoCountryCode="US">United States</Country>
  </PostalAddress>
  </Address>
  </BillTo>
- <Payment>
  <PCard number="1234567890123456" expiration="2001-03-12" />
  </Payment>
  <Comments xml:lang="en-US">Anything well formed in XML.</Comments>
  </OrderRequestHeader>
- <ItemOut quantity="10" requestedDeliveryDate="2000-10-18" lineNumber="1">
- <ItemID>
  <SupplierPartID>1233244</SupplierPartID>
  </ItemID>
- <ItemDetail>
- <UnitPrice>
  <Money currency="USD">1.34</Money>
  </UnitPrice>
  <Description xml:lang="en">hello from item 1</Description>
  <UnitOfMeasure>EA</UnitOfMeasure>
  <Classification domain="SPSC">12345</Classification>
  <ManufacturerPartID>234</ManufacturerPartID>
  <ManufacturerName>foobar</ManufacturerName>
  <URL>www.foo.com</URL>
  </ItemDetail>
  </ItemOut>
- <ItemOut quantity="20" requestedDeliveryDate="2000-10-18" lineNumber="4">
- <ItemID>
  <SupplierPartID>1233245</SupplierPartID>
  </ItemID>
- <ItemDetail>
- <UnitPrice>
  <Money currency="USD">2.68</Money>
  </UnitPrice>
  <Description xml:lang="en">hello from item 4</Description>
  <UnitOfMeasure>EA</UnitOfMeasure>
  <Classification domain="SPSC">12346</Classification>
  <ManufacturerPartID>235</ManufacturerPartID>
  <ManufacturerName>foobar</ManufacturerName>
  <URL>www.foo.com</URL>
  </ItemDetail>
  </ItemOut>
- <ItemOut quantity="30" requestedDeliveryDate="2000-10-18" lineNumber="5">
- <ItemID>
  <SupplierPartID>1233246</SupplierPartID>
  </ItemID>
- <ItemDetail>
- <UnitPrice>
  <Money currency="USD">4.02</Money>
  </UnitPrice>
  <Description xml:lang="en">hello from item 5</Description>
  <UnitOfMeasure>EA</UnitOfMeasure>
  <Classification domain="SPSC">12347</Classification>
  <ManufacturerPartID>236</ManufacturerPartID>
  <ManufacturerName>foobar</ManufacturerName>
  <URL>www.foo.com</URL>
  </ItemDetail>
  </ItemOut>
  </OrderRequest>
  </Request>
  </cXML>
 
Now, I'm sure you can see how confusing this can seem to a beginner trying to teach himself.
How would I receive something like this?
What kind of page would I need to catch this information?
How would I send the response?
How can confidential information like this be sent to a URL and be secure from everyone else?
 
Hopefully one of you were once in my situation and can help. Whether you can help with one or all of the questions it would be appreciated because I have alot more than that.
Thank you
Dale Bryan

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.