473,394 Members | 2,100 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

reading xml returned on http

Hello,

I am working on a client project and they have a connection to a catalog
system that passes data back and forth as xml over http

The format of the data is as follow(s)
<?xml version="1.0"?>

<customer-redemption>
<partner-client>USA</partner-client>
<partner-client-participant-id>
<user-name>69</user-name>
<password>xxxxxxxxxx</password>
<user-handle>dko</user-handle>
</partner-client-participant-id>
<redemption>
<order-number>410416</order-number>
<ship-to>
<first-name>ERT</first-name>
<middle-name></middle-name>
<last-name>KO</last-name>
<address-line-1>station
dental</address-line-1>
<address-line-2>167 road 24 ste.
6</address-line-2>
<city>bobs your uncle</city>
<state-code>TX</state-code>
<postal-code>99999</postal-code>
<postal-code-ext></postal-code-ext>
<country-code>USA</country-code>
</ship-to>
<total-points-spent>18182</total-points-spent>
<date-time>2006-03-17 09:54:05.0</date-time>
<item-redeemed>
<item-number>203089</item-number>
<item-description>Pro Line Golf Ball
Retriever</item-description>
<qty>1</qty>
<price>18182.0</price>
<line-number>1</line-number>
</item-redeemed>
</redemption>
</customer-redemption>


I have worked on projects where you call a webservice and that returns xml
back to a calling page, but this is not a webservice and I was wondering if
any one had any experience with reading xml over http request, where
apparently this returned as a web page. If you could reply to this post I
would really appreciate it. Thanks.

--
J. D.
Mar 18 '06 #1
4 1385
"J.D." <jd****@dalys.us> wrote in message
news:ul**************@TK2MSFTNGP11.phx.gbl...
Hello,

I am working on a client project and they have a connection to a catalog
system that passes data back and forth as xml over http

The format of the data is as follow(s)
<?xml version="1.0"?>

<customer-redemption>
<partner-client>USA</partner-client>
<partner-client-participant-id>
<user-name>69</user-name>
<password>xxxxxxxxxx</password>
<user-handle>dko</user-handle>
</partner-client-participant-id>
<redemption>
<order-number>410416</order-number>
<ship-to>
<first-name>ERT</first-name>
<middle-name></middle-name>
<last-name>KO</last-name>
<address-line-1>station
dental</address-line-1>
<address-line-2>167 road 24 ste.
6</address-line-2>
<city>bobs your uncle</city>
<state-code>TX</state-code>
<postal-code>99999</postal-code>
<postal-code-ext></postal-code-ext>
<country-code>USA</country-code>
</ship-to>
<total-points-spent>18182</total-points-spent>
<date-time>2006-03-17 09:54:05.0</date-time>
<item-redeemed>
<item-number>203089</item-number>
<item-description>Pro Line Golf Ball
Retriever</item-description>
<qty>1</qty>
<price>18182.0</price>
<line-number>1</line-number>
</item-redeemed>
</redemption>
</customer-redemption>
I have worked on projects where you call a webservice and that returns xml
back to a calling page, but this is not a webservice and I was wondering

if any one had any experience with reading xml over http request, where
apparently this returned as a web page. If you could reply to this post I
would really appreciate it. Thanks.

What do you want to do with the XML data?

Do you know about XSLT?

http://xmlxslt.sourceforge.net/
http://www.brics.dk/~amoeller/XML/xslt.html

Here's an indented listing for readability:

<?xml version="1.0"?>
<customer-redemption>
<partner-client>USA</partner-client>
<partner-client-participant-id>
<user-name>69</user-name>
<password>xxxxxxxxxx</password>
<user-handle>dko</user-handle>
</partner-client-participant-id>
<redemption>
<order-number>410416</order-number>
<ship-to>
<first-name>ERT</first-name>
<middle-name></middle-name>
<last-name>KO</last-name>
<address-line-1>station dental</address-line-1>
<address-line-2>167 road 24 ste. 6</address-line-2>
<city>bobs your uncle</city>
<state-code>TX</state-code>
<postal-code>99999</postal-code>
<postal-code-ext></postal-code-ext>
<country-code>USA</country-code>
</ship-to>
<total-points-spent>18182</total-points-spent>
<date-time>2006-03-17 09:54:05.0</date-time>
<item-redeemed>
<item-number>203089</item-number>
<item-description>Pro Line Golf Ball Retriever</item-description>
<qty>1</qty>
<price>18182.0</price>
<line-number>1</line-number>
</item-redeemed>
</redemption>
</customer-redemption>
Mar 18 '06 #2
"McKirahan" <Ne**@McKirahan.com> wrote in message
news:y7******************************@comcast.com. ..
"J.D." <jd****@dalys.us> wrote in message
news:ul**************@TK2MSFTNGP11.phx.gbl...
Hello,

I am working on a client project and they have a connection to a catalog
system that passes data back and forth as xml over http [snip] I have worked on projects where you call a webservice and that returns xml back to a calling page, but this is not a webservice and I was wondering

if
any one had any experience with reading xml over http request, where
apparently this returned as a web page. If you could reply to this post I would really appreciate it. Thanks.

[snip]

Perhaps this link will help:
http://www.w3schools.com/dom/dom_examples.asp
Mar 18 '06 #3
> "J.D." <jd****@dalys.us> wrote in message
news:ul**************@TK2MSFTNGP11.phx.gbl...
Hello,

