yeah

搜索

计数器

62837

链接

php对象<=>数组互转
用MySQL内置函数转换ip地址和数字

php调用.net webservice 验证,调用难题

yeah posted @ Dec 25, 2009 10:22:04 PM in PHP学习 with tags php调用.net webservice 验证 调用 , 1306 阅读

1.soapHeader的构造

<soap:Header>
    <CredentialSoapHeader xmlns="http://YouXi.com.cn/">
      <ViaStr>string</ViaStr>
      <Md5Text>string</Md5Text>
    </CredentialSoapHeader>
</soap:Header>

构造代码:

 

 2.在调用.net webservice时,用一个参数 parameters 为要传入的参数 

<?php
$res = $client->__soapCall('ExistsUserByName', array('parameters'=>array('strUserName'=>$username)));
?>

<?php
$value = array(
    'ViaStr' => 'abc123',
    'Md5Text' => md5('abc123987654321')
);
$header = new SOAPHeader('命名空间', 'CredentialSoapHeader', $value, false);
?>
idolnetworth 说:
Mar 22, 2024 09:02:29 PM

Do you know the net worth of your favorite actor, singer or any celebrity? There is a website which contains all information about celebrity net worth for everyone.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter