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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.