473,320 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 1274
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
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
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
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
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
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
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
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
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
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
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.