RE: sender/receiver ids transmitted within xml documents...

Depending on how 'strongly' you want to identify the sender you can take
several approaches (few give very strong non-spoofable capabilities)
 - use transfer protocol information (http headers (Authorization:), smtp
headers (From:), etc.)
 - use soap headers (make up your own names, or look for what other people
are using)
 - use soap body (make up your own names, or look for what other people are
using)
 - use document content

Each approch has its own unique api and/or object model (servlet, soap
toolkits, dom, etc.) in order to make it difficult, um, I mean, easy to get
to the pieces of data you want.

In the case of XML content, with sender/receiver or routing information
inside, you can load the XML content with an XML parser that supports XPath
and use an XPath statement to pull out the interesting bits.

For example:
Here are some XPath statements for the following document (assuming you are
starting from the documentElement):

 shipper=doc.selectSingleNode("shipper/number");
 consignee=doc.selectSingleNode("consignee/acct");
 

--sample.xml--
<bill-of-lading>
<trailer>Y789</trailer>

<shipper>
 <number>128</number>
 <contact>
  <name>Billy Blazes</name>
  <street>65535 Binary Ave</street>
  <city>Chiba</city>
 </contact>
</shipper>

<consignee>
 <acct>256</acct>
 <contact>
  <name>Rocky Canyon</name>
  <street>65535 Binary Ave</street> 
  <city>Chiba</city>
 </contact>
<consignee>

</bill-of-lading>





> -----Original Message-----
> From: Don_Crowley@jbhunt.com [mailto:Don_Crowley@jbhunt.com] 
> Sent: Sunday, March 31, 2002 8:48 AM
> To: xml-dist-app@w3.org
> Subject: sender/receiver ids transmitted within xml documents...
> 
> 
> I am relatively new to xml but we are receiving xml documents 
> via the internet onto a server from which our software tries 
> to identify from whom the data is from and to whom it is 
> being sent.  How do I go about setting this up?  I have a DTD 
> but no information about sender or receiver.
> 
> thanks,
> Don
> 

Received on Wednesday, 3 April 2002 19:42:40 UTC