私のWebサービスは基本的にWCF
. 私は ksoap2 を使用しており、正常に動作していますが、のような機能を提供するソリューションが必要ですwsimport
。
私の石鹸の応答は次のようになります
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" >
<s:Body
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
<UserLoginResponse xmlns="http://tempuri.org/" >
<UserLoginResult>
<DocumentElement xmlns="" >
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
id="DocumentElement" >
<xs:element
name="DocumentElement"
msdata:IsDataSet="true"
msdata:UseCurrentLocale="true" >
<xs:complexType>
<xs:choice
maxOccurs="unbounded"
minOccurs="0" >
<xs:element name="Table" >
<xs:complexType>
<xs:attribute
name="UserID"
type="xs:int" />
<xs:attribute
name="UserName"
type="xs:string" />
<xs:attribute
name="LevelID"
type="xs:int" />
<xs:attribute
name="LevelName"
type="xs:string" />
<xs:attribute
name="RoleID"
type="xs:int" />
<xs:attribute
name="RoleName"
type="xs:string" />
<xs:attribute
name="ServiceProviderID"
type="xs:int" />
<xs:attribute
name="ServiceProvider"
type="xs:string" />
<xs:attribute
name="ClientID"
type="xs:int" />
<xs:attribute
name="ClientName"
type="xs:string" />
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<Table
ClientID="0"
ClientName=""
LevelID="1"
LevelName="IT Team"
RoleID="1"
RoleName="IT Admin"
ServiceProvider=""
ServiceProviderID="0"
UserID="1"
UserName="Admin" />
</DocumentElement>
</UserLoginResult>
</UserLoginResponse>
</s:Body>
</s:Envelope>
私はすでに wsdl2code でプロキシ クラスを生成しようとしましたWCF
が、要求のみを生成し、応答は生成しません。WCF
Android用の他のツールはありますか? .NET ユーザーは、上記の xml をデータセットとしてデータテーブルに簡単に解析できます。Androidで同様の機能を使用できますか?
柔軟な解決策を導き出してください。