【问题标题】:"a:InternalServiceFault" getting error when calling SOAP service调用 SOAP 服务时出现“a:InternalServiceFault”错误
【发布时间】:2013-02-11 03:59:37
【问题描述】:

朋友..

我正在实现 SOAP 网络服务..

我正在使用下面的代码..

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>

【问题讨论】:

    标签: qt soap blackberry-10 blackberry-cascades


    【解决方案1】:

    看起来您应该在 addMethodArgument 中需要 URI。 此外,您如何运行请求?这是所有的代码吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-06
      相关资源
      最近更新 更多