473,486 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Where is Web Method

Dear all,

I have add a web service reference named service1 in VS
2008. Then I have following
dim fih2 As New service1.OpInHUBInHouseDeleteRequest.
dim fih2 As New service1.OpInHUBInHouseDeleteResponse

But what I want is dim fih2 As New service1.OpInHUBInHouseDelete. But
I cannot find this method in service1. All available are request and
response. So how can I call the web method of
service1. All the methods cannot be seen in New service1. So where is
the web method?

Thanks
Jun 27 '08 #1
4 1283
On Jun 2, 5:03 am, hon123456 <peterhon...@yahoo.com.hkwrote:
Dear all,

I have add a web service reference named service1 in VS
2008. Then I have following
dim fih2 As New service1.OpInHUBInHouseDeleteRequest.
dim fih2 As New service1.OpInHUBInHouseDeleteResponse

But what I want is dim fih2 As New service1.OpInHUBInHouseDelete. But
I cannot find this method in service1. All available are request and
response. So how can I call the web method of
service1. All the methods cannot be seen in New service1. So where is
the web method?

Thanks
You do have the <WebMethod()attribute on that method don't you?

Thanks,

Seth Rowe [MVP]
Jun 27 '08 #2
Hi,
dim fih2 As New service1.OpInHUBInHouseDeleteRequest.
dim fih2 As New service1.OpInHUBInHouseDeleteResponse
This code should defintitly give an error, it would be more likely

dim fih2 as New service1

dim fih2.OpInHupInHoudeDeleteRequest(whatever parameter)
etc

Cor
Jun 27 '08 #3
On 6$B7n(B3$BF|(B, $B>e8a(B1$B;~(B01$BJ,(B, "Cor Ligthert[MVP]" <notmyfirstn...@planet.nl>
wrote:
Hi,
dim fih2 As New service1.OpInHUBInHouseDeleteRequest.
dim fih2 As New service1.OpInHUBInHouseDeleteResponse

This code should defintitly give an error, it would be more likely

dim fih2 as New service1

dim fih2.OpInHupInHoudeDeleteRequest(whatever parameter)
etc

Cor
But Service1 is a name of web reference, it is a namespace. And what I
want
is OpInHupInHouseDelete but not OpInHupInHoudeDeleteRequest

Please help thanks.
Jun 27 '08 #4
hon123456 wrote:
But Service1 is a name of web reference, it is a namespace. And what I
want
is OpInHupInHouseDelete but not OpInHupInHoudeDeleteRequest

Please help thanks.
When you do Dim fih2 As New ..., you will get a list of classes, not methods.

So you want something like
Dim fih2 As New Service1

then call the method of fih2:
x = fih2.OpInHupInHouseDelete(y)

I have no knowledge of what params the method takes, or what it returns, if
anything.
I think this is what Cor meant to say as well.
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1693
by: MackS | last post by:
Hi I'm new to Python and would like to know if the following is possible. Say I have one lower-level object A and one user-interface object B. Suppose B.CallingMethod() calls A.CalledMethod(),...
5
1901
by: Matt Clepper | last post by:
Any way to do this? I need to call functions based on a variable. Do I actually have to make a case statement and call each funciton explicitly, or is there any way to call a function where the...
4
4842
by: ChrisB | last post by:
Hello All: I have created the following field within a class definition: Class User { // fields private RoleInfo roleInfo = RoleInfo.GetRoleInfo(Thread.CurrentPrincipal.Identity.Name);
7
1854
by: Mr. Mountain | last post by:
In the following code I simulate work being done on different threads by sleeping a couple methods for about 40 ms. However, some of these methods that should finish in about 40 -80 ms take as long...
2
1915
by: msnews.microsoft.com | last post by:
Hello, I have the scenario. I m building an application either in asp.net or window application. This application is base on n-tier application model. Let us take example of Northwind Database in...
2
1290
by: PinoyDotnet | last post by:
I am just starting 2.0, so I have this In ASPNET 1.X there is a method called InitializeComponent() which clearly wires in the Page_Load method to the Load event, like this: private void...
5
3177
by: wrecker | last post by:
Hi all, I have a few common methods that I need to use at different points in my web application. I'm wondering where the best place would be to put these? I think that I have three options. ...
6
2029
by: Liming | last post by:
Hi, In a typical 3 tier model (view layer, busines layer and data access layer) where do you handle your exceptions? do you let it buble up all the way to the .aspx pages or do you handle it in...
3
1333
by: allendowney | last post by:
Hi All. In a complex inheritance hierarchy, it is sometimes difficult to find where a method is defined. I thought it might be possible to get this info from the method object itself, but it...
4
3587
by: =?Utf-8?B?TWlrZSBDb2xsaW5z?= | last post by:
I am trying to set up a dynamic search using linq. I believe the syntax is correct, but cannot confirm it because when I try to cast my Session from a List<to IQueryable<>, I get a cast error...
0
7094
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
6964
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
7123
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
7305
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5427
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4559
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
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
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
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.