Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 14th, 2003, 12:19 PM
Authorized User
 
Join Date: Oct 2003
Location: São Paulo, SP, Brazil.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to evandro.paula
Default Object as parameter in a web service method

I have been in a workshop of IBM Websphere Studio (Java Plataform) recently, it was told that one advantage of Websphere against VS.NET and .NET Framework was that web services methods, generated through .NET Framework, do not allow an Objet (a collection for example) as parameter of a method. Is it that true? And if it is how can I make this possible?
Reply With Quote
  #2 (permalink)  
Old October 14th, 2003, 01:30 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I do believe that you have been mislead.

I have a web service that returns a DataSet object. I just added a test web method to this web service that has a DataSet as it's single argument. I then modified my test page to first call the GetDataSet method, which I then bound to a datagrid for good measure, then I called back to the web service (ReceiveDataSet), passing the DataSet it had just provided me. I set up the debugger to break on that method I'd created so I could look at the DataSet that was being passed into it. Sure enough, it was all good!

Perhaps there is something in .Net that is more capable than the web service standards allow for, but perhaps not and the IBM people are just trying to dissuade you from using .Net.

Peter
Reply With Quote
  #3 (permalink)  
Old October 14th, 2003, 01:57 PM
Authorized User
 
Join Date: Oct 2003
Location: São Paulo, SP, Brazil.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to evandro.paula
Default

Quote:
quote:Originally posted by planoie
 I do believe that you have been mislead.

I have a web service that returns a DataSet object. I just added a test web method to this web service that has a DataSet as it's single argument. I then modified my test page to first call the GetDataSet method, which I then bound to a datagrid for good measure, then I called back to the web service (ReceiveDataSet), passing the DataSet it had just provided me. I set up the debugger to break on that method I'd created so I could look at the DataSet that was being passed into it. Sure enough, it was all good!

Perhaps there is something in .Net that is more capable than the web service standards allow for, but perhaps not and the IBM people are just trying to dissuade you from using .Net.

Peter
It's fine that the method you created retuns a Object, once you're using the web service as a reference inside your project and accessing it using the "Proxy" tecnique. But what if you create a method that receive a ArrayList and a int parameters, then access your web service through a web browser (UDDI)? Will it build a entry with many inputs as you've got in the a ArrayList and the int parameter?
Reply With Quote
  #4 (permalink)  
Old October 14th, 2003, 02:20 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Presumably, the stubs in the consuming project are making standard SOAP calls to the web service. I'm not too familiar with the nity gritty details of the SOAP requests so I don't know if I can answer your question further.

I guess that if your web service consumer makes a correct soap or post request then you can pass objects.

Peter
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Service Parameter - String vs SOAP attachment ndr1977 .NET Web Services 1 August 31st, 2009 02:02 AM
Image as web service parameter rodmcleay C# 5 December 13th, 2005 06:11 AM
About method of class in Web Service hueduongit .NET Web Services 5 December 11th, 2003 09:09 PM
Execute method of web service, about database? hueduongit .NET Web Services 3 December 3rd, 2003 03:18 AM
web service parameter size androger .NET Web Services 2 November 19th, 2003 01:13 PM



All times are GMT -4. The time now is 02:15 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.