>>I have a datatable I create and fill with a simple SQL Statement. I add
>>the table to a dataset and return the dataset through a webservice to the
[quoted text clipped - 50 lines]
>
> This is all that it returned? There was no SOAP envelope?
>>>I have a datatable I create and fill with a simple SQL Statement. I add
>>>the table to a dataset and return the dataset through a webservice to the
[quoted text clipped - 57 lines]
>
> John
Sorry, here is the SOAP envelope.
<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="http://tempuri.org/" xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
targetNamespace="http://tempuri.org/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
- <wsdl:types>
- <s:schema elementFormDefault="qualified"
targetNamespace="http://tempuri.org/">
- <s:element name="HelloWorld">
<s:complexType />
</s:element>
- <s:element name="HelloWorldResponse">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult"
type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="GetData">
<s:complexType />
</s:element>
- <s:element name="GetDataResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="GetDataResult">
- <s:complexType>
- <s:sequence>
<s:element ref="s:schema" />
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="GetDataDT">
<s:complexType />
</s:element>
- <s:element name="GetDataDTResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="GetDataDTResult">
- <s:complexType>
- <s:sequence>
<s:any minOccurs="0" maxOccurs="unbounded"
namespace="http://www.w3.org/2001/XMLSchema" processContents="lax" />
<s:any minOccurs="1" namespace="urn:schemas-microsoft-com:xml-diffgram-v1"
processContents="lax" />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types>
- <wsdl:message name="HelloWorldSoapIn">
<wsdl:part name="parameters" element="tns:HelloWorld" />
</wsdl:message>
- <wsdl:message name="HelloWorldSoapOut">
<wsdl:part name="parameters" element="tns:HelloWorldResponse" />
</wsdl:message>
- <wsdl:message name="GetDataSoapIn">
<wsdl:part name="parameters" element="tns:GetData" />
</wsdl:message>
- <wsdl:message name="GetDataSoapOut">
<wsdl:part name="parameters" element="tns:GetDataResponse" />
</wsdl:message>
- <wsdl:message name="GetDataDTSoapIn">
<wsdl:part name="parameters" element="tns:GetDataDT" />
</wsdl:message>
- <wsdl:message name="GetDataDTSoapOut">
<wsdl:part name="parameters" element="tns:GetDataDTResponse" />
</wsdl:message>
- <wsdl:portType name="ServiceSoap">
- <wsdl:operation name="HelloWorld">
<wsdl:input message="tns:HelloWorldSoapIn" />
<wsdl:output message="tns:HelloWorldSoapOut" />
</wsdl:operation>
- <wsdl:operation name="GetData">
<wsdl:input message="tns:GetDataSoapIn" />
<wsdl:output message="tns:GetDataSoapOut" />
</wsdl:operation>
- <wsdl:operation name="GetDataDT">
<wsdl:input message="tns:GetDataDTSoapIn" />
<wsdl:output message="tns:GetDataDTSoapOut" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="ServiceSoap" type="tns:ServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="HelloWorld">
<soap:operation soapAction="http://tempuri.org/HelloWorld"
style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="GetData">
<soap:operation soapAction="http://tempuri.org/GetData" style="document"
/>
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="GetDataDT">
<soap:operation soapAction="http://tempuri.org/GetDataDT" style="document"
/>
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:binding name="ServiceSoap12" type="tns:ServiceSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="HelloWorld">
<soap12:operation soapAction="http://tempuri.org/HelloWorld"
style="document" />
- <wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="GetData">
<soap12:operation soapAction="http://tempuri.org/GetData" style="document"
/>
- <wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="GetDataDT">
<soap12:operation soapAction="http://tempuri.org/GetDataDT"
style="document" />
- <wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="Service">
- <wsdl:port name="ServiceSoap" binding="tns:ServiceSoap">
<soap:address location="http://localhost:60437/webserviceDT/Service.asmx"
/>
</wsdl:port>
- <wsdl:port name="ServiceSoap12" binding="tns:ServiceSoap12">
<soap12:address
location="http://localhost:60437/webserviceDT/Service.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
John Saunders [MVP] - 24 Jul 2007 21:01 GMT
>>>>I have a datatable I create and fill with a simple SQL Statement. I add
>>>>the table to a dataset and return the dataset through a webservice to
[quoted text clipped - 65 lines]
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
Well, no, this is the WSDL.
Why don't you try using soapUI, from http://www.soapui.org/ to test the
service. It does a much better job of telling you what's going on than a
browser does, and it's free.

Signature
John Saunders [MVP]
John Wright - 24 Jul 2007 22:54 GMT
I figured it out. Thanks for the help.
John
Scott M. - 24 Jul 2007 23:00 GMT
IMHO, if you are returning a DataSet, you are missing the point of web
services entirely. Why not return the DataSet's XML, which can then be
consumed by any web client. If you pass a DataSet, you are limiting
yourself to a .NET consumer, in which case, you might as well just use DCOM
or COM+.
>I figured it out. Thanks for the help.
>
> John
rcitguy - 21 Aug 2007 21:27 GMT
Hello John,
Would you mind elaborating on how you resolved this? I have
a similar issue.
RCITGUY
-----------------
>I figured it out. Thanks for the help.
>
>John