-2

友達..

SOAP Webサービスを実装しています..

以下のコードを使用しています..

QtSoapMessage request;
request.setMethod(QtSoapQName("Method_Name", "http://tempuri.org/*****/"));

request.addMethodArgument("key1", "", "value1");
request.addMethodArgument("key2", "", "value2");

QString action ="http://tempuri.org/****/MethodName";

QString host ="host name";
QString prefix ="/****/****.svc";

私は以下のような応答を得ています..

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Fault xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">a:InternalServiceFault</faultcode>
4

1 に答える 1

1

addMethodArgument に URI が必要なようです。また、どのようにリクエストを実行しますか? コードはこれで全部ですか?

于 2013-02-17T14:36:41.227 に答える