Solved

pass xml-file to a serverbased script??

Posted on 2000-04-30
7
171 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
  • 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
Industry Leaders: 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!

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

756 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