Adding a Service Reference where a method will have multiple ref params and non ref params
Last post 05-09-2008 1:35 PM by Puts. 0 replies.
Sort Posts:
05-09-2008 1:35 PM
Adding a Service Reference where a method will have multiple ref params and non ref params

I am running accross a wierd issue when Adding a Service Reference where a method will have multiple ref params and non ref params.

if my method signurature looks like this

public void MyMethod(ref string _s1, ref string _s2)

After updating the service reference and attaching to the completed event my completed event args object has 2 extra properties on it

e._s1 and e._s2

which is working as intended

Now i change my method signerature to looke like this

public void MyMethod(ref string _s1, ref string _s2, string _s3)

When i update my service reference and look at my completed event args object the only extra property is the second ref param

e._s2

e._s1 is just not there.  It looks like if you mix multiple ref params with non ref params the component that generates the classes for you when updating the service reference are somehow missing some of the ref params.

If i got back to my method signerature and take out the non ref param, rebuild, and update again, the _s1 and _s2 are both showing properly now.

 Any ideas if this is a bug or am i doing something silverlight shouldnt be able to handle

Puts

 

*EDIT 

It looks like in this scenario it is partially trying to map the first ref param to the Result property of the completed event args object.

*WorkAround

I changed the return from void to a bool and just returned true all the time since i dont really need a return.  This allowed the service updator to properly map both ref params

Puts

Joined on 05-09-2008
Posts 15