Support for multi-referenced SOAP messages

Bug #941409 reported by jsgaarde
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ladon
Fix Committed
High
jsgaarde

Bug Description

Hi Jakob,
please take a look at this SOAP request: http://pastebin.com/cZvdDFXQ

Please notice using href attribute in Contact object:
<item xsi:type="ns1:Contact" id="ref1">

and

<contacts SOAP-ENC:arrayType="ns1:Contact[1]" xsi:type="ns1:ArrayOfContact">
<item href="#ref1"/>
</contacts>

And when I want access this attribute:
customer->contacts[0]->contactType->ID (this object is represented by <item href="#ref1"/>), I got this error: AttributeError: 'dict' object has no attribute 'ID'

In this contactType attribute isn't stored my object contactType (
<contactType xsi:type="ns1:ContactType">
<ID xsi:type="xsd:long">3</ID>
<Name xsi:type="xsd:string">email</Name>
</contactType>),
but there is: {'doc': 'Contact type object', 'type': <class 'src.dto.ContactType.ContactType'>, 'nullable': True}

Could you help me please?

Thanks

Ales

Changed in ladon:
importance: Undecided → High
assignee: nobody → jsgaarde (jakob-simon-gaarde)
Revision history for this message
jsgaarde (jakob-simon-gaarde) wrote :

This patch should fix the missing support for multi-referenced SOAP Messages

/ Jakob

Changed in ladon:
status: New → Fix Committed
Revision history for this message
Dmitry Tantsur (divius) wrote :

Could you also port this patch to soap11? It seems to cause troubles in bug #983185

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.