小编Jer*_*eys的帖子

如何通过PHP使用Acumatica的SOAP API导出发票或当前语句?

如何通过PHP使用Acumatica的SOAP API导出发票或当前语句?

我可以使用https://www.wsdltophp.com/生成SOAP PHP存根类

我发现的大多数例子都使用.Net

我的客户提供给我的WSDL是:http://erp.triode.co.nz/pmsdb/Soap/INEXPORT.asmx? WSDL

从我所看到的,似乎Acumatica有不同程序的多个WSDL.如果有人能给我一个指向正确方向的点,那就太好了.我可以使用Acumatica端点进行身份验证,我只是对这个用例从哪里开始陷入困境.

***UPDATE****

好的我现在正在使用Acumatica PHP帮助文件,这些文件非常有用,但不幸的是再次陷入困境,试图导出一个客户的发票列表:

<?php
ini_set('memory_limit','512M');
ini_set('display_errors',true);
error_reporting(-1);

require_once('AcumaticaGate.php');

//$wsdl = "http://erp.triode.co.nz/pmsdb/Soap/AR402000.asmx?WSDL";
// $client = new AcumaticaGate('<user_login>', '<user_password>', '<folder_name>','http://<computer>/<website>');

//Can't provide credentials for security reasons unfortunately
$un = ""
$pw = ""; 

$client = new AcumaticaGate($un, $pw, 'AR402000','http://erp.triode.co.nz/pmsdb');

$customer_id = "DAR";
$doctype = "Invoice";

$selection = $client->Schema->GetSchemaResult->Selection;
$customer = $selection->Customer = $customer_id;
$all_docs = $selection->ShowAllDocuments = true;
$unreleased = $selection->IncludeUnreleasedDocuments = true;
$type_doc = $client->Schema->GetSchemaResult->Documents->TypeDisplayDocType;

// FILTERS
$filters …
Run Code Online (Sandbox Code Playgroud)

php soap acumatica

6
推荐指数
1
解决办法
374
查看次数

标签 统计

acumatica ×1

php ×1

soap ×1