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
Solved

pass xml-file to a serverbased script??

Posted on 2000-04-30
7
170 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 

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

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…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

790 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