javascript - 云代码中的SOAP请求函数?

WBOY
Release: 2016-06-06 20:47:42
Original
989 people have browsed it

这里有一段PHP代码的示例:

<code>$client = new SoapClient('http://xxxxx/aaa.asmx?wsdl',array('encoding'=>'UTF-8'));   

$sendParam = array(
'CorpID'=>$uid,
'Pwd'=>$passwd,
'Mobile'=>$telphone,
'Content'=>$message,
'Cell'=>'',
'SendTime'=>''
);

$result = $client->BatchSend($sendParam);
$result = $result->BatchSendResult;
</code>
Copy after login
Copy after login

请问javascript中是否有与之相对应的函数?要如何实现上述代码的功能?
谢谢

回复内容:

这里有一段PHP代码的示例:

<code>$client = new SoapClient('http://xxxxx/aaa.asmx?wsdl',array('encoding'=>'UTF-8'));   

$sendParam = array(
'CorpID'=>$uid,
'Pwd'=>$passwd,
'Mobile'=>$telphone,
'Content'=>$message,
'Cell'=>'',
'SendTime'=>''
);

$result = $client->BatchSend($sendParam);
$result = $result->BatchSendResult;
</code>
Copy after login
Copy after login

请问javascript中是否有与之相对应的函数?要如何实现上述代码的功能?
谢谢

这个你得自己搜一下 JavaScript 的 SOAP 实现了: https://www.google.com/search?q=javascript+soap

可以把实现代码直接加到你的云代码项目里。如果需要的第三方库不能直接加到自己的项目里,可以提交一个 ticket 让我们的工程师审核。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template