473,473 Members | 2,309 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to return an interface from a web service

3 New Member
hi
i'm creating a web site in VB.net which uses a web service to fetch data for it from third party com components.
the problem is i cannot return interfaces from web service. i cant modify the interfaces to make them serializable.
can anyone tell me how we can return interface from my web service? is there any option or any work around?
any help will be greatly appreciated.
thank you
Jun 12 '07 #1
2 1445
Frinavale
9,735 Recognized Expert Moderator Expert
hi
i'm creating a web site in VB.net which uses a web service to fetch data for it from third party com components.
the problem is i cannot return interfaces from web service. i cant modify the interfaces to make them serializable.
can anyone tell me how we can return interface from my web service? is there any option or any work around?
any help will be greatly appreciated.
thank you
You can't return an interface.
Web services return objects using SOAP which your program can use.
Are you having problems retrieving the objects?
What have you tried so far?

-Frinny
Jun 12 '07 #2
vpulugurta
3 New Member
hi
like i said i'm using third party com components. they have interfaces which i have to return.
these interfaces work fine when i'm calling from the website directly. but because of security constraints i have to call them from web service.
can i typecast the interface to an object and return it? i tried but it i sgiving trouble.
or can i make the calling class serializable?i'm new to this. so i dont know how to tackle the situation.
thanks for any help
Jun 12 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: sys | last post by:
I have a Web service and I want it to implement an interface that I specified, say IService. So my Web service class looks like this public class Service1 : System.Web.Services.WebService, IServic...
2
by: Richard A. Wells | last post by:
All I wanted to do was implement a web service where I'd receive an XML document and return one in response. I'd already figured out how to use XmlReader and XmlWriter classes to do the XML work I...
2
by: Derrick | last post by:
Is there an implement interface wizard is C#/Visual Studio? And, I have an interface, with many implentations, want to provide a Web Service implementation. What would be the standard practice? ...
6
by: John Salerno | last post by:
I understand how they work (basically), but I think maybe the examples I'm reading are too elementary to really show their value. Here's one from Programming C#: #region Using directives ...
1
by: Savas Ates | last post by:
i created an proxy class .. it named webreference1 my code is like following. how can i learn the return message from wsdl (it works or not) how can i learn it(wsdl's respond) Dim ws As New...
1
by: Scanner2001 | last post by:
I am looking for a way to return the output of a web service as a string without the xml tags, just the raw data. I am calling the web service from an html page using a form post method....
16
by: Bob Hairgrove | last post by:
Consider the classic clone() function: class A { public: virtual ~A() {} virtual A* clone() const = 0; }; class B : public A { public:
3
by: Peter K | last post by:
Hi I am having trouble writing a webservice which is to provide access to the functions of an existing codebase. The existing code may not be changed at all. For example, I obtain an...
2
by: Veloz | last post by:
Hi there My question is regarding how to best return "collections" from a method call. Should you return an actual object or an interesting/ appropriate interface of the object, to the caller?...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.