473,471 Members | 1,881 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Using SoapClient to initiate a Web Service

Is it possible to use a SoapClient derived class to send a message to a Web
Service (eg a .asmx file)? It it is, does anyone have any code they could
point me at that actually does this !

Thanks

Paul
Nov 23 '05 #1
3 2263
I have written some code to try to do this. However I get an error as follows:

Server did not recognise the value of HTTP header SOAP Action: name-of-method.

What am I doing wrong.
Cheers

Paul

"PaulF" wrote:
Is it possible to use a SoapClient derived class to send a message to a Web
Service (eg a .asmx file)? It it is, does anyone have any code they could
point me at that actually does this !

Thanks

Paul

Nov 23 '05 #2
Did you download the soaptool kits from M$?

Egghead

"PaulF" <Pa***@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
I have written some code to try to do this. However I get an error as
follows:

Server did not recognise the value of HTTP header SOAP Action:
name-of-method.

What am I doing wrong.
Cheers

Paul

"PaulF" wrote:
Is it possible to use a SoapClient derived class to send a message to a
Web
Service (eg a .asmx file)? It it is, does anyone have any code they
could
point me at that actually does this !

Thanks

Paul

Nov 23 '05 #3
I have not downloaded the SOAP toolkit as I am using WSE 2 SP 3. Thats just
made me wonder whether I have posted this to the wrong forum. Apologies if I
have.

The code I have used is based on the SoapClient / SoapService article found
at
http://msdn.microsoft.com/library/de...d8ccabb633.asp

I have created a client derived from SoapClient then set the URI to the asmx
file, created a SoapEnvelope then called the client's method. In the

return base.SendRequestResponse("message", envelope);

call I get the message below.
Cheers

Paul

"EggHead" wrote:
Did you download the soaptool kits from M$?

Egghead

"PaulF" <Pa***@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
I have written some code to try to do this. However I get an error as
follows:

Server did not recognise the value of HTTP header SOAP Action:
name-of-method.

What am I doing wrong.
Cheers

Paul

"PaulF" wrote:
Is it possible to use a SoapClient derived class to send a message to a
Web
Service (eg a .asmx file)? It it is, does anyone have any code they
could
point me at that actually does this !

Thanks

Paul


Nov 23 '05 #4

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

Similar topics

0
by: Jamie White | last post by:
I've written a web service for handling user authentication and session management. Now I'm wondering if this was such a good idea for performance and security. This ws will be instantiated and...
3
by: PaulF | last post by:
Is it possible to use a SoapClient derived class to send a message to a Web Service (eg a .asmx file)? It it is, does anyone have any code they could point me at that actually does this ! ...
2
by: Jose Maestro | last post by:
I am using MS SOAP client provided with SOAP Toolkit 3.0. I have set the timeout for this application to 20 seconds. On some occasions, when there are network problems and the call to the...
1
by: Michael Herman \(Parallelspace/OpenCanal\) | last post by:
We're creating a Windows Service with the .NET Framework (.NET 1.1 and VS 2003) and have an obvious requirement to send commands and data to control the Windows Service. In the Windows Service,...
1
by: william | last post by:
Hi All, I have a web service developed by .NET, and I call it from vb script by createobject("MSSOAP.SOAPClient"). In my development environment, it's ok. But when I deploy it to other machine, it...
3
by: Joshua Beall | last post by:
Hi All, I've got the following PHP code: $service = new SoapClient("http://www.webservicex.net/length.asmx? wsdl"); $result = $service->ChangeLengthUnit(10,"Inches","Centimeters");...
3
by: fulatoro | last post by:
I am trying to use a webservice method on an ASP .NET server. I am running a simple php script on my ubuntu machine. Basically, the ASP servers first requires you to login via a login method by...
0
by: Matt White | last post by:
I'm trying to use a Rails web service from PHP and having a hard time understanding how to do it. If the web service is located at http://url.com/service, what exactly do I need to pass to the...
1
by: Rob Wilkerson | last post by:
Typically, when consuming a SOAP web services, I've had the WSDL URI available to me and can easily instantiate the SoapClient with that URI. I'm now in a position where I might have to engage a...
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.