Is there anyway I can make my xml webservice not htmlencode the response
from a call to an API?
I have:
public int PerformOperation(string operation, out string result)
The content of result is html encoded, but since it contains valid xml,
I should get away with not htmlencoding it, or not?
<soap:Body
<PerformOperationResponse xmlns="http://tempuri.org/"
<PerformOperationResult
0
</PerformOperationResult
<result
<RetrieveTreeResponse id="123"
<Node id="1"
title="TopLevelNode1"
<Node id="2"
title="2LevelNode1" /
<Node id="3"
title="2LevelNode2" /
</Node
<Node id="4"
title="TopLevelNode2" /
</RetrieveTreeResponse
</result
</PerformOperationResponse
</soap:Body
Casper Hornstrup wrote:
> Is there anyway I can make my xml webservice not htmlencode the response
> from a call to an API?
> I have:
> public int PerformOperation(string operation, out string result)
> The content of result is html encoded, but since it contains valid xml,
> I should get away with not htmlencoding it, or not?
Try to use a parameter of type XmlNode instead of a string.
> <soap:Body>
> <PerformOperationResponse xmlns="http://tempuri.org/">
> <PerformOperationResult>
> 0
> </PerformOperationResult>
> <result>
> <RetrieveTreeResponse id="123">
> <Node id="1"
> title="TopLevelNode1">
> <Node id="2"
> title="2LevelNode1" />
> <Node id="3"
> title="2LevelNode2" />
> </Node>
> <Node id="4"
> title="TopLevelNode2" />
> </RetrieveTreeResponse>
> </result>
> </PerformOperationResponse>
> </soap:Body>
>
--
Martin Honnen
http://JavaScript.FAQTs.com/
Showing posts with label htmlencode. Show all posts
Showing posts with label htmlencode. Show all posts
Monday, March 26, 2012
Html encoding SOAP response
Labels:
apii,
asp,
call,
encoding,
havepublic,
html,
htmlencode,
int,
net,
operation,
performoperation,
response,
responsefrom,
soap,
string,
webservice,
xml
HTML encoding in my VB
I need to implement HTML encoding in my VB program (something like
Server.HTMLEncode in ASP).
Any ideas?
Thanks,
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!in a client VB.NET app?
Might try importing the System.Web namespace?
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Yuri Ch" <yuri_ch@.hotmail.com> wrote in message
news:u$6gKruAEHA.4080@.TK2MSFTNGP09.phx.gbl...
> I need to implement HTML encoding in my VB program (something like
> Server.HTMLEncode in ASP).
> Any ideas?
> Thanks,
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
VB or VB.NET?
--
Thanks,
Eric Lawrence
Program Manager
Assistance and Worldwide Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"Yuri Ch" <yuri_ch@.hotmail.com> wrote in message
news:u$6gKruAEHA.4080@.TK2MSFTNGP09.phx.gbl...
> I need to implement HTML encoding in my VB program (something like
> Server.HTMLEncode in ASP).
> Any ideas?
> Thanks,
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
Server.HTMLEncode in ASP).
Any ideas?
Thanks,
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!in a client VB.NET app?
Might try importing the System.Web namespace?
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Yuri Ch" <yuri_ch@.hotmail.com> wrote in message
news:u$6gKruAEHA.4080@.TK2MSFTNGP09.phx.gbl...
> I need to implement HTML encoding in my VB program (something like
> Server.HTMLEncode in ASP).
> Any ideas?
> Thanks,
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
VB or VB.NET?
--
Thanks,
Eric Lawrence
Program Manager
Assistance and Worldwide Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"Yuri Ch" <yuri_ch@.hotmail.com> wrote in message
news:u$6gKruAEHA.4080@.TK2MSFTNGP09.phx.gbl...
> I need to implement HTML encoding in my VB program (something like
> Server.HTMLEncode in ASP).
> Any ideas?
> Thanks,
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
Labels:
asp,
developersdex,
encoding,
html,
htmlencode,
ideasthanks,
implement,
likeserver,
net,
program,
via
Subscribe to:
Posts (Atom)