php - 我如何在 php 中使用肥皂服务?
问题描述
服务测试链接为:https ://efatura-test.uyumsoft.com.tr/Services/Integration 。我试过这个:
try {
$server = new SoapClient('https://example.com?wsdl');
$auth = new stdClass();
$auth->Username = 'foo';
$auth->Password = 'bar';
$header = new SoapHeader('https://example.com/', 'Auth', $auth, false);
$server->__setSoapHeaders($header);
$response = $server->IsEInvoiceUser("9000068418");
} catch (Exception $exc) {
echo $exc->getMessage();
}
但输出这样的错误:验证消息的安全性时发生错误。 我做错了什么?
解决方案
推荐阅读
- indexing - AMPL:定义对集合的特定索引的约束
- javascript - 如何在jquery中提交带有表单的图像,其中图像标签在jquery代码中?
- javascript - 按升序对 AJAX 响应结果进行排序
- ios - CoreData 可转换:自定义转换器永远不会被调用 - 使用 NSKeyedArchiver
- vue.js - Vuejs根据商店数据在发布后有条件地重定向
- angular - NgRx:如何在 meta-reducers 中使用服务?
- java - 为什么我在 Netbeans 中没有 Web 应用程序选项?
- python - Port Tornado 应用到 gunicorn
- java - 无法调试 ProcessBuilder
- python - 如何使用 for-looped print() 结果在 pandas 的数据框中填充新列?