Search:
Namespaces
Discussions
.NET v1.1
Feedback
WebService question
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngwebservices' list
.
Tim Royal
-- Moved from [aspngfreeforall] to [aspngwebservices] by Rachel Reese <
Click here to reveal e-mail address
> --
Hi. I have a strange question. I wrote a web service that handles calls to a
database and return values back to a custom client.
This custom client is pretty much set in its ways, so to speak. What I need
to send back are the equivalent of old INIs, like so:
[STUFF]
bla=1
bla2=34
[IGOR]
test=test2
.
.
.
and so on. The company has no desire contractually to want to convert this
to XML (grr....).
SO, I still wanted to write a web service, and it works pretty well. the
problem is that I'm getting output like this...
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="
http://www.hulabee.com/webservices/"
;>
[STUFF]
bla=1
bla2=34
[IGOR]
test=test2
[$SERVER]
RET_CODE=0
RET_REASON=SUCCESS
</string>
I have to find some way to NOT send the XML header above. Is there any
possible way to just have it send the contents in between the xml tags. Is
there any to suppress the XML part?
Thanks.
Tim
Reply to this message...
Yann Christensen
Using the HTTP-GET and HTTP-POST protocols you can write a [WebMethod]
that has a "void" return type. Then in your [WebMethod] you can use
HttpContext
.Current.Response to write anything back in the response
stream that you want. You will probably want to set the ContentType to
"text/plain".=20
-----Original Message-----
From: Tim Royal [mailto:
Click here to reveal e-mail address
]=20
Sent: Wednesday, July 10, 2002 8:50 AM
To: aspngwebservices
Subject: [aspngwebservices]
WebService
question
-- Moved from [aspngfreeforall] to [aspngwebservices] by Rachel Reese
<
Click here to reveal e-mail address
> --
Hi. I have a strange question. I wrote a web service that handles calls
to a
database and return values back to a custom client.
This custom client is pretty much set in its ways, so to speak. What I
need
to send back are the equivalent of old INIs, like so:
[STUFF]
bla=3D1
bla2=3D34
[IGOR]
test=3Dtest2
.
.
.
and so on. The company has no desire contractually to want to convert
this
to XML (grr....).
SO, I still wanted to write a web service, and it works pretty well. the
problem is that I'm getting output like this...
<?xml version=3D"1.0" encoding=3D"utf-8"?>
<string xmlns=3D"
http://www.hulabee.com/webservices/"
;>
[STUFF]
bla=3D1
bla2=3D34
[IGOR]
test=3Dtest2
[$SERVER]
RET_CODE=3D0
RET_REASON=3DSUCCESS
</string>
I have to find some way to NOT send the XML header above. Is there any
possible way to just have it send the contents in between the xml tags.
Is
there any to suppress the XML part?
Thanks.
Tim
| [aspngwebservices] member
Click here to reveal e-mail address
=3D YOUR ID
|
http://www.asplists.com/asplists/aspngwebservices.asp
=3D JOIN/QUIT
|
http://www.asplists.com/search
=3D SEARCH Archives
Reply to this message...
Simon Fell
Its not really a web service at that point. Can't you just write a
aspx or ashx to spit out the content in the format required ?
Cheers
Simon
On Wed, 10 Jul 2002 10:12:35 -0700, in asp-ml you wrote:
[Original message clipped]
Reply to this message...
Yann Christensen
It's not a SOAP Web Service, but I still think of it as a web service,
it's certainly a [WebMethod] with the parameters being nicely parsed out
for you. Originally we had a mechanism for adding additional mime type
encoders/decoders so you could return an object and have it encoded into
a mime type other than XML, but we had to cut that feature for schedule
reasons (and it became less of a priority since SOAP was catching on).
-----Original Message-----
From: Simon Fell [mailto:
Click here to reveal e-mail address
]=20
Sent: Wednesday, July 10, 2002 6:54 PM
To: aspngwebservices
Subject: [aspngwebservices] RE:
WebService
question
Its not really a web service at that point. Can't you just write a
aspx or ashx to spit out the content in the format required ?
Cheers
Simon
On Wed, 10 Jul 2002 10:12:35 -0700, in asp-ml you wrote:
[Original message clipped]
| [aspngwebservices] member
Click here to reveal e-mail address
=3D YOUR ID
|
http://www.asplists.com/asplists/aspngwebservices.asp
=3D JOIN/QUIT
|
http://www.asplists.com/search
=3D SEARCH Archives
Reply to this message...
System.Web.HttpContext
System.Web.Services.WebService
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com