471,310 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

Web Services & Returning Complex Types

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
Jul 21 '05 #1
0 890

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by matthias_k | last post: by
3 posts views Thread by Marshal | last post: by
9 posts views Thread by Phil B | last post: by
reply views Thread by Demetri | last post: by
reply views Thread by Daniel P. | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.