Solved

pass xml-file to a serverbased script??

Posted on 2000-04-30
7
167 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now