Last active
December 16, 2015 02:09
-
-
Save rubyonrailsworks/5360550 to your computer and use it in GitHub Desktop.
标杆对接
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 推送入库通知单至仓库 可以返回 SKU不存在 | |
1.9.3p327 :144 > Bml.new.ans_to_wms | |
HTTPI GET request to 58.210.118.230 (net_http) | |
SOAP request: http://58.210.118.230:9021/order/BMLservices/BMLQuery | |
SOAPAction: "ansToWms", Content-Type: text/xml;charset=UTF-8, Content-Length: 1030 | |
<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://BML" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:ansToWms><tns:customerId>ALLYES</tns:customerId><tns:pWD>BML33570</tns:pWD><tns:xml><RequestPurchaseInfo><warehouseid>BML_KSWH</warehouseid><customerId>01000111</customerId><orderCode>LP200909100033445</orderCode><type>FG</type><ZDRQ>2011-12-21 12:12:12</ZDRQ><ZDR>供应管理 01</ZDR><BZ></BZ><DHRQ>2011-12-21 12:12:12</DHRQ><productsd><productInfo><spuCode>TEST8782011122</spuCode><itemName>NokiaN73</itemName><itemCount>2000</itemCount><itemValue>2000</itemValue><remark>卖家备注</remark></productInfo></productsd></RequestPurchaseInfo></tns:xml></tns:ansToWms></env:Body></env:Envelope> | |
HTTPI POST request to 58.210.118.230 (net_http) | |
SOAP response (status 200) | |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><ns1:ansToWmsResponse xmlns:ns1="http://BML"><ns1:out><Response><success>false</success><code>007</code><desc>SKUTEST8782011122不存在</desc></Response></ns1:out></ns1:ansToWmsResponse></soap:Body></soap:Envelope> | |
=> "<Response><success>false</success><code>007</code><desc>SKUTEST8782011122不存在</desc></Response>" | |
#推送 SKU 同步信息至仓库,提示 Fault: java.lang.NullPointerException | |
1.9.3p327 :146 > Bml.new.sync_single_sku | |
HTTPI GET request to 58.210.118.230 (net_http) | |
SOAP request: http://58.210.118.230:9021/order/BMLservices/BMLQuery | |
SOAPAction: "singleSkuToWms", Content-Type: text/xml;charset=UTF-8, Content-Length: 647 | |
<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://BML" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:singleSkuToWms><tns:customerId>ALLYES</tns:customerId><tns:pWD>BML33570</tns:pWD><tns:xml><skus><sku><skuCode>TEST8782011122</skuCode><Name>NokiaN73</Name><desc></desc><ALTERNATESKU1>6900000000001</ALTERNATESKU1><ALTERNATESKU1>1000456</ALTERNATESKU1></sku></skus></tns:xml></tns:singleSkuToWms></env:Body></env:Envelope> | |
HTTPI POST request to 58.210.118.230 (net_http) | |
SOAP response (status 500) | |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Fault: java.lang.NullPointerException</faultstring></soap:Fault></soap:Body></soap:Envelope> | |
Savon::SOAPFault: (soap:Server) Fault: java.lang.NullPointerException | |
、 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#同步sku | |
<skus><sku><skucode>bls1</skucode><name>bls1</name><desc></desc><ALTERNATESKU1></ALTERNATESKU1><ALTERNATESKU2></ALTERNATESKU2></sku><sku><skucode>bls2</skucode><name>bls2</name><desc></desc><ALTERNATESKU1></ALTERNATESKU1><ALTERNATESKU2></ALTERNATESKU2></sku><sku><skucode>bls3</skucode><name>bls3</name><desc></desc><ALTERNATESKU1></ALTERNATESKU1><ALTERNATESKU2></ALTERNATESKU2></sku><sku><skucode>bls4</skucode><name>bls4</name><desc></desc><ALTERNATESKU1></ALTERNATESKU1><ALTERNATESKU2></ALTERNATESKU2></sku></skus> | |
#sku入库 | |
<RequestPurchaseInfo><warehouseid>BML_KSWH</warehouseid><type>FG</type><orderCode>LP200909100033440</orderCode><customerId>ALLYES</customerId><ZDRQ>2011-12-21 12:12:12</ZDRQ><DHRQ>2011-12-21 12:12:12</DHRQ><ZDR>供应管理 01</ZDR><BZ></BZ><products><productInfo><spuCode>bls1</spuCode><itemName>bls1</itemName><itemCount>2000</itemCount><itemValue>2000</itemValue><remark>卖家备注</remark></productInfo><productInfo><spuCode>bls2</spuCode><itemName>bls2</itemName><itemCount>2000</itemCount><itemValue>2000</itemValue><remark>卖家备注</remark></productInfo><productInfo><spuCode>bls3</spuCode><itemName>bls3</itemName><itemCount>2000</itemCount><itemValue>2000</itemValue><remark>卖家备注</remark></productInfo><productInfo><spuCode>bls4</spuCode><itemName>bls4</itemName><itemCount>2000</itemCount><itemValue>2000</itemValue><remark>卖家备注</remark></productInfo></products></RequestPurchaseInfo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment