Jump to content

Request web services failed(New Vine Logistics)


Alex.Luya

Recommended Posts

I want to request web services of New Vine Logistics

 

the steps are:

1.getFunction,get functions as below,

 

array(5) { [0]=> string(53) "UNKNOWN submitOrderBatch(UNKNOWN $submitBatchElement)" .....................

 

2.read the SOAP API SPECIFICATIONS(provide by New Vine Logistics),the detail info as following:

 

1) Submit Order Batch:

This method is used to submit batch of orders in the form of xml payload. XML needs to be well-formed and compliant to submitOrderBatch DTD.

submitOrderBatch ( )

o INPUT

· XML data within SOAP body.

· Parameter(s) = Enumerated in input DTD submitOrderBatch.dtd, covers information about customer identification, order identification, order header info like consumer identification, addresses, contact info, order total, shipping info, etc. It also covers order line level information about Quantity ordered for each SKU, Product details and Line Subtotals.

· Data type = org.w3c.dom.Element

 

3.so I submit order,

 

$dom = new DOMDocument;

$dom->load('SampleOrder.xml');

$result = $soap_client->submitOrderBatch($dom);

 

4.then :print_r("Request:".$soap_client->__getLastRequest());

but the result is aways:Request:

 

5.SampleOrder.xml is

<?xml version='1.0' encoding='UTF-8'?>

<SOAP-ENV:Envelope

xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"

xmlns:xsd="http://www.w3.org/1999/XMLSchema">

<SOAP-ENV:Body>

<ns1:submitOrderBatch xmlns:ns1="urn:OrderOperations"

SOAP-ENV:encodingStyle="http://xml.apache.org/xml-soap/literalxml">

<submitOrderBatch CustomerBatchID="COPSTest2">

。。。。。。

</submitOrderBatch>

</ns1:submitOrderBatch>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

 

 

so,the questions is as following

.I make sure I have connect to "New Vine Logistics",if xml file i submitted is invalid,the server should give me response to indicate what is the problem.but for now,I can not submit order.because the result of

$soap_client->__getLastRequest() is empty,so submit failed.what is problem of way that i submit order.

any answer is appreciate in advance

Back to top

View user's profile Send private message

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.