Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
|
.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
 
Old August 9th, 2005, 09:25 PM
Registered User
 
Join Date: Aug 2005
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

 
Old August 17th, 2005, 11:10 PM
Registered User
 
Join Date: Aug 2005
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
 
Old August 18th, 2005, 09:13 AM
Registered User
 
Join Date: Aug 2005
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...






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





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