Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2005

Tip: Looking for answers? Try searching our database.

Really basic Web Service question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sahil Malik [MVP] - 02 May 2005 13:05 GMT
Is there anyway at all, to do something like ByRef/ref parameter passing in
Web Services?

- Sahil Malik [MVP]
http://codebetter.com/blogs/sahil.malik/
Brock Allen - 02 May 2005 14:31 GMT
That doesn't really make sense, but oddly enough it is supported. The reason
I say that it doesn't make sense is that ref is a programming concept to
stack based method invocations, whereas web services are about XML message
passing. It seems that if there's a element in the top level Request and
Response XML documents passed back and forth to the [WebMethod] then the
.NET framework will map that onto a ref parameter. Go figure.

-Brock
DevelopMentor
http://staff.develop.com/ballen

> Is there anyway at all, to do something like ByRef/ref parameter
> passing in Web Services?
>
> - Sahil Malik [MVP]
> http://codebetter.com/blogs/sahil.malik/
Sahil Malik [MVP] - 03 May 2005 00:14 GMT
Shocking !! And yes it doesn't make sense - maybe it shouldn't be done !!

Okay so let me clearly understand what you mean by -

"It seems that if there's a element in the top level Request and
Response XML documents passed back and forth to the [WebMethod] then the
.NET framework will map that onto a ref parameter."

Are you saying Custom XML embedded in a custom SOAPHeader will act as a Ref
parameter? Can you pan your explanation out to code?

- Sahil Malik [MVP]
http://codebetter.com/blogs/sahil.malik/

> That doesn't really make sense, but oddly enough it is supported. The
> reason I say that it doesn't make sense is that ref is a programming
[quoted text clipped - 13 lines]
>> - Sahil Malik [MVP]
>> http://codebetter.com/blogs/sahil.malik/
Sahil Malik [MVP] - 03 May 2005 09:22 GMT
Ok I figured it out !!! Also this is specified in the SoapSpec.

I have a follow up question though. I'll post that as a seperate message.

- Sahil Malik [MVP]
http://codebetter.com/blogs/sahil.malik/

> Shocking !! And yes it doesn't make sense - maybe it shouldn't be done !!
>
[quoted text clipped - 27 lines]
>>> - Sahil Malik [MVP]
>>> http://codebetter.com/blogs/sahil.malik/

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.