Error Adding Data Connection: inline XDR schemas

L

LJ Kyser

Hi all,

I am using InfoPath 2007. I am trying to add a Data Connection, to receive
data, from a web service. The web service is returning a DataSet. I have
tested the web service from a Windows Forms app and I am able to use the web
service successfully.

When I enter the location of the web service, InfoPath is able to read the
WSDL and enumerate the web service methods. When I then select the method I
want and click next, I get the following error:

"The selected XML document cannot be used as a data connection source
because it contains inline XDR schemas."

Does anybody have any insight as to what that means and how to fix it? I
have searched google, msdn, etc. but have yet to find anything.

Thanks in advance!
 
L

LJ Kyser

I actually ran across that article a day or two after posting this. This
morning I found that if any method in my web service returns or accepts a
generic list, an extra namespace is added to the WSDL causing the error. That
makes sense given the mention of no support for complex abstract types.

Thanks for the help!
 
R

Ranier Bonnici

I am running into this same error when trying to consume a web method which
returns a stongly typed data table.

Is it permissible with InfoPath to use strongly typed data tables?
 

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