Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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?
  #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
  #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?
  #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


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





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