Created
April 15, 2016 06:27
-
-
Save Tyralion/dbba1253687078e8fa87b4e3138c712f 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):001:0> req = Laximo.oem.get_wizard2('DACIA201507') | |
| 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: 584\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\">GetWizard2:Locale=ru_RU|Catalog=DACIA201507|ssd=</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:26:22 GMT\r\n" | |
| -> "Content-Type: text/xml;charset=UTF-8\r\n" | |
| -> "Content-Length: 623\r\n" | |
| -> "Connection: close\r\n" | |
| -> "X-Application-Context: application\r\n" | |
| -> "\r\n" | |
| reading 623 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<GetWizard2><row allowlistvehicles=\"false\" automatic=\"false\" conditionid=\"1\" determined=\"false\" name=\"Model\" type=\"\"><options><row key=\"$WiVI$\" value=\"Pick-up (PR 0202)\"/><row key=\"$WiVK$\" value=\"Solenza (PR 0525)\"/><row key=\"$WiVL$\" value=\"SupeRNova (PR 0524)\"/></options></row></GetWizard2></response></return></QueryDataResponse></soap:Body></soap:Envelope>" | |
| read 623 bytes | |
| Conn close | |
| => #<Laximo::Respond::GetWizard2:0x007f9a6d2e59f0 @error=nil, @result=[{:allowlistvehicles=>"false", :automatic=>"false", :conditionid=>"1", :determined=>"false", :name=>"Model", :type=>"", :options=>[{:key=>"$WiVI$", :value=>"Pick-up (PR 0202)", :children=>[]}, {:key=>"$WiVK$", :value=>"Solenza (PR 0525)", :children=>[]}, {:key=>"$WiVL$", :value=>"SupeRNova (PR 0524)", :children=>[]}]}]> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment