这是我的WSDL
:https ://secure-wms.com/webserviceexternal/contracts.asmx?WSDL和相应的文档:http ://app02.3plcentral.com/WebServiceExternal/Contracts.asmx?op=CreateOrders
我正在尝试CreateOrders
使用 PHP 在 PHP 中提交 SOAP 调用SoapClient
,但它一直告诉我要包含越来越多的字段:
Fatal error: SOAP-ERROR: Encoding: object has no 'FulfillmentSalePrice' property
FulfillmentSalePrice
不是必需的,为什么要让我提交?
我的电话看起来像:
$createOrderArray = array(
'Order' => array(
'TransInfo' => array(
'ReferenceNum' => '123',
'PONum' => '1234',
'EarliestShipDate' => time(),
'ShipCancelDate' => time() + 60000,
),
'ShipTo' => array(
'Name' => "John Smith",
'Address' => array(
'Address1' => '123 Main Street',
'Address2' => '',
'City' => 'Monroe',
'State' => 'NJ',
'Zip' => '08831',
'Country' => 'USA',
),
'PhoneNumber' => '732-1234-2408',
'EmailAddress1' => 'email@address.com',
'CustomerName' => 'John Smith',
'RetailerID' => ''
),
'ShippingInstructions' => array(
'Carrier' => "USPS",
'Mode' => "First Class Mail",
'BillingCode' => "Prepaid"
),
'PalletCount' => 1,
'Notes' => '',
'OrderLineItems' => array(
'OrderLineItem' => array(
'SKU' => "1234",
'Qualifier' => '',
'Qty' => 1,
'Packed' => '',
'CuFtPerCarton' => '',
'ExpirationDate' => '',
)
)
),
);
$session = $client->CreateOrders($extLoginData, $createOrderArray);