Created
April 15, 2016 06:05
-
-
Save Tyralion/5e99a122cd4598f4bf0afe5b80f7fc26 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
irb(main):002:0> req = Laximo.oem.find_vehicle_by_vin('JMZGH12F701448756') | |
opening connection to ws.laximo.net:443... | |
opened | |
starting SSL for ws.laximo.net:443... | |
SSL established | |
<- "POST /ec.Kito.WebCatalog/services/Catalog.CatalogHttpSoap11Endpoint/ HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nUser-Agent: LaximoRuby [0.4.2]\r\nContent-Type: text/xml; charset=UTF-8\r\nSoapaction: \"http://WebCatalog.Kito.ec\"\r\nConnection: close\r\nHost: ws.laximo.net\r\nContent-Length: 603\r\n\r\n" | |
<- "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"\nxmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\nxmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\">\n <SOAP-ENV:Body>\n <ns5692:QueryData xmlns:ns5692=\"http://WebCatalog.Kito.ec\">\n <request xsi:type=\"xsd:string\">FindVehicleByVIN:Locale=ru_RU|VIN=JMZGH12F701448756|Localized=false</request>\n </ns5692:QueryData>\n </SOAP-ENV:Body>\n</SOAP-ENV:Envelope>" | |
-> "HTTP/1.1 200 OK\r\n" | |
-> "Server: nginx/1.8.1\r\n" | |
-> "Date: Fri, 15 Apr 2016 06:05:07 GMT\r\n" | |
-> "Content-Type: text/xml;charset=UTF-8\r\n" | |
-> "Content-Length: 914\r\n" | |
-> "Connection: close\r\n" | |
-> "X-Application-Context: application\r\n" | |
-> "\r\n" | |
reading 914 bytes... | |
-> "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><SOAP-ENV:Header xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"/><soap:Body><QueryDataResponse xmlns=\"http://WebCatalog.Kito.ec\"><return><response>\n<FindVehicleByVIN><row bodystyle=\"SEDAN\" brand=\"MAZDA\" catalog=\"MAZDA201401\" catalogno=\"AEGA11\" datefrom=\"200911\" destinationregion=\"RU\" displacement=\"2000\" door=\"4-DOOR\" doortrim=\"TDA\" drive=\"L\" engine=\"GASOLINE\" exteriorcolor=\"34K\" interiorcolor=\"GM9\" manufactured=\"20101108\" minorfeatures=\"STAGE4, GASOLINE, AUTOMATIC TRANSMISSION, SEDAN, 4-DOOR, W/O SUNROOF, W/O TURBO, 5-SPEED, 2000, RUSSIA\" modelyear=\"2009\" name=\"MAZDA6\" region=\"Europe\" seat=\"STD\" ssd=\"$BQEBcgJKQ1tddHwmPz56AgZzBQMFAl9dTgcFSlNAc1JINCVPAFRbB3RpWwcpNFg$\" transmission=\"AUTOMATIC TRANSMISSION\" vehicleid=\"301\"/></FindVehicleByVIN></response></return></QueryDataResponse></soap:Body></soap:Envelope>" | |
read 914 bytes | |
Conn close | |
=> #<Laximo::Respond::FindVehicleByVin:0x007fb08c31cb28 @error=nil, @result=[{:bodystyle=>"SEDAN", :brand=>"MAZDA", :catalog=>"MAZDA201401", :catalogno=>"AEGA11", :datefrom=>"200911", :destinationregion=>"RU", :displacement=>"2000", :door=>"4-DOOR", :doortrim=>"TDA", :drive=>"L", :engine=>"GASOLINE", :exteriorcolor=>"34K", :interiorcolor=>"GM9", :manufactured=>"20101108", :minorfeatures=>"STAGE4, GASOLINE, AUTOMATIC TRANSMISSION, SEDAN, 4-DOOR, W/O SUNROOF, W/O TURBO, 5-SPEED, 2000, RUSSIA", :modelyear=>"2009", :name=>"MAZDA6", :region=>"Europe", :seat=>"STD", :ssd=>"$BQEBcgJKQ1tddHwmPz56AgZzBQMFAl9dTgcFSlNAc1JINCVPAFRbB3RpWwcpNFg$", :transmission=>"AUTOMATIC TRANSMISSION", :vehicleid=>"301", :attributes=>[]}]> | |
irb(main):003:0> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment