Solved

pass xml-file to a serverbased script??

Posted on 2000-04-30
7
173 Views
Last Modified: 2010-04-04
Hi!

I have to pass an XMLfile to a serverbased scipt and then receive the result (also XML).
How can i do this?
Can I use the html put-method (or post) ?

The XMLfile i have pass to the script:
<?xml version="1.0"?>
<OP="GETINFO">
  <USERNAME>USERNAME</USERNAME>
  <PWD>PWD</PWD>
</OP>

thanks
PhrAtoR


0
Comment
Question by:PhrAtoR
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 

Author Comment

by:PhrAtoR
ID: 2763792
can i use the nmhttp component (Fastnet)
0
 
LVL 4

Expert Comment

by:mhervais
ID: 2763892
Definately  you should be careful about Netmasters components (NMHTTP, NM ....) and this for many reasons

1) they are not stable (or they were not when I used them less that one year ago). I even bought sources and support. I have emails attesting it.

I lost a huge time trying to make them work

2) If I understood it well Winshoes' author claims to who wants to know it that he sold a licence to netmasters for which he was never paid for, and that NM was selling its components illegally.  Of course I am not judge of this case, but I think it is relevant to know it : http://www.pbe.com/Winshoes/OtherComps.html

if you need good internet suites I recommend :

a) ICS components (freeware) very good components, wonderful support
http://www.rtfm.be/fpiette/indexuk.htm

I do not use them in my product because I am doing multithreading and they are more efficient in a messaging strategy;

b) IPWorks components (www.dev-soft.com) shareware about $290 , the reference. they have versions for many plateforms they work quick and well and have a good support.

Be careful do take ICK components (same company but a pain in the neck when I tried them)

regards, Marc

0
 

Author Comment

by:PhrAtoR
ID: 2764878
Adjusted points from 25 to 75
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:PhrAtoR
ID: 2764879
Ok mhervais . I'll use fpiettes components.
(The url you gave me is made by winshoes developers. so it may be the comments there are not objective.?)


But how to pass a xml-file to a serverbased script?? can i use post or put?

thanks
PhrAtoR
0
 
LVL 4

Expert Comment

by:mhervais
ID: 2765176
About winshoes, I just wanted you to know about it. personally I don't use them, mainly because
1) I found what I need,
2) they do not fit in my architecture,
3) as they (seem to) have the same origin of fastnet components and due to all the problems I had with those, I am afraid to get them back.

FPiette's HTTP component includes post but not Put. however the two methods seem to be quite alike.

after, everything depends on what your server requires.  
0
 

Author Comment

by:PhrAtoR
ID: 2765863
i don't know exactly what the server requires.
The program is for a competition. They sent me a decription of what the program shall do and it's said the xml-file has to be passed to a serverbased script,witch returns data in another xml-file.
Any idea?
0
 

Accepted Solution

by:
shenoy earned 75 total points
ID: 2765865
You can use the POST method of the NMHTTP component to send XML data to the server. I've used this:

nmHTTP.Post(szServer, szXML);
FDocument.loadXML(nmHTTP.Body);

where szXML is a string containing the XML (you can load it from your file). The FDocument is an MSXML parser instance that loads up the XML returned by the server script. (This is for a stock quote application which sends the stock tickers in XML to an ISAPI DLL on the server, which returns the quotes in XML)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses
Course of the Month9 days, 10 hours left to enroll

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question