Commit Graph

27 Commits

Author SHA1 Message Date
Denys Smirnov
b5cf3be9f2 Correctly parse SOAP errors. 2021-05-22 22:24:31 +01:00
Denys Smirnov
73c6c11985 Parse error message for non-OK status codes. 2021-05-22 22:24:31 +01:00
John Beisley
e25a5cc217 Fix formatting of an error message. 2018-03-04 21:56:41 +00:00
John Beisley
991e174e2e Add workaround for SOAP server XML decoding limitations. 2017-11-07 18:19:10 -05:00
games647
b3887248e5 Fix uint out of value parsing for > 4 GiB traffic usage 2017-10-04 08:55:00 +01:00
John Beisley
4eb9134d2b Add minimal test for SOAP "uri" type. 2015-06-07 09:42:08 +01:00
Tommi Virtanen
77b86c3723 Generate dcps for AV1 audio/video devices
Tested against Sonos PLAY:5.

Added URI type to the SOAP library.

The latest upnpresources.zip does not contain older versions of the
specifications, so to be able to generate the bindings I had to create
a fake one:

    wget http://upnp.org/specs/av/UPnP-av-TestFiles-20070927.zip
    install -d 'standardizeddcps/MediaServer_1 and MediaRenderer_1'
    mv UPnP-av-TestFiles-20070927.zip 'standardizeddcps/MediaServer_1 and MediaRenderer_1/'
    zip -r fake.zip 'standardizeddcps/MediaServer_1 and MediaRenderer_1'
    gotask specgen -s fake.zip -o ../dcps
2015-06-06 16:54:08 -07:00
Felix Lange
5528f2eeef soap: quote action names in header
The unquoted form is not accepted by some implementations.
2015-02-13 11:35:15 +01:00
John Beisley
788bb66b80 Correct the encoding of SOAP action arguments.
Also adds a test for this, and the decoding of the response arguments.
2014-06-06 21:21:13 +01:00
John Beisley
5c55e50548 Encode the SOAP action element.
It should always have included this. It probably never worked properly
before, except for servers that didn't require arguments or the action
element.
2014-06-05 22:38:04 +01:00
John Beisley
a8a8987980 Use nil interface{} instead of struct{} for empty requests/responses.
The XML encoder doesn't like receiving struct{}.
2014-01-06 19:47:57 +00:00
Huin
d8237236d8 Check for error when encoding the request action. 2014-01-05 22:41:51 +00:00
John Beisley
d2cd2978d9 Use data type (un)marshal in generated DCP code. 2013-12-31 16:56:20 +00:00
John Beisley
9db0302a13 Add (untested) r4 and r8 type marshalling implementations. 2013-10-27 21:13:07 +00:00
John Beisley
f6c0a22a5f Add many integer marshalled types. 2013-10-27 21:01:36 +00:00
John Beisley
e86d73d8f4 Implement SOAP bin.hex marshalling. 2013-10-27 20:21:44 +00:00
John Beisley
3c28ba0b35 Implement SOAP "bin.base64" marshalling. 2013-10-27 20:17:00 +00:00
John Beisley
aba95ad90c Add marshalling for the "boolean" type. 2013-10-27 20:04:48 +00:00
John Beisley
ecf830777a Add marshalling for dateTime.tz type. 2013-10-27 19:08:31 +00:00
John Beisley
de724897db Make datetime tests more robust against DST/timezone changes. 2013-10-09 22:23:57 +01:00
John Beisley
60ec9a6095 Add datetime marhsalling support. 2013-10-09 22:19:01 +01:00
John Beisley
c9607c5123 Document the other implemented marshallers. 2013-10-09 21:39:55 +01:00
John Beisley
0db75c9211 Document/fix the "date" marshalling. 2013-10-09 21:38:41 +01:00
John Beisley
75576218a4 Correct TimeOfDay type, and add marshalling for time.tz. 2013-10-09 21:35:09 +01:00
John Beisley
7469efd5ff Add TimeOfDay type. 2013-10-09 19:43:33 +01:00
John Beisley
17abe5294a Initial work on marshalling/unmarshalling SOAP types.
So far added:
* fixed.14.4
* char
* date
2013-10-08 23:00:49 +01:00
John Beisley
914072fdd8 Separate lower-level API into separate packages. 2013-10-06 13:23:11 +01:00