我正在尝试从 eway(澳大利亚)实现重复出现的 Web 服务。但是我无法让它工作。
我不断收到消息
“命名空间‘ http://www.eway.com.au/gateway/rebill/manageRebill ’中的元素‘rebillCustomerCreate’内容不完整。预期的可能元素列表:‘CustomerRef’。”
这是 WSDL:https : //www.eway.com.au/gateway/rebill/test/manageRebill_test.asmx?wsdl
我是 SOAP 新手。试图在 PHP 中实现它。谁能指出我做错了什么?
这是我的 php 代码:
<?php
$URL = "https://www.eway.com.au/gateway/rebill/test/manageRebill_test.asmx?wsdl";
$option = array("trace"=>true);
$client = new SOAPClient($URL, $option);
$functions = $client->__getFunctions();
$headeroptions =array('eWAYCustomerID'=>"87654321",'Username'=>"test@eway.com.au","Password"=>"test");
$header = new SOAPHeader('http://www.eway.com.au/gateway/rebill/manageRebill', 'eWAYHeader',$headeroptions);
$bodyoptions = array(
"customerTitle" => "Mr",
"customerFirstName" => "firstname",
"customerLastName" => "lastname",
"customerAddress" => "address",
"customerSuburb" => "someniceplace",
"customerState" => "somenicestate",
"customerCompany" => "somecompany",
"customerPostCode" => "411026",
"customerCountry" => "australia",
"customerEmail" => "test@eway.com",
"customerFax" => "123456",
"customerPhone1" …Run Code Online (Sandbox Code Playgroud)