Help with Simpler Web Service

M

Mike R

Hi,

I've used the wizard to create the "Hello World" webservice

it compiles and I can access it via the http://server/site/myws.asmx

However, when I try and access it via a soap call, soap complains that it
doesnt recognise the soap action:

"Unable to handle request without a valid action parameter. Please supply a
valid soad action".

[snip] - from the webservice vb
' WEB SERVICE EXAMPLE

' The HelloWorld() example service returns the string Hello World.

' To build, uncomment the following lines then save and build the project.

' To test this web service, ensure that the .asmx file is the start page

' and press F5.

'

<WebMethod()> _

Public Function ProcessALLVouchers() As Boolean

Dim Status As Boolean



Status = True



End Function

What do i need to do to the WS to allow it to accept an action?

thanks
 
K

Ken Tucker [MVP]

Hi,

I dont see where your function returns anything. Just before end
function you should have a line like return status.

Ken
 
M

Mike R

Ken Tucker said:
Hi,

I dont see where your function returns anything. Just before end
function you should have a line like return status.

Ken
----------------
Mike R said:
Hi,

I've used the wizard to create the "Hello World" webservice

it compiles and I can access it via the http://server/site/myws.asmx

However, when I try and access it via a soap call, soap complains that it
doesnt recognise the soap action:

"Unable to handle request without a valid action parameter. Please
supply
a
valid soad action".

[snip] - from the webservice vb
' WEB SERVICE EXAMPLE

' The HelloWorld() example service returns the string Hello World.

' To build, uncomment the following lines then save and build the project.

' To test this web service, ensure that the .asmx file is the start page

' and press F5.

'

<WebMethod()> _

Public Function ProcessALLVouchers() As Boolean

Dim Status As Boolean



Status = True



End Function

What do i need to do to the WS to allow it to accept an action?

thanks

return status - cut too much from the code
 

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