View Single Post
  #2 (permalink)  
Old October 18th, 2010, 07:49 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Code:
public string HelloWorld(string firstName, string lastName, int age)
You made up parameters in the web service that you're not passing to it from the client side code. This should work:

Code:
public string HelloWorld(string firstName)
or this:

Code:
NameService.HelloWorld(yourName, "LastName", 39, HelloWorldCallback);
Hope this helps,

Imar
---------------------------------------------------------------------------------------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4 : in C# and VB, Beginning ASP.NET 3.5 : in C# and VB and ASP.NET 2.0 Instant Results.
While typing this post, I was listening to: Station Approach by Elbow (From the album: Leaders of the Free World) What's This?
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
ken evans (October 18th, 2010)