Skip to content

Instantly share code, notes, and snippets.

@Tyralion
Created April 15, 2016 06:28
Show Gist options
  • Save Tyralion/425cc9910dbe021940b20680ed14ec0d to your computer and use it in GitHub Desktop.
Save Tyralion/425cc9910dbe021940b20680ed14ec0d to your computer and use it in GitHub Desktop.
irb(main):008:0> req = Laximo.oem.get_wizard2('CH1106')
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: 579\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=CH1106|ssd=</request>\n </ns5692:QueryData>\n </SOAP-ENV:Body>\n</SOAP-ENV:Envelope>"
-> "HTTP/1.1 500 Internal Server Error\r\n"
-> "Server: nginx/1.8.1\r\n"
-> "Date: Fri, 15 Apr 2016 06:27:11 GMT\r\n"
-> "Content-Type: text/xml;charset=UTF-8\r\n"
-> "Content-Length: 392\r\n"
-> "Connection: close\r\n"
-> "X-Application-Context: application\r\n"
-> "\r\n"
reading 392 bytes...
-> "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"><SOAP-ENV:Header xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"/><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>E_CATALOGNOTEXISTS:CH1106</faultstring><detail><ns1:Exception xmlns:ns1=\"http://WebCatalog.Kito.ec\"/></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>"
read 392 bytes
Conn close
=> #<Laximo::Respond::GetWizard2:0x007f9a6fa07718 @error=#<Laximo::SoapCatalogNotExistsError: CH1106>, @result=[]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment