.NET Framework Developer Center > .NET Development Forums > Windows Workflow Foundation > Binding array parameters to webServiceOutput in a workflow
Ask a questionAsk a question
 

AnswerBinding array parameters to webServiceOutput in a workflow

  • Friday, September 29, 2006 5:24 PMChris Jenkins Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

     In Windows Workflow Foundation and using VS2005, I have an interface method (workflow) that Im exposing as a web service:

     Person[] getPersonList(Criteria)

     Within the webServiceOutputActivity, I would like to bind the parameter 'ReturnValue' to a defined public variable of Person[] type in my workflow class. Instead of getting the binding dialog, I get a "Person Collection Editor" dialog. This dialog doesnt appear to allow me to bind my variable to the WS output. Again, Person is a serializable type. How do I return my Person array from this workflow web service?

     Hoping to hear from Joel,

     Chris

     

Answers

All Replies

  • Friday, September 29, 2006 6:03 PMJon FlandersMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Sorry - I'm not Joel but ...

    Click on the blue icon in the property grid next to the property name.  The reason you are getting the collection editor is because of the UITypeEditor associated with collections.  You could override this - but it would mean manually modifying your proxy class- which is probably not worth it.

  • Friday, September 29, 2006 7:01 PMChris Jenkins Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

     

     That was it. Thanks Jon.