473,385 Members | 1,893 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,385 software developers and data experts.

XML over HTTP

Hi,

I have to write an interface that accepts "XML over HTTP"-messages. How is
this done in .NET?

The goal is to have an application (webservice, webapplication, ...) that
accepts XML over HTTP and that sends reponses the same way.

I'm used to webservices, but this seems to be different.

Can someone give me a hint?

Jeroen db
Nov 19 '05 #1
5 3591
Well, webservices are XML over HTTP
It's just another name.

Cheers,
//Rutger

http://www.RutgerSmit.com

Jeroen De Brabander wrote:
Hi,

I have to write an interface that accepts "XML over HTTP"-messages. How is
this done in .NET?

The goal is to have an application (webservice, webapplication, ...) that
accepts XML over HTTP and that sends reponses the same way.

I'm used to webservices, but this seems to be different.

Can someone give me a hint?

Jeroen db

Nov 19 '05 #2
Hi Rutger,

I'm probably being a real newbie, I'm a little confused ...

I am aware of the fact that webservices use XML over HTTP but in my
situation, the party I'm interfacing with wants a URL to which they can send
XML messages to. They will not be able to call webmethods and so on. They
just want a URL from me to which they make a xmlhttpRequest.

Is this making any sense?

Jeroen db

"//Rutger Smit" <Do******@Gmail.com> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
Well, webservices are XML over HTTP
It's just another name.

Cheers,
//Rutger

http://www.RutgerSmit.com

Jeroen De Brabander wrote:
Hi,

I have to write an interface that accepts "XML over HTTP"-messages. How
is this done in .NET?

The goal is to have an application (webservice, webapplication, ...) that
accepts XML over HTTP and that sends reponses the same way.

I'm used to webservices, but this seems to be different.

Can someone give me a hint?

Jeroen db

Nov 19 '05 #3
you will need more info. there are three approaches

1) a standard webserveice (SOAP)
2) xml post - standard http post - content-type: text/xml or
application/xml
3) xml urlencode in a form field - content-type:
application/x-www-form-urlencoded

-- bruce (sqlwork.com)
"Jeroen De Brabander" <Jd**********@belgacom.net> wrote in message
news:eY**************@TK2MSFTNGP12.phx.gbl...
Hi,

I have to write an interface that accepts "XML over HTTP"-messages. How is
this done in .NET?

The goal is to have an application (webservice, webapplication, ...) that
accepts XML over HTTP and that sends reponses the same way.

I'm used to webservices, but this seems to be different.

Can someone give me a hint?

Jeroen db

Nov 19 '05 #4
I think, to make an aspx page return XML all you need to do is to remove all
HTML tags from aspx page and do response.write to contruct the response XML
tags

this may help http://www.objectgraph.com/dictionary/how.html

Googling : "xmlhttpRequest asp" should bring up some more samples

"Jeroen De Brabander" wrote:
Hi,

I have to write an interface that accepts "XML over HTTP"-messages. How is
this done in .NET?

The goal is to have an application (webservice, webapplication, ...) that
accepts XML over HTTP and that sends reponses the same way.

I'm used to webservices, but this seems to be different.

Can someone give me a hint?

Jeroen db

Nov 19 '05 #5
Haven't tried it in C#, but I imagine this might work:

Posting:
http://yourdomain.com/yourpage.aspx?data=<xml_to_post/>
-of course this needs to be done as a post and not a query or it will
get truncated

In yourpage.aspx

void Page_Load()
{
string strPostedXml = (string) Request["data'];
}

I don't think it needs to be any harder than that.

Nov 19 '05 #6

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

Similar topics

7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
8
by: turnit \(removethis\) | last post by:
I have a login form that uses the post method to carry the information to the next page. The form works just fine in ie6.0, but fails in mozilla and fails in ie5.2 on a mac. "HTTP/1.1 400 Bad...
3
by: ashesdesign | last post by:
Hi All, I am very new to php and even newer to XML. Can anyone please shed some light on how to post XML requests via HTTP. I have been searching high and low and have come across many...
5
by: David Lozzi | last post by:
Howdy, I wrote a web service in .Net for my customer. My customer has another vendor who now has to consume it but they are not using Visual Studio. Most of their pages are jsp, and they said...
4
by: Bob Badger | last post by:
Hi, Simple question (although I guess with a complicated answer). Is HTTP an async protocol? For instance, if I send a message to a c# webservice via http what is the protocol actually doing? ...
1
by: zpinhead | last post by:
I am unable to get my downloaded extension from pecl to link up with php properly. seems like the php.so I could not use pear install http. pear claimed the extension was already installed....
3
by: webEater | last post by:
Hey, I am writing a file that reads in an external file in the web and prints it out including the response header of the http protocol. I do this to enable cross domain XMLHttpRequests. I...
1
by: rpjd | last post by:
I am completely new to this so please bear with me here. My project involves a webpage executing php scripts via an xmlhttprequest which queries a database and returns data to the webpage. This code...
1
by: rpjd | last post by:
I am having a problem getting the http.status of an xmlhttprequest. The request readystate has come back as readystate 4, but then it stops without confirming the http.status. Any help appreciated....
16
by: Harry Simpson | last post by:
I've been away from ASPNET - I open up a new Web app in VS2008 and go into properties and select to use IIS instead of the personal web server. Then I run in debug mode and it says I have to set...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.