I have 2 web services. Web service "Main" and a Web Service "Proxy". I also
have a shared libary of complex types.
The "Proxy" web service simply calles methods of the "Main" web service.
When I invoke a method in the "Main" web service directly it returns an xml
document that lists all the "type" information of each element and they
appear to be correctly reflecting my complex type.
However, when I invoke the "Main" web service through the "Proxy" web
service some how the xml elements persist as xml elements rather than being
converted to their complex type counterparts.
The method is to return a custom collection, and so when the "Proxy" web
service makes this call the indexer of the collection bombs due to attempting
to cast the object to its respective type. This is a result of the xml
element persisting as that, an xml element rather than being viewed as the
complex type.
Any idea how I can fix this issue?
As an aside, I have done this before with different complex types than I'm
working with right now and they work just fine being returned to the "Proxy"
web service through the "Main" web service.
--
-Demetri