DiffGram whose associated schema is not supported.

L

Larry Spencer

I'm trying to create an InfoPath form based on a web service. The WS
method I want to call returns a typed DataSet, which I created in
Visual Studio 2005 using Add New Item / DataSet. It's just the
simplest table imaginable: an integer primary key, a name, and sex.

On the InfoPath side, I'm choosing Design a new form / New from Data
Connection / Web service / Receive Data. I specify the web service and
get the list of methods back, but when I choose the method I want, I
get this error:

"The data contained a DataSet DiffGram whose associated schema in the
WSDL is not supported."

What could be unsupported in my very simple scenario? Here's the XML
that comes back when I invoke the method using the test page that
Visual Studio generates.

<?xml version="1.0" encoding="utf-8" ?>
- <Table2 xmlns="http://tempuri.org/">
- <xs:schema id="Table2"
targetNamespace="http://tempuri.org/Table2.xsd"
xmlns:mstns="http://tempuri.org/Table2.xsd"
xmlns="http://tempuri.org/Table2.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
xmlns:msprop="urn:schemas-microsoft-com:xml-msprop"
attributeFormDefault="qualified" elementFormDefault="qualified">
- <xs:element name="Table2" msdata:IsDataSet="true"
msdata:UseCurrentLocale="true">
- <xs:complexType>
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element name="Table2" msprop:Generator_UserTableName="Table2"
msprop:Generator_TablePropName="_Table2">
- <xs:complexType>
- <xs:sequence>
<xs:element name="Pk" msdata:ReadOnly="true"
msdata:AutoIncrement="true" type="xs:int" />
- <xs:element name="Name" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
- <xs:element name="Sex" minOccurs="0">
- <xs:simpleType>
- <xs:restriction base="xs:string">
<xs:maxLength value="1" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
- <xs:unique name="Constraint1" msdata:primaryKey="true">
<xs:selector xpath=".//mstns:Table2" />
<xs:field xpath="mstns:pk" />
</xs:unique>
</xs:element>
</xs:schema>
- <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
- <Table2 xmlns="http://tempuri.org/Table2.xsd">
- <Table2 diffgr:id="Table21" msdata:rowOrder="0">
<Pk>1</Pk>
<Name>Larry</Name>
<Sex>M</Sex>
</Table2>
- <Table2 diffgr:id="Table22" msdata:rowOrder="1">
<Pk>2</Pk>
<Name>Diane</Name>
<Sex>F</Sex>
</Table2>
</Table2>
</diffgr:diffgram>
</Table2>
 
L

Larry Spencer

Answering my own post...

This problem and a few others went away when I installed the "Office
InfoPath 2003 Toolkit for Visual Studio 2005" from the MSDN DVD 3089.
(I had been trying various things that apparently were targeted only
for VS 2003.)

N.B. - As of this writing, the 2005 version does not show up when you
search the Microsoft Download Center for INFOPATH TOOLKIT, but it was
on my MSDN DVD, just as the tech support person at Microsoft said it
should be. What's on the Download Center is called "InfoPath 2003
Toolkit for Visual Studio .NET" but it's only for VS 2003.
 

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