metalpriest / pysimplesoap

Automatically exported from code.google.com/p/pysimplesoap
0 stars 0 forks source link

Tag Error, Type not found + lost information when converting from xml response to simpleXMLElement(s) #159

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run client code or call getInventory(..), example code in client.py, wsdl 
attached

What is the expected output? What do you see instead?

Expected:
see "request_response-SoapUI.txt

getting instead:
correct response, but with Exception:
    Error: Tag: transmissionParametersList invalid (type not found) 

What version of the product are you using? On what operating system?
   MacOs + Linux, tried 1.10 + 1.16 (via git from last week)

The SimpleXMLElement returning from "client.getInventory(..)" is also missing 
information in lists like:

<ns5:name>
    <ns4:rdn>
        <ns4:type>MD</ns4:type>
        <ns4:value>ADVA/Network</ns4:value>
    </ns4:rdn>
    <ns4:rdn>
        <ns4:type>ME</ns4:type>
        <ns4:value>b-lab-nwdm-opop-1</ns4:value>
    </ns4:rdn>
    <ns4:rdn>
        <ns4:type>EH</ns4:type>
        <ns4:value>/shelf=1/slot=8</ns4:value>
    </ns4:rdn>
    <ns4:rdn>
        <ns4:type>EQ</ns4:type>
        <ns4:value>1</ns4:value>
    </ns4:rdn>
</ns5:name>

Only the first key/value pair is read/converted like:

<ns5:name>
    <ns4:rdn>
        <ns4:type>MD</ns4:type>
        <ns4:value>ADVA/Network</ns4:value>
    </ns4:rdn>
</ns5:name>

ns5:name should be a list or array or whatever, not a single SimpleXMLElement
(screenshot attached)

please advice!

thanks & regards,

chris

Original issue reported on code.google.com by wlancow...@gmail.com on 29 Sep 2014 at 11:44

Attachments: