User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the RSS, Web Services and SOAP section within the Web Development category of DaniWeb, a massive community of 423,404 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,640 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our RSS, Web Services and SOAP advertiser: Programming Forums
Views: 1311 | Replies: 0
Reply
Join Date: Sep 2006
Posts: 104
Reputation: bhavna_816 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
bhavna_816 bhavna_816 is offline Offline
Junior Poster

converting Class instance to Web Service instance in C#

  #1  
Jun 16th, 2008
I have a webservice which accesses some methods from the Business layer.
I made a website which uses this webservice, I have given the WEb reference for that web service.

I want to call a WebMethod which uses some structures from the business layer.
I am populating the business layer struct objects in aspx.cs file and sending the input to the Webservice.
It gives compilation error that
Cannot implicitly convert type 'BusinessLayer.ClassName' to 'WebService.ClassName'	
I have typecasted the classname as
Webservice.ClassName class1 = new Webservice.ClassName();
But with this I am not able to access class methods.

I am working in C# and ASP.NET 2.0

Can anybody have any idea or suggestion?
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb RSS, Web Services and SOAP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the RSS, Web Services and SOAP Forum

All times are GMT -4. The time now is 1:21 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC