Result xsi:type
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.aspnet.webservices.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

Thor W Hammer
I'm using .NET Webservices and have a WebMethod that returns a integer.

In the returning XML the returnvalue comes like this:
<MyMethodResult>123</MyMethodResult>

Is it possible to have .NET creating the result look like this instead?
<MyMethodResult xsi:type="integer">123</MyMethodResult>

Reply to this message...
 
    
Dino Chiesa [Microsoft] (VIP)
If you do RPC/Encoded webservices, then yes, you can do that.
To do this, add a [SoapRpcService] attribute to the webservice class.
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWebServicesProtocolsSoapRpcServiceAttributeClassTopic.asp

But you don't want to, in general. The world is moving to Doc/Literal,
which is what .NET defaults to.

-D

"Thor W Hammer" <thorwhammer - NO @ SPAM - hotmail.com> wrote in message
news:41387f30$0$325$Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 




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