473,382 Members | 1,611 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

What's the equivalent of MSXML in .net?

I want to send xml to some site and get response (also
XML). I am using vb.net,but I don't want to install MSXML
4.0 .
Jul 21 '05 #1
4 2361
There is a whole namespace for XML in .NET (more than one actually,
depending on what you are doing):

System.Xml is where most of the classes you are familiar with reside. NOTE,
however, that the methodology has changed, especially for transformations,
so learn the new methodology or perish.

Other namespaces:

System.Xml.Schema
System.Xml.Serialization
System.Xml.XPath
System.Xml.Xsl

You can pretty much guess the use of each except perhaps serialization,
which is used to serialize objects into XML for distributed applications.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"isee" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
I want to send xml to some site and get response (also
XML). I am using vb.net,but I don't want to install MSXML
4.0 .

Jul 21 '05 #2
Actually, I want to use ServerXMLHTTP. Is this in
System.XML? Which class?
-----Original Message-----
There is a whole namespace for XML in .NET (more than one actually,depending on what you are doing):

System.Xml is where most of the classes you are familiar with reside. NOTE,however, that the methodology has changed, especially for transformations,so learn the new methodology or perish.

Other namespaces:

System.Xml.Schema
System.Xml.Serialization
System.Xml.XPath
System.Xml.Xsl

You can pretty much guess the use of each except perhaps serialization,which is used to serialize objects into XML for distributed applications.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************* ******** *************Think Outside the Box!
************************************************* ******** *************"isee" <an*******@discussions.microsoft.com> wrote in messagenews:03****************************@phx.gbl...
I want to send xml to some site and get response (also
XML). I am using vb.net,but I don't want to install MSXML 4.0 .

.

Jul 21 '05 #3
There is no direct equivalent for HTTP posting in the .NET Framework,
largely due to the move to SOAP (ala Web Services). As such, I would try to
move away from this methodology. If this is not possible, continue to use
the MSXML package. There are some managed classes in there, although I am
not sure about the HTTP classes, and you can use interop for the remainder.

To roll a completely .NET solution, you will end up creating sockets, et al.
I know I have seen an example of this on the web. I will put a marker on
this thread and see if I can come back with an answer later.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Isee" <an*******@discussions.microsoft.com> wrote in message
news:05****************************@phx.gbl...
Actually, I want to use ServerXMLHTTP. Is this in
System.XML? Which class?
-----Original Message-----
There is a whole namespace for XML in .NET (more than

one actually,
depending on what you are doing):

System.Xml is where most of the classes you are familiar

with reside. NOTE,
however, that the methodology has changed, especially

for transformations,
so learn the new methodology or perish.

Other namespaces:

System.Xml.Schema
System.Xml.Serialization
System.Xml.XPath
System.Xml.Xsl

You can pretty much guess the use of each except perhaps

serialization,
which is used to serialize objects into XML for

distributed applications.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************* ********

*************
Think Outside the Box!
************************************************* ********

*************
"isee" <an*******@discussions.microsoft.com> wrote in

message
news:03****************************@phx.gbl...
I want to send xml to some site and get response (also
XML). I am using vb.net,but I don't want to install MSXML 4.0 .

.

Jul 21 '05 #4

private static string PostURI(string URI, string Parameters)
{
string CommandURI = URI;
WebRequest myWebRequest = WebRequest.Create(CommandURI);

//needed only if outbound traffic must go through a proxy server
//WebProxy proxyObject = new WebProxy("http://MyProxyServer:80/",true);
//myWebRequest.Proxy = proxyObject;

myWebRequest.ContentType = "application/x-www-form-urlencoded";
myWebRequest.Method = "POST";
byte [] bytes = System.Text.Encoding.ASCII.GetBytes(Parameters);
myWebRequest.ContentLength = bytes.Length;
Stream OutputStream = myWebRequest.GetRequestStream ();
OutputStream.Write (bytes, 0, bytes.Length);
OutputStream.Close ();
WebResponse MyWebResponse = myWebRequest.GetResponse();
Stream MyStream = MyWebResponse.GetResponseStream();
StreamReader MyStreamReader = new StreamReader(MyStream);
return MyStreamReader.ReadToEnd().Trim();
}


"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamM> wrote in
message news:OI****************@TK2MSFTNGP11.phx.gbl...
There is no direct equivalent for HTTP posting in the .NET Framework,
largely due to the move to SOAP (ala Web Services). As such, I would try to move away from this methodology. If this is not possible, continue to use
the MSXML package. There are some managed classes in there, although I am
not sure about the HTTP classes, and you can use interop for the remainder.
To roll a completely .NET solution, you will end up creating sockets, et al. I know I have seen an example of this on the web. I will put a marker on
this thread and see if I can come back with an answer later.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Isee" <an*******@discussions.microsoft.com> wrote in message
news:05****************************@phx.gbl...
Actually, I want to use ServerXMLHTTP. Is this in
System.XML? Which class?
-----Original Message-----
There is a whole namespace for XML in .NET (more than

one actually,
depending on what you are doing):

System.Xml is where most of the classes you are familiar

with reside. NOTE,
however, that the methodology has changed, especially

for transformations,
so learn the new methodology or perish.

Other namespaces:

System.Xml.Schema
System.Xml.Serialization
System.Xml.XPath
System.Xml.Xsl

You can pretty much guess the use of each except perhaps

serialization,
which is used to serialize objects into XML for

distributed applications.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************* ********

*************
Think Outside the Box!
************************************************* ********

*************
"isee" <an*******@discussions.microsoft.com> wrote in

message
news:03****************************@phx.gbl...
> I want to send xml to some site and get response (also
> XML). I am using vb.net,but I don't want to install

MSXML
> 4.0 .
.


Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: OKI | last post by:
Hi. I´ve made a XML parser using MSXML2.LIB in a computer. When i´ve tried to run it in another one like that: HRESULT hr = CoCreateInstance(CLSID_DOMDocument, NULL, CLSCTX_INPROC_SERVER,...
5
by: Steve Jorgensen | last post by:
I was having a bear of a time today trying to figure out some inconsistent behavior selecting nodes from and MSXML DOM document, so I distilled the issue down to a trivial test demonstrating the...
6
by: Alfred Taylor | last post by:
I'm having performance/memory problems using .NET's XslTransform class so I thought I'd give the MSXML object's a whirl. The question I haven't been able to find in these groups is can I use C#...
8
by: isee | last post by:
I want to send xml to some site and get response (also XML). I am using vb.net,but I don't want to install MSXML 4.0 .
0
by: MLH | last post by:
In the following code snippet, notice ("PIN=1234567890&MSSG=Here+is+a+short+message+-+no+spaces+-+just+plusses&Q1=0") I have it that way because I thought PLUSes were required and that spaces...
1
by: Michael Nemtsev | last post by:
Any kind of differences? Were they buid on the common base or different? -- WBR, Michael Nemtsev :: blog: http://spaces.msn.com/laflour "At times one remains faithful to a cause only...
13
by: yawnmoth | last post by:
<http://www.quirksmode.org/book/printable/xmlhttp.txtshows two alternatives to Microsoft.XMLHTTP - Msxml2.XMLHTTP and Msxml3.XMLHTTP. If my understanding is correct, the different numbers refer to...
14
by: salad | last post by:
XML seems to be a hot technology buzzword. And it appears XML is supported in A2003. I am wondering if it could be used in the following scenario. I create an order record for the customer. ...
4
by: mrjaxon | last post by:
I have a C# web application which leverages MSXML that I am trying to migrate to a 64 bit environment. Currently the application is built on the .NET 2.0 Framework and using MSXML 6 (though I had...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.