Open bbrewer-forge opened 3 years ago
Code for reproducing the issue, btw:
client = Client("https://scos-third-party-repository.s3.us-east-2.amazonaws.com/wsdl/tmdd_local.wsdl")
params = {
"organization-requesting": {
"organization-id": "1"
}
}
client.service.dlCenterActiveVerificationRequest(**params)
Note that the WSDL and TMDD xsd may be updated to get our particular use case working, so I can provide the "broken" copies of those if required.
I think there was a similar issue opened, but we could not reliably reproduce the issue, thanks for providing details!
Note that the WSDL and TMDD xsd may be updated to get our particular use case working, so I can provide the "broken" copies of those if required.
Yes, can you provide links to those broken versions?
I have a WSDL that imports a schema. The WSDL contains the prefix for the namespace, and the schema contains the type information for the parameters of a method, but Suds will not prefix the parameter's XML element until I add that prefix and namespace to the schema itself. I didn't write the WSDL and schema so it's entirely possible they just wrote it wrong. However, I've seen quite a few different WSDL + schema examples that don't do this, so I'm unsure what the standard practice is.
In short, is it standard practice to require both the WSDL and any imported schemas to define the prefix for a namespace?
WSDL definitions - tmdd is the prefix in question
Schema definition in xsd
Produces request with the ns, not the prefix.
centerActiveVerificationRequestMsg
is the parameter in questionIf I add the tmdd prefix to the schema definition, like so (or any prefix with that url, apparently)
It then does produce the request with the prefix for the parameter
centerActiveVerificationRequestMsg
instead of the nsRelevant part of WSDL.
tmdd
is the prefix for the attributes in questionRelevant part of Schema
WSDL: https://scos-third-party-repository.s3.us-east-2.amazonaws.com/wsdl/tmdd_local.wsdl Schema: https://scos-third-party-repository.s3.us-east-2.amazonaws.com/wsdl/TMDD.xsd