Where is Web Method

H

hon123456

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
 
R

rowe_newsgroups

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]
 
C

Cor Ligthert[MVP]

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
 
H

hon123456

Hi,


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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top