我是 Codename One 的初学者,我必须使用 Web 服务( xxxx/xxMobileWebService/xxService.asmx )。我已经在使用kSoap的 android 本机开发中成功地做到了这一点。
那么有没有办法在 Codename One 中访问 .Net 网络服务?
编辑------------------------------------------------ -------------------------------------------------- -----
这是我的 XML 元素:
<soap:envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:soap='http://www.w3.org/2003/05/soap-envelope' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
<soap:body>
<getcommonalldataresponse xmlns='http://tempuri.org/'>
<getcommonalldataresult>
<xs:schema xmlns:msprop='urn:schemas-microsoft-com:xml-msprop' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:msdata='urn:schemas-microsoft-com:xml-msdata' xmlns='' id='NewDataSet'>
<xs:element msdata:usecurrentlocale='true' msdata:isdataset='true' name='NewDataSet'>
<xs:complextype>
<xs:choice maxoccurs='unbounded' minoccurs='0'>
<xs:element name='Table' msprop:refcursorname='REFCursor'>
<xs:complextype>
<xs:sequence>
<xs:element name='NAME' type='xs:string' minoccurs='0' msprop:oradbtype='126'>
</xs:element>
</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'>
<name>
'Kasthuriarachchi'
</name>
</table>
</newdataset>
</diffgr:diffgram>
</getcommonalldataresult>
</getcommonalldataresponse>
</soap:body>
</soap:envelope>
我想得到的是 [name] 标签内的字符串数据('Kasthuriarachchi')。