Commit Graph

1505 Commits

Author SHA1 Message Date
Jurko Gospodnetić 23bc0434a2 add todo comment on cleaning up XSD Schema build step timing 2015-07-01 11:14:52 +02:00
Jurko Gospodnetić 27970c43fc update comment wording (stylistic) 2015-07-01 10:50:21 +02:00
Jurko Gospodnetić a84fe3a57d add missing empty line in function comment (stylistic, PEP-8) 2015-07-01 10:48:29 +02:00
Jurko Gospodnetić e56c82286c add todo comment to recheck the XSD schema merging implementation
XSD schema imports are not supposed to be transitive. They only allow the
importing schema to reference entities from the imported schema, but do not
include them as their own content. The current XSD schema merging implementation
seems like it's actually including and propagating all the imported content.
2015-07-01 10:46:20 +02:00
Jurko Gospodnetić 556ee3b67d add implementation & todo comment on how Schema objects get built 2015-07-01 10:43:35 +02:00
Jurko Gospodnetić f0cc96b945 sync up error message style for XSD schema import & include 2015-07-01 10:41:21 +02:00
Jurko Gospodnetić 9cd766d2a9 mark XSD schema Include & Import download() methods as private 2015-07-01 10:51:45 +02:00
Jurko Gospodnetić 90cb8d6841 mark XSD schema Import.locate method as private 2015-07-01 10:39:48 +02:00
Jurko Gospodnetić 6c48829634 code cleanup in wsdl.py
- replaced unnecessary list comprehensions with generator expressions to avoid
  creating temporary lists
- used standard boolean check when checking for empty containers
- removed a corpse variable assignment
2015-07-01 10:35:25 +02:00
Jurko Gospodnetić 02c651cea2 add failing recursive XSD import test 2015-07-01 10:29:26 +02:00
Jurko Gospodnetić 1528dd0641 use six.b instead of suds.byte_str in the test_suds.py test module 2015-07-01 10:26:47 +02:00
Jurko Gospodnetić d55384ff38 better comment a potentially confusing local variable
A SOAP WS method invocation parameter's type is identified by its corresponding
XSD schema element.
2014-07-08 09:07:03 +02:00
Jurko Gospodnetić 34ea1f4dd0 tidy up the suds.sax.attribute module (stylistic)
- PEP-8ified comments & made their style consistent
- used double quotes consistently
- removed unnecessary imports
- replaced star imports with explicit ones
2014-07-02 22:06:43 +02:00
Jurko Gospodnetić 2e9c22daf1 tidy up up the suds.sax module (stylistic)
- PEP-8ified comments
- used double quotes consistently
2014-07-02 20:42:25 +02:00
Jurko Gospodnetić de541a2c31 document WSDL SOAP binding research notes
Researched into which namespace should be used to qualify SOAP message tags
corresponding to WSDL message parts when using the document/literal binding
style.
2014-06-30 13:25:21 +02:00
Jurko Gospodnetić fd611a9b70 tidy up the suds.mx.literal module (stylistic) 2014-06-29 23:46:02 +02:00
Jurko Gospodnetić 860352608d tidy up the suds.mx.typer module (stylistic)
- replaced star imports with explicit ones
- improved module, class & method docstrings
- reordered the XSD schema type list alphabetically
- used double quotes consistently
- minor stylistic code changes
2014-07-03 01:56:54 +02:00
Jurko Gospodnetić 08acf73850 fix typo in the main argparser.py module comment 2014-07-06 19:59:00 +02:00
Jurko Gospodnetić 2e7c8b8e47 use new style Exception raising without the 'comma' syntax 2014-07-03 01:57:41 +02:00
Jurko Gospodnetić 96bf1052a1 correct XSD element 'form' attribute handling project release notes
Fixed in commit a076899c6524084e119207bcb300e88c2436fbb1.
2015-06-30 09:52:54 +02:00
Jurko Gospodnetić 9e16d24385 correct accidental test WSDL schema content
TestTransportUsage.test_operation_request_and_reply() test in the test_client.py
module used a WSDL schema that worked fine for that specific test case but did
not exactly match what the developer originally intended. Part of the WSDL's XSD
schema definition got formatted as an embedded Python bytes literal (b"...")
instead of a simple string, resulting in some extra 'b"' & '"' textual XML data.
The extra text data got ignored by suds when parsing that XSD but it was still
not intended to be there in the first place.

Added an assertion to catch cases where such a problem might try and sneak by us
again in the future.
2014-07-02 18:30:42 +02:00
Jurko Gospodnetić 3580611a8c tidy up test WSDL (stylistic)
- indented some of the content to make it more readable
- removed an unnecessary attributeFormDefault attribute
2014-07-01 23:51:49 +02:00
Jurko Gospodnetić 20a87b6862 add missing comment & empty line (stylistic) 2014-07-01 23:48:45 +02:00
Jurko Gospodnetić 159d8f4c9c make minor coding style details consistent (stylistic) 2014-06-30 20:23:46 +02:00
Jurko Gospodnetić 2597de3b29 update exception string in suds.sax.element.Element.applyns()
The code checks that the passed namespace parameter is a list or a tuple, but
the raised exception message mentioned only a tuple as a valid namespace value
structure.
2014-06-30 20:21:01 +02:00
Jurko Gospodnetić 1d6982a4fd clean up suds.bindings.binding.PartElement docstring 2014-06-30 12:05:22 +02:00
Jurko Gospodnetić 02efc08392 remove unused return value from suds.xsd.sxbasic.Element.implany() 2014-06-30 11:02:43 +02:00
Jurko Gospodnetić 2fce798f01 tidy up comment line wrapping (stylistic) 2014-06-30 20:17:11 +02:00
Jurko Gospodnetić 4ee198364f correct invalid test data
Original data accepted only because of extra suds logic to support invalid XSD
schemas but neither was the data actually a valid XSD schema nor is testing that
logic the purpose of the test in question.
2014-06-30 12:07:02 +02:00
Jurko Gospodnetić e4e4841dd1 mark the word `suds` consistently in the project's README.rst docs 2014-06-30 20:38:09 +02:00
Jurko Gospodnetić 3466d461de rename __wsdl_main() recursive WSDL import test utility function
Renamed to __wsdl_no_binding() as we now have a test in its test class that does
not use this function for constructing its main WSDL schema.
2015-06-30 00:14:44 +02:00
Jurko Gospodnetić 9ae9646e3b add WSDL self import test 2015-06-30 00:11:33 +02:00
Jurko Gospodnetić c9864f7932 updated known defects listings in the project's release notes
- noted broken recursive XSD import/include support
- fixed a few typos
2015-06-30 00:03:25 +02:00
Jurko Gospodnetić a78141ada6 fix an additional broken recursive WSDL import scenario
- added related test
- fixed the issue & commented the fix
- updated related already existing comment in the original WSDL import fix
2015-06-29 23:39:51 +02:00
Jurko Gospodnetić 01524e2cfe fix comment typo 2015-06-29 21:48:36 +02:00
Jurko Gospodnetić ce59997840 update project release notes 2015-06-29 21:45:11 +02:00
Jurko Gospodnetić 412be82578 refactor WSDL import related tests
All such tests were incorrectly left grouped under a class related to a more
specific use-case, and the class's description did not match its purpose.
2015-06-29 21:39:55 +02:00
Jurko Gospodnetić 7e24435e31 remove whitespace in front of : in dictionary literal (stylistic) 2015-06-29 21:35:18 +02:00
Jurko Gospodnetić 560743c246 mark some internal Binding WSDL object methods as private
Renamings:
- resolveport --> __resolveport
- resolvesoapbody --> __resolvesoapbody
- resolveheaders --> __resolveheaders
- resolvefaults --> __resolvefaults
2015-06-29 21:33:55 +02:00
Jurko Gospodnetić ab2b7a4c5c fix broken recursive WSDL imports
Suds now correctly handles twisted use-cases as seen in some M$ web services,
and whose one possible structure has been illustrated by the
test_recursive_WSDL_import() test in the test_client.py test module.

Note that this has nothing to do with recursive XSD schema imports which still
have known issues.

Updated todo list.
2015-06-29 21:31:38 +02:00
Jurko Gospodnetić 122540ec8b test resolving WSDL entity references to entities defined later in XML 2015-06-29 00:14:26 +02:00
Jurko Gospodnetić b28f1d32fa fix typo 2015-06-29 00:13:02 +02:00
Jurko Gospodnetić 8eeb515872 add an xfail test demonstrating a bug with recursive WSDL imports 2015-06-28 22:33:49 +02:00
Jurko Gospodnetić 0a36ee2b21 replace suds with six compatibility tools in test_client.py 2015-06-28 22:32:32 +02:00
Jurko Gospodnetić da40a0153a test referencing imported WSDL entities with same base & imported tns
Updated todo list.
2015-06-28 22:02:06 +02:00
Jurko Gospodnetić 8060225bb3 tidy up WSDL import test data & its usage
- less duplication
- test specific test data now contained in those tests
- test data can now be constructed with custom XSD target namespace
- tests depending on imported & importing WSDL target namespaces now specify
them explicitly
2015-06-28 21:57:07 +02:00
Jurko Gospodnetić 8905c666d2 add tests showing how imported WSDL entities are referenced 2015-06-28 21:35:46 +02:00
Jurko Gospodnetić a7bdabf3a4 clean up WSDL importing test data
Reduced test data duplication and made the data more parametrizable so we may
use the same data for testing more WSDL import variations.

Moved some more parts of the WSDL import test data into the imported WSDL
schema.
2015-06-28 21:11:34 +02:00
Jurko Gospodnetić d9c4f21b1d update todo list 2015-06-28 19:50:00 +02:00
Jurko Gospodnetić e7dd8e6e51 remove invalid test_WSDL_import() test
When one WSDL imports another, this does not mean that the components from the
imported WSDL become part of the importing WSDL, but only means that importing
WSDL's components may now reference components from the imported WSDL.

The fact that suds currently imports actual components into the importing WSDL
is in fact a possible bug (unless it is just a part of some internal
implementation detail with no publicly visible side-effects, but even then such
a kludge should be made clearer in code).
2015-06-28 19:49:02 +02:00