Hi,
i have some trouble using the generated js source.
As i figured out, having an serialised array in the soap response, the
function IMPL_ArrayOf_apachesoap_Map_deserialize
looks up for "item" nodes directly in the [methodname]Return node of
the xml.
The structure doesn't have that nodes, just an attribute href to
reference to another arm of
the xml response.
Please find a complete reponse xml at the end of this message.
The content should result in an array containing just one element with
another array
that contains several elements in a key / value representation of the
xml structure.
The values can be an array as well if the attribute href is given in
the value node.
Is there a known solution for that or do we have to extend the
js-source ourselves?
The second option wouldn't be nice, because then we never would be able
to recreate
the js lib without do all changs to extend that again.
Expected result would look like this:
array
[0] =>
array
[CustomerProduct_gidTicketProduct_keyword] =>
[reason] =>
...
[userRight] => 2147483647
...
[SLA_gidTicketSLA] => Standardreaktionszeiten
[#gidTicketSLA] => array
[startDate] =>
.....
Array result:
result[0]['userRight'] = 2147483647
result[0]['#gidTicketSLA'][insertUsername] = 'system'
Greetings
Kai
response xml :
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:getObjectResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="urn:api.applic.gidn.de">
<getObjectReturn soapenc:arrayType="ns2:Map[1]"
xsi:type="soapenc:Array"
xmlns:ns2="http://xml.apache.org/xml-soap"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<getObjectReturn href="#id0"/>
</getObjectReturn>
</ns1:getObjectResponse>
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:Map"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns3="http://xml.apache.org/xml-soap">
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct_keyword</key>
<value xsi:type="soapenc:string"/>
</item>
<item>
<key xsi:type="soapenc:string">reason</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct_status</key>
<value xsi:nil="true"/>
</item>
<item>
<key xsi:type="soapenc:string"
>CustomerProduct_gidTicketProduct_remoteAccessOption2</key>
<value xsi:nil="true"/>
</item>
<item>
<key xsi:type="soapenc:string"
>CustomerProduct_gidTicketProduct_remoteAccessOption1</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">userRight</key>
<value
xsi:type="soapenc:int">2147483647</value>
</item>
<item>
<key
xsi:type="soapenc:string">clearingCostCenter</key>
<value xsi:type="soapenc:string"/>
</item>
<item>
<key xsi:type="soapenc:string"
>CustomerProduct_gidTicketProduct_remoteAccessOption5</key>
<value xsi:nil="true"/>
</item>
<item>
<key xsi:type="soapenc:string"
>CustomerProduct_gidTicketProduct_remoteAccessOption4</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">Contact_gidTicketAgent</key>
<value xsi:nil="true"/>
</item>
<item>
<key xsi:type="soapenc:string"
>CustomerProduct_gidTicketProduct_remoteAccessOption3</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">billingText</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">feedback</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct_category</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">SLA_gidTicketSLA</key>
<value
xsi:type="soapenc:string">Standardreaktionszeiten</value>
</item>
<item>
<key
xsi:type="soapenc:string">insertUserId</key>
<value
xsi:type="soapenc:string">402867f2211730d501211730ddc70003</value>
</item>
<item>
<key
xsi:type="soapenc:string">lastAccess</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">templateSync</key>
<value
xsi:type="soapenc:boolean">false</value>
</item>
<item>
<key xsi:type="soapenc:string"
>CustomerProduct_gidTicketProduct_inventoryNumber</key>
<value xsi:type="soapenc:string"/>
</item>
<item>
<key
xsi:type="soapenc:string">template</key>
<value xsi:type="soapenc:int">0</value>
</item>
<item>
<key
xsi:type="soapenc:string">expirationDate</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">updateTimestamp</key>
<value
xsi:type="xsd:dateTime">2012-11-22T08:29:03.000Z</value>
</item>
<item>
<key
xsi:type="soapenc:string">slaFlat</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct_supportArea</key>
<value
xsi:type="soapenc:string">Fahrzeug</value>
</item>
<item>
<key
xsi:type="soapenc:string">entryDate</key>
<value
xsi:type="xsd:dateTime">2012-11-22T08:29:00.000Z</value>
</item>
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct_email</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">Contact_gidTicketCustomer</key>
<value xsi:type="soapenc:string">One-Up
Realty</value>
</item>
<item>
<key
xsi:type="soapenc:string">additionalEmails</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">_gidTicketEntryCount</key>
<value xsi:type="soapenc:long">0</value>
</item>
<item>
<key
xsi:type="soapenc:string">category</key>
<value
xsi:type="soapenc:string">Fehler</value>
</item>
<item>
<key xsi:type="soapenc:string">system</key>
<value
xsi:type="soapenc:boolean">false</value>
</item>
<item>
<key
xsi:type="soapenc:string">expirationDateNote</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">repeatUntil</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct_location</key>
<value xsi:type="soapenc:string"/>
</item>
<item>
<key
xsi:type="soapenc:string">language</key>
<value xsi:type="soapenc:string">de</value>
</item>
<item>
<key
xsi:type="soapenc:string">repeatStartDate</key>
<value xsi:nil="true"/>
</item>
<item>
<key xsi:type="soapenc:string"
>CustomerProduct_gidTicketProduct_remoteAccessAddress</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">insertUsername</key>
<value
xsi:type="soapenc:string">admin</value>
</item>
<item>
<key
xsi:type="soapenc:string">customerReferenceId</key>
<value xsi:type="soapenc:string"/>
</item>
<item>
<key
xsi:type="soapenc:string">escalationStep</key>
<value xsi:type="soapenc:int">0</value>
</item>
<item>
<key
xsi:type="soapenc:string">#gidTicketGroup</key>
<value href="#id1"/>
</item>
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct_versionKeyword</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">repeatInterval</key>
<value xsi:type="soapenc:int">0</value>
</item>
<item>
<key
xsi:type="soapenc:string">Contact_gidTicketContact</key>
<value xsi:type="soapenc:string">Jana
Eisenhauer One-Up Realty</value>
</item>
<item>
<key xsi:type="soapenc:string">mainId</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">#gidTicketSLA</key>
<value href="#id2"/>
</item>
<item>
<key
xsi:type="soapenc:string">projectNumber</key>
<value xsi:type="soapenc:string"/>
</item>
<item>
<key
xsi:type="soapenc:string">isRecurrence</key>
<value
xsi:type="soapenc:boolean">false</value>
</item>
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct_description</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">closeDate</key>
<value xsi:nil="true"/>
</item>
<item>
<key xsi:type="soapenc:string"
>CustomerProduct_gidTicketProduct_countClosedTickets</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">repeatType</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">transDescriptions</key>
<value href="#id3"/>
</item>
<item>
<key xsi:type="soapenc:string"
>CustomerProduct_gidTicketProduct_remoteAccessSoftware</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">costCenter</key>
<value xsi:type="soapenc:string"/>
</item>
<item>
<key
xsi:type="soapenc:string">Contact_gidTicketGroup</key>
<value
xsi:type="soapenc:string">Hotline</value>
</item>
<item>
<key
xsi:type="soapenc:string">proxyAccess</key>
<value xsi:type="soapenc:int">27</value>
</item>
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct_warranty</key>
<value xsi:type="soapenc:string"/>
</item>
<item>
<key
xsi:type="soapenc:string">emailCCAddress</key>
<value xsi:type="soapenc:string"/>
</item>
<item>
<key xsi:type="soapenc:string">notes</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">updateUsername</key>
<value
xsi:type="soapenc:string">admin</value>
</item>
<item>
<key
xsi:type="soapenc:string">emailBCCAddress</key>
<value xsi:type="soapenc:string"/>
</item>
<item>
<key
xsi:type="soapenc:string">emailToAddress</key>
<value xsi:type="soapenc:string"/>
</item>
<item>
<key
xsi:type="soapenc:string">ticketNumber</key>
<value
xsi:type="soapenc:string">244</value>
</item>
<item>
<key xsi:type="soapenc:string">type</key>
<value xsi:type="soapenc:string">N</value>
</item>
<item>
<key
xsi:type="soapenc:string">questionnaire</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">priority</key>
<value
xsi:type="soapenc:string">normal</value>
</item>
<item>
<key
xsi:type="soapenc:string">description</key>
<value xsi:type="soapenc:string">Lorem ipsum
dolor sit amet, consetetur sadipscing
elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam
erat, sed diam voluptua. At vero eos
et accusam et justo duo dolores et ea
rebum. Stet clita kasd gubergren, no
sea takimata sanctus est Lorem ipsum dolor
sit amet. Lorem ipsum dolor sit
amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut
labore et dolore magna aliquyam erat, sed diam
voluptua. At vero eos et accusam et
justo duo dolores et ea rebum. Stet clita
kasd gubergren, no sea takimata
sanctus est Lorem ipsum dolor sit amet.</value>
</item>
<item>
<key
xsi:type="soapenc:string">ticketCopy</key>
<value xsi:type="soapenc:string"/>
</item>
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">mc3meldeart</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">mc3feedback</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">userAccess</key>
<value
xsi:type="soapenc:string"><userAccess> <accessright>
<userName>One-Up
Realty</userName>
<userId>5551fa5c3b272214013b273bb615709e</userId>
<type>8</type>
<right>2147483647</right>
<role>gidTicketCustomer</role> </accessright>
<accessright>
<userName>Öffentlich</userName>
<userId>402867f2211730d501211730dd1b0001</userId>
<type>0</type>
<right>2147483647</right> <role />
</accessright>
<accessright> <userName>Jana
Eisenhauer</userName>
<userId>5551fa5c3b272214013b273bf64871a0</userId>
<type>4</type>
<right>2147483647</right>
<role>gidTicketContact</role> </accessright>
</userAccess></value>
</item>
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct_priceExternal</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">mc3reason</key>
<value xsi:nil="true"/>
</item>
<item>
<key xsi:type="soapenc:string"
>CustomerProduct_gidTicketProduct_remoteAccessPassword</key>
<value xsi:nil="true"/>
</item>
<item>
<key xsi:type="soapenc:string">status</key>
<value
xsi:type="soapenc:string">Neu</value>
</item>
<item>
<key
xsi:type="soapenc:string">reportedBy</key>
<value
xsi:type="soapenc:string">Support</value>
</item>
<item>
<key xsi:type="soapenc:string"
>CustomerProduct_gidTicketProduct_countOpenTickets</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">deleted</key>
<value xsi:type="soapenc:int">0</value>
</item>
<item>
<key
xsi:type="soapenc:string">#gidTicketCustomer</key>
<value href="#id4"/>
</item>
<item>
<key
xsi:type="soapenc:string">updateUserId</key>
<value
xsi:type="soapenc:string">402867f2211730d501211730ddc70003</value>
</item>
<item>
<key
xsi:type="soapenc:string">templateAccess</key>
<value
xsi:type="soapenc:string"><userAccess /></value>
</item>
<item>
<key
xsi:type="soapenc:string">actualDuration</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">escalationEnd</key>
<value
xsi:type="xsd:dateTime">2012-11-22T16:29:00.000Z</value>
</item>
<item>
<key
xsi:type="soapenc:string">#gidTicketContact</key>
<value href="#id5"/>
</item>
<item>
<key xsi:type="soapenc:string"
>CustomerProduct_gidTicketProduct_remoteAccessUsername</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct_invoice</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct_taxCode</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">recurrenceId</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">Email_gidTicketEmail</key>
<value xsi:nil="true"/>
</item>
<item>
<key xsi:type="soapenc:string">id</key>
<value
xsi:type="soapenc:string">5551fa5c3b272214013b273bfba771c2</value>
</item>
<item>
<key
xsi:type="soapenc:string">resolved</key>
<value xsi:nil="true"/>
</item>
<item>
<key xsi:type="soapenc:string">layout</key>
<value
xsi:type="soapenc:string">default</value>
</item>
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct_priceInternal</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">insertTimestamp</key>
<value
xsi:type="xsd:dateTime">2012-11-22T08:29:00.000Z</value>
</item>
<item>
<key
xsi:type="soapenc:string">externalReferenceId</key>
<value xsi:type="soapenc:string"/>
</item>
<item>
<key
xsi:type="soapenc:string">showOnProjectList</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct_serialNumber</key>
<value xsi:type="soapenc:string"/>
</item>
<item>
<key xsi:type="soapenc:string">alias</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">keyword</key>
<value
xsi:type="soapenc:string">Fehlermeldung für Fahrzeug</value>
</item>
<item>
<key
xsi:type="soapenc:string">referenceId</key>
<value xsi:nil="true"/>
</item>
<item>
<key xsi:type="soapenc:string">$type$</key>
<value
xsi:type="soapenc:string">Ticket</value>
</item>
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct_rentalItem</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">followUp</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct_rentalFee</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">languageGroup</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct_number</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">CustomerProduct_gidTicketProduct_rentalPeriod</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">templateId</key>
<value
xsi:type="soapenc:string">4028675530dab0880130db30264e000b</value>
</item>
<item>
<key xsi:type="soapenc:string">source</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">Document_gidTicketBill</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">joinedTicketNumber</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">fromAddress</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">supportArea</key>
<value
xsi:type="soapenc:string">Fahrzeug</value>
</item>
<item>
<key
xsi:type="soapenc:string">actualReaction</key>
<value xsi:nil="true"/>
</item>
<item>
<key xsi:type="soapenc:string">rating</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">displayName</key>
<value xsi:type="soapenc:string">#244#
Fehlermeldung für Fahrzeug</value>
</item>
<item>
<key
xsi:type="soapenc:string">slaBilled</key>
<value
xsi:type="soapenc:boolean">false</value>
</item>
<item>
<key
xsi:type="soapenc:string">templateName</key>
<value
xsi:type="soapenc:string">default</value>
</item>
</multiRef>
<multiRef id="id2" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns4:Map"
xmlns:ns4="http://xml.apache.org/xml-soap"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<item>
<key
xsi:type="soapenc:string">startDate</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">freeInMonths</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">recurrenceId</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">insertUsername</key>
<value
xsi:type="soapenc:string">system</value>
</item>
<item>
<key
xsi:type="soapenc:string">escalationLevelFour</key>
<value xsi:type="soapenc:int">90</value>
</item>
<item>
<key
xsi:type="soapenc:string">timeZone</key>
<value
xsi:type="soapenc:string">Europe/Berlin</value>
</item>
<item>
<key
xsi:type="soapenc:string">userRight</key>
<value
xsi:type="soapenc:int">2147483647</value>
</item>
<item>
<key xsi:type="soapenc:string">id</key>
<value
xsi:type="soapenc:string">402867552aebfcc8012aec02bb760003</value>
</item>
<item>
<key
xsi:type="soapenc:string">followupBill</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">description</key>
<value xsi:nil="true"/>
</item>
<item>
<key xsi:type="soapenc:string">layout</key>
<value
xsi:type="soapenc:string">global</value>
</item>
<item>
<key
xsi:type="soapenc:string">insertUserId</key>
<value xsi:type="soapenc:string"/>
</item>
<item>
<key xsi:type="soapenc:string">mainId</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">insertTimestamp</key>
<value
xsi:type="xsd:dateTime">2010-09-07T11:44:16.000Z</value>
</item>
<item>
<key
xsi:type="soapenc:string">templateSync</key>
<value
xsi:type="soapenc:boolean">false</value>
</item>
<item>
<key
xsi:type="soapenc:string">isRecurrence</key>
<value
xsi:type="soapenc:boolean">false</value>
</item>
<item>
<key
xsi:type="soapenc:string">userAccess</key>
<value
xsi:type="soapenc:string"><userAccess> <accessright>
<userName>Öffentlich</userName>
<userId>402867f2211730d501211730dd1b0001</userId>
<type>0</type>
<right>2147483647</right> <role />
</accessright>
</userAccess></value>
</item>
<item>
<key
xsi:type="soapenc:string">template</key>
<value xsi:type="soapenc:int">0</value>
</item>
<item>
<key
xsi:type="soapenc:string">updateTimestamp</key>
<value
xsi:type="xsd:dateTime">2013-02-21T10:18:28.000Z</value>
</item>
<item>
<key
xsi:type="soapenc:string">freeItemUnit</key>
<value xsi:nil="true"/>
</item>
<item>
<key
xsi:type="soapenc:string">workSchedule</key>
<value xsi:type="soapenc:string"