473,672 Members | 2,698 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 2292
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***@discussi ons.microsoft.c om> wrote in message
news:5C******** *************** ***********@mic rosoft.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.SendReques tResponse("mess age", envelope);

call I get the message below.
Cheers

Paul

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

Egghead

"PaulF" <Pa***@discussi ons.microsoft.c om> wrote in message
news:5C******** *************** ***********@mic rosoft.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
1590
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 to 50 users in it at anytime. -------- Every ASP Page ----------- - Create web service user...
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
8238
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 set this timeout: dim SOAPClient dim par_WSDLFile, par_ServiceName, par_Port
1
1492
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 Windows Service will be able to register for notifications (which the Windows Service would deliver...
1
20354
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
6395
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
4284
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 authentication, you can connect to another service that is only accessible if you have received the...
0
1151
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, but when it says "you must set the location and uri options, where location is the URL to request and...
1
8342
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 information about the options available. The documentation provides this syntax for instantiating the...
0
8419
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8844
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8642
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8696
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6254
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5720
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4239
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2836
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
2
1836
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.