473,395 Members | 1,726 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,395 software developers and data experts.

Help with Simpler Web Service

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
Nov 20 '05 #1
2 1236
Hi,

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

Ken
----------------
"Mike R" <mi**@norepleyemailaddress.com> wrote in message
news:bq*******************@news.demon.co.uk...
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

Nov 20 '05 #2

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:#7**************@TK2MSFTNGP10.phx.gbl...
Hi,

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

Ken
----------------
"Mike R" <mi**@norepleyemailaddress.com> wrote in message
news:bq*******************@news.demon.co.uk...
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
Nov 20 '05 #3

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

Similar topics

4
by: Jochen Daum | last post by:
Hi, I have to emulate a "file upload" to a Java Servlet which is done with the class URLConnection. The java source basically does URLConnection conn =...
11
by: The_Kingpin | last post by:
Hi all, I'm new to C programming and looking for some help. I have a homework project to do and could use every tips, advises, code sample and references I can get. Here's what I need to do....
7
by: Douglas Robson | last post by:
Ok, I've removed the MyItem class which is found in References.cs and replaced it with a reference to the namespace that has MyItem in it. I've also got rid of the tag at the top of the MyItem...
3
by: Sky Sigal | last post by:
I coming unglued... really need some help. 3 days chasing my tail all over MSDN's documentation ...and I'm getting nowhere. I have a problem with TypeConverters and storage of expandableobjects...
3
by: Joe Befumo | last post by:
This is my first attempt at multi-thread programming, and I'm encountering a program-logic problem that I can't quite put my finger on. The program is pretty simple. I'm trying to validate a...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
4
by: ags5406 | last post by:
Hi All I have a task that I'm thinking about attacking in two different ways but don't know enough about Windows Services. First: We have a server application written in VB.net that acts as...
0
by: EricBlair | last post by:
Hello, I wrote a windows service that is supposed to start an interactive GUI app. I realize a service will not readily do this so I've pieced together the code below to bypass that. However, the...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
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...

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.