spike232 Posted January 11, 2009 Share Posted January 11, 2009 I have a webservice written in C#, one of the methods returns a custom type. I then have a windows forms app which i want to call this method. I have extracted the custom type to its own class library which both the web and forms app reference and depend upon. In both the web and forms app putting the mouse over the reference to this type shows it to be the same in both cases. As soon as i reference the webservice in the forms app the types dont match. the type the webservice is returning is now prefixed by the name of the web reference. How can i get the type of be the same in both? Link to comment Share on other sites More sharing options...
0 RealFduch Posted January 11, 2009 Share Posted January 11, 2009 I have a webservice written in C#, one of the methods returns a custom type.I then have a windows forms app which i want to call this method. I have extracted the custom type to its own class library which both the web and forms app reference and depend upon. In both the web and forms app putting the mouse over the reference to this type shows it to be the same in both cases. As soon as i reference the webservice in the forms app the types dont match. the type the webservice is returning is now prefixed by the name of the web reference. How can i get the type of be the same in both? Try to inherit the type used in webservice from the extracted class. Then cast it back when needed. Link to comment Share on other sites More sharing options...
Question
spike232
I have a webservice written in C#, one of the methods returns a custom type.
I then have a windows forms app which i want to call this method.
I have extracted the custom type to its own class library which both the web and forms app reference and depend upon.
In both the web and forms app putting the mouse over the reference to this type shows it to be the same in both cases.
As soon as i reference the webservice in the forms app the types dont match.
the type the webservice is returning is now prefixed by the name of the web reference.
How can i get the type of be the same in both?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts