Commit Graph
185 Commits
Author SHA1 Message Date
John Beisley 5fc0a95ef3 chore: add go.work and v2alpha/go.mod. 2022-03-24 19:46:39 +00:00
John Beisley db322868c5 Add notes about v2alpha. 2022-03-24 19:46:39 +00:00
John Beisley 59a727e571 Rename v2 to v2alpha.
Any incremental development on this should be clearly labeled as
unstable.
2022-03-24 19:46:39 +00:00
John Beisley 0a37edf714 Add a basic SOAP client. 2022-03-24 19:46:39 +00:00
John Beisley 06ea566a85 Replace test panic with t.Fatal. 2022-03-24 19:46:39 +00:00
John Beisley f40df26801 v2/soap/envelope - tidy and improve tests. 2022-03-24 19:46:39 +00:00
John Beisley a16ad1252e First draft of v2/soap/envelope package. 2022-03-24 19:46:39 +00:00
John Beisley 8223a6b37c FIx zero padding on years. 2022-03-24 19:46:39 +00:00
John Beisley 32bfaa2f8e Fix max range on Fixed14_4.SetParts. 2022-03-24 19:46:39 +00:00
John Beisley e5fcf16e62 Implement error-free marshalText methods. 2022-03-24 19:46:39 +00:00
John Beisley d5f9ab1f20 SOAP types now implement more standard interfaces.
Specifically TextMarshaler and TextUnmarshaller. These adapt better to
use in xml/encoding.
2022-03-24 19:46:39 +00:00
John Beisley 104873f511 Move wanFirewallURNFix definition out to package. 2022-03-24 19:46:39 +00:00
John Beisley ec3f59b630 Factor code template into a file.
This allows code regeneration without rebuilding the generator binary.
2022-03-24 19:46:39 +00:00
John Beisley bbdad2bb54 Remove separate module for v2. 2022-03-24 19:46:39 +00:00
John Beisley 58b047e43b Complete move to naive date/time types.
These types no longer assume the local timezone as a default, instead
accepting a time.Location when converting to a time.Time.
2022-03-24 19:46:39 +00:00
John Beisley 002eac2274 Refactor Date type for reuse in other types' Unmarshal. 2022-03-24 19:46:39 +00:00
John Beisley 62cb85ae6a Remove DateLocal.
Fix tests to check Date type.
2022-03-24 19:46:39 +00:00
John Beisley 01b23aa7e6 Replace Fixed14_4Float with a integer version.
This type avoids loss of precision, and is likely what was
intended by having 14.4 fixed point.

Conversions to/from float64 are provided.
2022-03-24 19:46:39 +00:00
John Beisley 688314d831 Create v2/soap/types, refactored from v1. 2022-03-24 19:46:39 +00:00
John Beisley 29c1eac5a2 Add top level folder to workspace. 2022-03-24 19:46:39 +00:00
John Beisley ab6e83ae0a Create v2 module as subdirectory. 2022-03-24 19:46:39 +00:00
John Beisley 7ef673455a v2/soap/envelope - tidy and improve tests. 2022-03-24 19:46:39 +00:00
John Beisley 577aa76695 First draft of v2/soap/envelope package. 2022-03-24 19:46:39 +00:00
John Beisley fcd69d183b FIx zero padding on years. 2022-03-24 19:46:39 +00:00
John Beisley cc93611581 Fix max range on Fixed14_4.SetParts. 2022-03-24 19:46:39 +00:00
John Beisley e043d6666b Implement error-free marshalText methods. 2022-03-24 19:46:39 +00:00
John Beisley 6183f45568 SOAP types now implement more standard interfaces.
Specifically TextMarshaler and TextUnmarshaller. These adapt better to
use in xml/encoding.
2022-03-24 19:46:39 +00:00
John Beisley f320faf4bc Consolidate V1 SOAP type data into the SOAP package. 2022-03-24 19:46:39 +00:00
John Beisley a37fadc3ba Factor code template into a file.
This allows code regeneration without rebuilding the generator binary.
2022-03-24 19:46:39 +00:00
John Beisley 0668181616 Remove separate module for v2. 2022-03-24 19:46:39 +00:00
John Beisley 0f6ea5004c Complete move to naive date/time types.
These types no longer assume the local timezone as a default, instead
accepting a time.Location when converting to a time.Time.
2022-03-24 19:46:39 +00:00
John Beisley 500ae47278 Refactor Date type for reuse in other types' Unmarshal. 2022-03-24 19:46:39 +00:00
John Beisley 7913f413b8 Remove DateLocal.
Fix tests to check Date type.
2022-03-24 19:46:39 +00:00
John Beisley 2186162cd7 Replace Fixed14_4Float with a integer version.
This type avoids loss of precision, and is likely what was
intended by having 14.4 fixed point.

Conversions to/from float64 are provided.
2022-03-24 19:46:39 +00:00
John Beisley 47e825446b Create v2/soap/types, refactored from v1. 2022-03-24 19:46:39 +00:00
John Beisley 0926402f8c Create v2 module as subdirectory. 2022-03-24 19:46:39 +00:00
mhhcbonandHuin 9af4afce08 add support for Open Connectivity Foundation DCPs 2022-03-22 18:18:01 +00:00
mhhcbonandHuin e739c716b4 #48: Add local address information 2022-03-22 09:50:46 +00:00
John Beisley ca81a64b42 Reorder items in generated source files.
Ideally they would always have been sorted as such, but this seems more
critical in migrating from one service definition to another where the ordering might
change.
2022-03-13 09:02:29 +00:00
afjosephandHuin 730ab6506b [soap] Enhance SOAPFaultError error unwrapping 2022-01-13 22:16:08 +00:00
humboldt_xieandHuin 72ec887a3d fix SetURLBase URL contain colon str unused 2021-09-08 08:10:00 +01:00
humboldt_xieandHuin aaf1a9757f fix <controlURL>_urn:schemas-upnp-org:service:AVTransport_control</controlURL> throw error first path segment in URL cannot contain colon 2021-09-08 08:10:00 +01:00
John Beisley 5a0d4bd7ee Add *Ctx methods for calling SOAP methods.
Fixes #42.
2021-07-11 14:53:32 +01:00
John Beisley 9eb592fa19 Minor fixes to goupnpdcpgen.
Most importantly fix to run on Windows.
2021-07-11 14:44:55 +01:00
John Beisley 6145404ab1 Add method SOAPCliet.PerformActionCtx. 2021-07-11 14:15:35 +01:00
John Beisley a666909a2f Fix trivial go vet problems. 2021-07-04 10:59:33 +01:00
John Beisley 33cdcbb30d Fix #41 - collisions with same USN as multiple locations. 2021-06-26 17:01:14 +01:00
julianknodtandHuin 16e24d5762 Remove direct dependency on charset reader 2021-06-19 23:10:24 +01:00
Denys SmirnovandHuin b5cf3be9f2 Correctly parse SOAP errors. 2021-05-22 22:24:31 +01:00
Denys SmirnovandHuin 73c6c11985 Parse error message for non-OK status codes. 2021-05-22 22:24:31 +01:00