'xsd' has no declared namespace

M

mzuerker

This is an exception that I was running into using InfoPath. I just
wanted to share what I found to be the cause as it took me a bit of
time. Basically it looks as though you can not return a datatype of
"object" through the webservice you are using to populate your InfoPath
form. I hope they address this in a new service pack or a new release
as it is what seems to me basic functionality.
 
B

Brian Teutsch [MSFT]

I'm not the most familiar one here with web services, but I believe that an
Object return type won't be consumed by InfoPath, because InfoPath needs to
know what type of data is included in the object. Objects are acceptable in
code where reflection can be done, and where they can be typecast, but for
an InfoPath form which has specific controls and validation it is simply too
large a challenge.

You'll need to modify your web service to have return types that map to the
XSD schema types. Any schema will work, as long as it accurately defines
your data.

Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top