2010-11-18 67 views
2

我都知道,使用數據集是一個大奸大惡,但服務不是我的控制之下,並創建一個代理服務的前景是一個沒有去....KSOAP和.Net Web服務,它返回一個DataSet

我想看到的是,如果任何人已經創建了可以使用kSoap序列化器進行反序列化的類結構,或者我抽錯了錯誤的東西。

打算在同一時間開始它,看看是否有可能。

下面是如預期所產生的數據(Schema和的DiffGram):

<?xml version="1.0" encoding="utf-8"?> 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 
    <soap:Body> 
    <SearchCustomerResponse xmlns="http://NCBI/WS/CRM"> 
     <SearchCustomerResult> 
     <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> 
      <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"> 
      <xs:complexType> 
       <xs:choice minOccurs="0" maxOccurs="unbounded"> 
       <xs:element name="Table"> 
        <xs:complexType> 
        <xs:sequence> 
         <xs:element name="cussurKey" type="xs:int" minOccurs="0" /> 
         <xs:element name="cusKey" type="xs:int" minOccurs="0" /> 
         <xs:element name="FullName" type="xs:string" minOccurs="0" /> 
         <xs:element name="CIS" type="xs:long" minOccurs="0" /> 
         <xs:element name="DCARKey" type="xs:int" minOccurs="0" /> 
         <xs:element name="empBM" type="xs:string" minOccurs="0" /> 
         <xs:element name="IDRegNo" type="xs:string" minOccurs="0" /> 
         <xs:element name="RankCount" type="xs:long" minOccurs="0" /> 
         <xs:element name="Source" type="xs:string" minOccurs="0" /> 
         <xs:element name="GOICategory" type="xs:string" minOccurs="0" /> 
         <xs:element name="cusperbanKey" type="xs:int" minOccurs="0" /> 
         <xs:element name="GOIAmount" type="xs:int" minOccurs="0" /> 
        </xs:sequence> 
        </xs:complexType> 
       </xs:element> 
       </xs:choice> 
      </xs:complexType> 
      </xs:element> 
     </xs:schema> 
     <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"> 
      <NewDataSet xmlns=""> 
      <Table diffgr:id="Table1" msdata:rowOrder="0"> 
       <cussurKey>211806</cussurKey> 
       <cusKey>0</cusKey> 
       <FullName>*AMA WIESE H/A PLANTWISE SHADENET  </FullName> 
       <CIS>191004669827</CIS> 
       <DCARKey>3171</DCARKey> 
       <empBM>0007974 - Scott, Sean John</empBM> 
       <IDRegNo>0</IDRegNo> 
       <RankCount>1</RankCount> 
       <Source>Local</Source> 
       <GOICategory>Zero</GOICategory> 
       <cusperbanKey>7</cusperbanKey> 
      </Table> 
      <Table diffgr:id="Table2" msdata:rowOrder="1"> 
       <cussurKey>115457</cussurKey> 
       <cusKey>0</cusKey> 
       <FullName>*C H WIESE EN J A BAARD     </FullName> 
       <CIS>110587519304</CIS> 
       <DCARKey>33351</DCARKey> 
       <empBM>0135570 - Kriel, Werner</empBM> 
       <IDRegNo>0</IDRegNo> 
       <RankCount>2</RankCount> 
       <Source>Local</Source> 
       <GOICategory>Zero</GOICategory> 
       <cusperbanKey>7</cusperbanKey> 
      </Table> 
      </NewDataSet> 
     </diffgr:diffgram> 
     </SearchCustomerResult> 
    </SearchCustomerResponse> 
    </soap:Body> 
</soap:Envelope> 

回答