You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a WSDL, which has "document types". These document types have different structures, but different document types can have same top level elements tags with different namespaces. We have a pydantic BaseModel adapter which is used to create the dictionary and then will be used with zeep.
class Payload(_pydantic.BaseModel):
MasterDataContractEventMessage: Union[MasterDataContractEventMessageCls_F04, MasterDataContractEventMessageCls_F06, MasterDataContractEventMessageCls_F18, MasterDataContractEventMessageCls_F27, None]
This is converted to dictionary and when creating the XML, it should create one these elements defined in the WSDL:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Use case
We have a WSDL, which has "document types". These document types have different structures, but different document types can have same top level elements tags with different namespaces. We have a pydantic BaseModel adapter which is used to create the dictionary and then will be used with zeep.
This is converted to dictionary and when creating the XML, it should create one these elements defined in the WSDL:
Problem/Bug
Creating the XML results this, which means that the top level element type for MasterDataContractMessage is chosen from wrong namespace:
Defining the correct namespace with correct element type leads to this:
The WSDL has the schema as:
Is this a bug or would there be something we could do?
Beta Was this translation helpful? Give feedback.
All reactions