0

サービス参照を使用して Web サービスを使用しています。

ToString() を使用して結果の戻り値を変換しました。

using (ConnectClient client = new ConnectClient("ESConnect"))
                {
                    result = client.actiService("ssss", "sss", "sss").ToString();

xml.linq を使用して xml を読み取ります。

using (XmlReader reader = XmlReader.Create(new StringReader(result)))

次のエラーが表示されます。

The content type text/plain of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly.    

編集:

Web サービスは、Apache Axis SOAP を使用して作成されます。

4

1 に答える 1

0

XML文字列を解析しているだけなら、XDocument.Loadを試すことができます

于 2012-09-06T07:36:10.097 に答える