Commit Graph

19 Commits

Author SHA1 Message Date
Jan Halfar
fd5b3b5f73
Create LICENSE 2021-04-19 18:39:44 +02:00
Florian Schlegel
dd9aa50d0a improved http header handling, exposed new method on server WriteHeader 2016-12-01 17:19:24 +01:00
Jan Halfar
520c809155 refactored handler map 2016-09-23 12:41:27 +02:00
Florian Schlegel
e9cad09606 renamed HandleOperation to RegisterHandler 2016-09-05 13:44:52 +02:00
Florian Schlegel
b9a0fce641 added formatFaultXML() which stringyfies Soap Faults so that they can be used as error message for a normal go error. 2016-05-11 17:08:16 +02:00
Florian Schlegel
13d75a8b71 Server and Client can now switch between Soap 1.1 and Soap 1.2 mesages. By default Soap 1.1 is used. Soap 1.2 uses a different namespace and content-type. To avoid the necessity of duplicating all code using Envelope, Header, Body and Fault, all messages are handled as Soap 1.1 messages internally. Switching between Soap Versions is accomplished by replacing the namespaces after marshalling or before unmarshalling. 2016-05-11 11:17:46 +02:00
Florian Schlegel
74df31ccbb Fixed handling of multipart messages. If a message is multipart, we search for the soap part. If none is found, an error is returned. If it's not a multipart message we check if it's emtpy (which is ok) or a soap message. Otherwise an error is returned. 2016-05-02 12:23:18 +02:00
Florian Schlegel
f409fe329e added little hack to get rid of garbage in response body before the actual soap message 2016-04-07 11:36:32 +02:00
Florian Schlegel
4fa85de53e don't panic 2016-03-18 12:11:02 +01:00
Florian Schlegel
b500ce32d2 Fixed issue in Call(): Calls with nil as parameter for response (such as sendOrder() or sendTLog(), which expect an empty response and only look for the http header) paniced if the response was not empty (SOAP-Fault). Response parameters being nil are now replaced by a dummy struct and the SOAP-FAULT is returned via the error message. 2016-03-17 17:34:56 +01:00
Florian Schlegel
1cc2286d4c Merge branch 'master' of github.com:foomo/soap 2016-03-03 13:25:35 +01:00
Florian Schlegel
193b44851a more panic 2016-03-03 13:25:10 +01:00
Jan Halfar
3186505aef dryed up sending content length in soap responses 2016-02-16 08:36:49 +01:00
Florian Schlegel
4da07867db adjusted header 2016-02-15 10:36:40 +01:00
Florian Schlegel
a5008687b7 fixed probe 2016-02-12 10:28:14 +01:00
Jan Halfar
b532d52f56 improved verbose mode 2016-02-04 10:58:00 +01:00
Jan Halfar
6f5b9d46a0 added custom marshalling, verbosity and cleaned up 2016-02-02 18:20:31 +01:00
Jan Halfar
f2772cc8a7 drafting server api 2016-01-21 09:52:31 +01:00
Jan Halfar
7b2720a839 added a server draft 2016-01-20 16:49:34 +01:00