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 | Calendar | 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 August 9th, 2005, 09:25 PM
Registered User
 
Join Date: Aug 2005
Location: Montreal, Quebec, Canada.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Hagop Send a message via Yahoo to Hagop
Default WebMethod Error when return type is a dataset

Hi,

Please could anyone help me with this problem

I have a windows application which is being written in VB.NET and through this application I making a reference to one of my web service. The web service returns a dataset object. When I make the call it causes an error: The error is as follows:

An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in system.web.services.dll

Additional information: Server was unable to process request. --> Message: Cast from string "" to type 'Boolean' is not valid.
Source: Microsoft.VisualBasic
Method: FromString
Stack Trace: at Microsoft.VisualBasic.CompilerServices.BooleanType .FromString(String Value)
at Microsoft.VisualBasic.CompilerServices.BooleanType .FromObject(Object Value)
at Sql.Connection..ctor() in C:\Documents and Settings\Administrator\My Documents\Projects\Repair Management System\Sql\Connection.vb:line 215

I tried looking for the source of the problem and it seems that it is being caused by the function which is auto generated by the .NET

 '<remarks/>
        <System.Web.Services.Protocols.SoapDocumentMethodA ttribute("http://RMS/Web Service/Vendors/GetFullData", RequestNamespace:="http://RMS/Web Service/Vendors", ResponseNamespace:="http://RMS/Web Service/Vendors", Use:=System.Web.Services.Description.SoapBindingUs e.Literal, ParameterStyle:=System.Web.Services.Protocols.Soap ParameterStyle.Wrapped)> _
        Public Function GetFullData() As System.Data.DataSet
            Dim results() As Object = Me.Invoke("GetFullData", New Object(-1) {})
            Return CType(results(0),System.Data.DataSet)
        End Function

Reply With Quote
  #2 (permalink)  
Old August 17th, 2005, 11:10 PM
Registered User
 
Join Date: Aug 2005
Location: New Delhi, Delhi, India.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Dinesh Singh Bisht Send a message via Yahoo to Dinesh Singh Bisht
Default

can you post the web service method. So that the problem can be identify.


DSBisht
Reply With Quote
  #3 (permalink)  
Old August 18th, 2005, 09:13 AM
Registered User
 
Join Date: Aug 2005
Location: Montreal, Quebec, Canada.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Hagop Send a message via Yahoo to Hagop
Default

Dinesh Singh Bisht,

Tahnk you for your message, The problem was solved, it was a connection issue with my data layer where my web service was passing an empty connectio nstring... I fixed it by adding the a custome connection elements in my web.config file...

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
Return datatable from a webmethod josemanjusha ASP.NET 2.0 Basics 0 September 21st, 2006 07:52 AM
Return dataset lily611 C# 1 July 2nd, 2006 01:35 PM
Webmethod error while return type is a dataset Hagop General .NET 1 August 10th, 2005 05:46 AM
error on Webmethod when return type is a dataset Hagop General .NET 1 August 10th, 2005 05:45 AM



All times are GMT -4. The time now is 07:05 PM.


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