Alex.Luya Posted October 17, 2007 Share Posted October 17, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/73632-request-web-services-failednew-vine-logistics/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.