dougang8233 2019-04-22 11:17
浏览 49

通过PHP更新WSDL中的值

I want to update a value for NUMBER from below wsdl:

<subscriberProfile>
<!--Zero or more repetitions:-->
<entry>
   <!--Optional:-->
   <key>NUMBER</key>
   <!--Optional:-->
   <value>23546</value>
</entry>
</subscriberProfile>

The php script to update this is:

<?php
try {
  $client = new SoapClient("http://urlwsdl/services/SubscriberService?wsdl",  array('trace' => 1));
  $data = $client->wsUpdateSubscriberProfile(array('IMEI' => '123456789', 'subscriberID' => '6282818964330'));
  print_r($data);
} catch (SoapFault $fault) {
   trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR);
   exit();
}

But the above script did not send this part:

<subscriberProfile>
<!--Zero or more repetitions:-->
<entry>
   <!--Optional:-->
   <key>NUMBER</key>
   <!--Optional:-->
   <value>23546</value>
</entry>
</subscriberProfile>

and give me the response:

<return>
    <responseCode>401</responseCode>
    <responseMessage>Subscriber profile not received</responseMessage>
</return>

Any idea, how to solve this?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥30 这是哪个作者做的宝宝起名网站
    • ¥60 版本过低apk如何修改可以兼容新的安卓系统
    • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
    • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
    • ¥50 有数据,怎么用matlab求全要素生产率
    • ¥15 TI的insta-spin例程
    • ¥15 完成下列问题完成下列问题
    • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
    • ¥15 YoloV5 第三方库的版本对照问题
    • ¥15 请完成下列相关问题!