开发者

Multiple web services sharing the same classes

I have 2 web services, one written in java and the other in c#. The java web service is the main web service and the .net web service is a backup, so the .net service basically just mirrors the java service.

The prob开发者_开发百科lem is that when i generate my client code using wsdl.exe /sharetypes none of the types are shared. This leaves me with something like this

AClass, AClass1

SecondClass, SecondClass1

I want my client to basically use these 2 web services interchangeably. If i cant connect to the java service i want to connect to the .net service and use it the exact same way, but if the types are not the same i cannot achieve this.

BTW the client must be written in .net 2.0

Thanks ahead for any help!


What happens if you generate the code against one service and then plug in the URL for the other service? Does it successfully use the code from the first one? If so, can you just make the URL be a couple of config values to swap out if one of the services is down?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