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...ClassTopic.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$.. .
> 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>
>
>
>