Request web services failed(New Vine Logistics)
Posted: Wed Oct 17, 2007 5:48 am
scottayy | Please use
4.then :
but the result is aways:Request:
5.SampleOrder.xml is
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
scottayy | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
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,Code: Select all
$dom = new DOMDocument;
$dom->load('SampleOrder.xml');
$result = $soap_client->submitOrderBatch($dom);Code: Select all
print_r("Request:".$soap_client->__getLastRequest());5.SampleOrder.xml is
Code: Select all
<?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
scottayy | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]