This calls the sayHi() web method with the value "John" for the single parameter with name "name".
I am wondering how I can use this library to call a web method that takes as parameter an object other than a string. As an example, suppose that in the web service there a class AnObject defined as follows:
And a web method that is defined as:
How do I build such an object at the client and pass it as a parameter to this web method?