473,399 Members | 3,401 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,399 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 2362
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...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.