Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / May 2005

Tip: Looking for answers? Try searching our database.

Using SoapClient to initiate a Web Service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PaulF - 25 May 2005 17:11 GMT
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
PaulF - 25 May 2005 19:10 GMT
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

> 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
[quoted text clipped - 3 lines]
>
> Paul
EggHead - 25 May 2005 21:51 GMT
Did you download the soaptool kits from M$?

Egghead

>I have written some code to try to do this.  However I get an error as
>follows:
[quoted text clipped - 17 lines]
>>
>> Paul
PaulF - 26 May 2005 10:50 GMT
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/default.asp?url=/library/en-us/wse/html/a99387
a1-ef11-46c7-89b8-8bd8ccabb633.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

> Did you download the soaptool kits from M$?
>
[quoted text clipped - 21 lines]
> >>
> >> Paul

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.