Skip to content

Instantly share code, notes, and snippets.

View Zensey's full-sized avatar
🎯

Anton Litvinov Zensey

🎯
View GitHub Profile
@Zensey
Zensey / logger_conf.json
Created October 21, 2015 18:34
log4js how to set default logging levels for channels
{
"replaceConsole": false,
"appenders": [
{
"type": "console",
"layout_": {
"type": "pattern",
"pattern": "%d %p %c - %m"
}
@Zensey
Zensey / ch340.c
Created January 14, 2016 11:03 — forked from z4yx/ch340.c
//libusb+ch340 data transfer demo
//gcc usb.c `pkg-config libusb-1.0 --libs --cflags` -o usb
#include <errno.h>
#include <signal.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/select.h>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:getObjectGroupResponse xmlns:ns2="http://example.ru/WebService">
<return>
<guid>E25534B1A6DA7E95E040007F02001857</guid>
<hash>5388E4E31975F9561916A34FC3BB6243</hash>
<id>19483</id>
<typeId>4</typeId>
</return>
</ns2:getObjectGroupResponse>
<lib:library xmlns:lib="http://dyomedea.com/ns/library">
<book id="b0836217462" available="yes">
<isbn>
0836217462
</isbn>
<title>
Being a Dog Is a Full-Time Job
</title>
</book>
</lib:library>
<library xmlns="http://dyomedea.com/ns/library">
<book id="b0836217462" available="yes">
<isbn>
0836217462
</isbn>
<title>
Being a Dog Is a Full-Time Job
</title>
</book>
</library>
<xs:element name="getObjectGroup" type="tns:getObjectGroup"/>
<xs:element name="getObjectGroupResponse" type="tns:getObjectGroupResponse"/>
<xs:complexType name="getObjectGroup">
<xs:sequence>
<xs:element name="type" type="xs:int"/>
</xs:sequence>
</xs:complexType>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header/>
<soap:Body>
<ns2:getObjectGroup xsi:type="getObjectGroup" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://mycompany.ru/MyCompanySyncWebService">
<ns2:type>1</ns2:type>
</ns2:getObjectGroup>
</soap:Body>
</soap:Envelope>
<wsdl:definitions name="WebServiceWS" targetNamespace="http://exchange.services/">
<wsdl:types>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://exchange.services/">
...
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<downloadResponse xmlns="http://exchange.services/">
<return>
...
</return>
</getObjectGroupResponse>
</soap:Body>
</soap:Envelope>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<getOUListResponse xmlns="http://mycompany.ru/MyCompanySyncWebService">
<return>
<id>1001</id>
...
</return>
</getOUListResponse>
</soap:Body>
</soap:Envelope>