Where is Web Method

  • Thread starter Thread starter hon123456
  • Start date Start date
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
 
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]
 
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
 
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.
 
Back
Top