473,513 Members | 2,524 Online
Bytes | Software Development & Data Engineering Community
+ 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 2274
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
1583
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 used from classic ASP. Every page is making several calls to the web service. How do you think this will affect performance? The application has 10...
3
508
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 ! Thanks Paul
2
8207
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 webservice is not able to complete succesfully, the client waits for 50 seconds before returning an error. I include an example of the code I am using to...
1
1485
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, we're thinking of implementing a SOAP listener on a "private port" using WSE to support the above requirement. In addition, the console for the...
1
20288
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 error out since There is no MSSOAP.SOAPClient on that machine. Where can I get it(mssoap1.dll) and how to install it? Thanks. william
3
6386
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"); var_dump($result);
3
4274
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 supplying username and password. It returns a string to indicate whether you logged in successfully and also returns a cookie. Afther this...
0
1143
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 SoapClient constructor? I've been reading through the docs trying to figure it out but am confused. I assume the way I'm doing it is non- WSDL mode,...
1
8276
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 SOAP service sans WSDL. I've looked at the documentation, so I can see that this is possible, but I'm hoping someone provide a little more...
0
7270
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7178
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7128
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5704
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5103
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3255
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3242
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
473
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.