Olan Malone

Olan Malone

  • NA
  • 1
  • 2k

Custom Object

Aug 17 2010 12:18 PM

Hi,
 
I have created a web sevice (c#) which return a custom object which has for properties (Dataset,Message,Status and a boolean OK).
I can reference the websevice and return the objects in both Windows Forms and SSIS but in SSIS I get a type cast failure when I try to cast the DTS Variable (object) as the Custom type.
I have created a new custom object and then try to set it equal to a cast of the dts.variable.
object obj = new object();
obj = Dts.Variables["User::obj"];
 MyWebservice.Object GS = new MyWebservice.Object();
GS = (MyWebservice.Object)obj;  <<Type cast fails
Any pointers welcome.
O