I am working on a client project and they have a connection to a catalog
system that passes data back and forth as xml over http [snip] I have worked on projects where you call a webservice and that returns xml back to a calling page, but this is not a webservice and I was wondering if
any one had any experience with reading xml over http request, where
apparently this returned as a web page. If you could reply to this post I would really appreciate it. Thanks.

[snip]

Here's another link:
http://www.webpasties.com/xmlHttpRequest/
Guide to Using AJAX and XMLHttpRequest from WebPasties
Also, there was an error in both of our listings:
Here's an indented listing for readability:

<?xml version="1.0"?>


There needs to be a space before "?>" in the above line; as in:
<?xml version="1.0" ?>
Mar 18 '06 #4
Thanks for the examples down below, but what I was looking for was passing
xml between two servers.
but your links were helpful.
"McKirahan" <Ne**@McKirahan.com> wrote in message
news:y7******************************@comcast.com. ..
"J.D." <jd****@dalys.us> wrote in message
news:ul**************@TK2MSFTNGP11.phx.gbl...
Hello,

I am working on a client project and they have a connection to a catalog
system that passes data back and forth as xml over http

The format of the data is as follow(s)
> <?xml version="1.0"?>
>
> <customer-redemption>
> <partner-client>USA</partner-client>
> <partner-client-participant-id>
> <user-name>69</user-name>
> <password>xxxxxxxxxx</password>
> <user-handle>dko</user-handle>
> </partner-client-participant-id>
> <redemption>
> <order-number>410416</order-number>
> <ship-to>
> <first-name>ERT</first-name>
> <middle-name></middle-name>
> <last-name>KO</last-name>
> <address-line-1>station
> dental</address-line-1>
> <address-line-2>167 road 24 ste.
> 6</address-line-2>
> <city>bobs your uncle</city>
> <state-code>TX</state-code>
> <postal-code>99999</postal-code>
> <postal-code-ext></postal-code-ext>
> <country-code>USA</country-code>
> </ship-to>
> <total-points-spent>18182</total-points-spent>
> <date-time>2006-03-17 09:54:05.0</date-time>
> <item-redeemed>
> <item-number>203089</item-number>
> <item-description>Pro Line Golf Ball
> Retriever</item-description>
> <qty>1</qty>
> <price>18182.0</price>
> <line-number>1</line-number>
> </item-redeemed>
> </redemption>
> </customer-redemption>


I have worked on projects where you call a webservice and that returns
xml
back to a calling page, but this is not a webservice and I was wondering

if
any one had any experience with reading xml over http request, where
apparently this returned as a web page. If you could reply to this post I
would really appreciate it. Thanks.

What do you want to do with the XML data?

Do you know about XSLT?

http://xmlxslt.sourceforge.net/
http://www.brics.dk/~amoeller/XML/xslt.html

Here's an indented listing for readability:

<?xml version="1.0"?>
<customer-redemption>
<partner-client>USA</partner-client>
<partner-client-participant-id>
<user-name>69</user-name>
<password>xxxxxxxxxx</password>
<user-handle>dko</user-handle>
</partner-client-participant-id>
<redemption>
<order-number>410416</order-number>
<ship-to>
<first-name>ERT</first-name>
<middle-name></middle-name>
<last-name>KO</last-name>
<address-line-1>station dental</address-line-1>
<address-line-2>167 road 24 ste. 6</address-line-2>
<city>bobs your uncle</city>
<state-code>TX</state-code>
<postal-code>99999</postal-code>
<postal-code-ext></postal-code-ext>
<country-code>USA</country-code>
</ship-to>
<total-points-spent>18182</total-points-spent>
<date-time>2006-03-17 09:54:05.0</date-time>
<item-redeemed>
<item-number>203089</item-number>
<item-description>Pro Line Golf Ball Retriever</item-description>
<qty>1</qty>
<price>18182.0</price>
<line-number>1</line-number>
</item-redeemed>
</redemption>
</customer-redemption>

Mar 18 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bernhard Kuemel | last post by:
Hi! I want to read/write commands and program input to/from /bin/bash several times before I close the stdin pipe. However, reading from cat hangs unless I first close the stdin pipe. <?php...
40
by: googler | last post by:
I'm trying to read from an input text file and print it out. I can do this by reading each character, but I want to implement it in a more efficient way. So I thought my program should read one...
7
by: John Dann | last post by:
I'm trying to read some binary data from a file created by another program. I know the binary file format but can't change or control the format. The binary data is organised such that it should...
5
by: Ian Meakin | last post by:
I am trying to consume a web service i have written. The web service returns to the client an array of objects. The web service when tested via inetrnet explorer retruns the correct xml data. I...
30
by: siliconwafer | last post by:
Hi All, I want to know tht how can one Stop reading a file in C (e.g a Hex file)with no 'EOF'?
1
by: Matthew | last post by:
Using .NET 1.1 I trying to consume a web service that returns an integer and an array of type string which I declare and use line this Dim Results() As String Me.txtMain.Text =...
4
by: Ivan Voras | last post by:
I have a simple network protocol client (it's a part of this: http://sqlcached.sourceforge.net) implemented in Python, PHP and C. Everything's fine, except that the Python implementation is the...
3
by: Pim75 | last post by:
Hello, I've written a simple asp code that has to read an xml file from an Asp.net webservice. The code looks like: set soapclient = Server.CreateObject("MSSOAP.SoapClient30")...
7
by: random guy | last post by:
Hi, I'm writing a program which creates an index of text files. For each file it processes, the program records the start and end positions (as returned by tellg()) of sections of interest,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.