K
Kris
Hi there,
I have web service which uses custom .Net types as parameter/return types. These custom types r defined in a seperate assembly and being refered in the web service using "using" directive for that assembly.
Now when I Add a Web Reference to the client application which consumes this web service, it is generating a proxy class for the web service in which it is REDEFINING the custome types and adding relevent schema types, instead of just using the using directive for the assembly containg custom types. Note that I have this assembly as part of the solution but not in GAC.
The issue with this is it is conflicting between the types defined in client application(I used using directive for this custom types assembly) and one returned from the webmethods invokation. Is there any way to have proxy class generated for the web service refer these custom types using that assembly's using directive instead of redefining them in the proxy class.
It works fine if I manually delete the custom types from the proxy class generated and specify using directive for the assembly containg custom types. But I need this to happen automatically as I have several web services which r refering those custom types and also the issue is becoming even worse if there are any updates in the web service code and do update web references in the client project.
Any help will be greatly appreciated...
Thanks in advance...
Kris
Posted via DevelopmentNow Groups
www.developmentnow.com/g
www.developmentnow.com
I have web service which uses custom .Net types as parameter/return types. These custom types r defined in a seperate assembly and being refered in the web service using "using" directive for that assembly.
Now when I Add a Web Reference to the client application which consumes this web service, it is generating a proxy class for the web service in which it is REDEFINING the custome types and adding relevent schema types, instead of just using the using directive for the assembly containg custom types. Note that I have this assembly as part of the solution but not in GAC.
The issue with this is it is conflicting between the types defined in client application(I used using directive for this custom types assembly) and one returned from the webmethods invokation. Is there any way to have proxy class generated for the web service refer these custom types using that assembly's using directive instead of redefining them in the proxy class.
It works fine if I manually delete the custom types from the proxy class generated and specify using directive for the assembly containg custom types. But I need this to happen automatically as I have several web services which r refering those custom types and also the issue is becoming even worse if there are any updates in the web service code and do update web references in the client project.
Any help will be greatly appreciated...
Thanks in advance...
Kris
Posted via DevelopmentNow Groups
www.developmentnow.com/g
www.developmentnow.com