Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Result xsi:type

Reply
Thread Tools

Result xsi:type

 
 
Thor W Hammer
Guest
Posts: n/a
 
      09-03-2004
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 With Quote
 
 
 
 
Dino Chiesa [Microsoft]
Guest
Posts: n/a
 
      09-03-2004
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$(E-Mail Removed).. .
> 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 With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
i = 10; result = ++i - --i; How result become ZERO Lakshmi Sreekanth C Programming 52 09-23-2010 07:41 AM
Re: i = 10; result = ++i - --i; How result become ZERO Mr. Buffoon C Programming 4 09-23-2010 03:01 AM
Is the result of valid dynamic cast always equal to the result ofcorrespondent static cast? Pavel C++ 7 09-18-2010 11:35 PM
simulation result is correct but synthesis result is not correct J.Ram VHDL 7 12-03-2008 01:26 PM
1. Ruby result: 101 seconds , 2. Java result:9.8 seconds, 3. Perl result:62 seconds Michael Tan Ruby 32 07-21-2005 03:23 PM



Advertisments