Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

pass xml-file to a serverbased script??

Posted on 2000-04-30
7
Medium Priority
?
176 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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 150 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

722 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