Kishanjvaghela / ksoap2-android

Automatically exported from code.google.com/p/ksoap2-android
0 stars 0 forks source link

attribute parsing already supported? #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the API I can see the methods, but on this XML it does not work:

E.g. Prescription="false" and ProfessionallySourced="false" of the return
element are not recognized.

<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
        <ns2:getMedicationResponse xmlns:ns2="http://foo.bar.com/"
xmlns:ns3="http://www.dossia.org/v2.0/xml/phr"
xmlns:ns4="http://www.dossia.org/v2.0/api"
xmlns:ns5="http://www.w3.org/2005/08/addressing">
            <return Prescription="false" ProfessionallySourced="false">
                <ns3:Origin Classification="PHR">
                    <ns3:Organization>
                        <ns3:OrganizationName>Dossia</ns3:OrganizationName>
                    </ns3:Organization>
                </ns3:Origin>
                <ns3:Date Type="Actual">
                    <ns3:StartDate>2009-10-08</ns3:StartDate>
                    <ns3:EndDate>2009-10-08</ns3:EndDate>
                </ns3:Date>
                <ns3:Comments/>
                <ns3:Drug>
                    <ns3:Code MajorVersion="" MinorVersion="" System="NDC">
                        <ns3:Code>672960489</ns3:Code>
                        <ns3:LongDescription>TYLENOL 3  (300 MG
ACETAMINOPHEN, 30 MG CODEINE PHOSPHATE) (by REDPHARM
DRUG)</ns3:LongDescription>
                    </ns3:Code>
                    <ns3:Route>Oral</ns3:Route>
                </ns3:Drug>
            </return>
        </ns2:getMedicationResponse>
    </S:Body>
</S:Envelope>

Original issue reported on code.google.com by Karsten....@googlemail.com on 2 Mar 2010 at 11:09

GoogleCodeExporter commented 9 years ago
I am having the same problem with accessing cid, fid and name in 

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
        <KeywordSearchResponse xmlns="...">
            <KeywordSearchResult>
                <Categories>
                    <Category cid="39" name="Integrated Circuits (ICs)">
                        <Family fid="205" name="Microcontrollers">
                            <RecordCount>653</RecordCount>
                        </Family>
                    </Category>
                </Categories>
            </KeywordSearchResult>
        </KeywordSearchResponse>
    </soap:Body>
</soap:Envelope>

Original comment by mosa...@gmail.com on 13 Apr 2010 at 7:33

GoogleCodeExporter commented 9 years ago
From what I can see on the changelog the patch from sourceforge was applied in 
github and respectively issue 4 
was closed, but somehow this is not working for me. 

Original comment by mosa...@gmail.com on 13 Apr 2010 at 7:44

GoogleCodeExporter commented 9 years ago
I have cloned the project on github and push an enhancement into my clone that 
now works with the attributes 
and populates the attribute info. It would be great if this could be pulled 
upstream and a new release being cut.

Original comment by mosa...@gmail.com on 15 Apr 2010 at 5:49

GoogleCodeExporter commented 9 years ago
I have documented how to build my fork and provide a download of the jar as 
well. More on my site
http://bit.ly/bOEiw9

Original comment by mosa...@gmail.com on 26 May 2010 at 5:43

GoogleCodeExporter commented 9 years ago
This is fixed in the upcoming release that currently lives in the new mosabua 
github repository.

Original comment by mosa...@gmail.com on 12 Oct 2010 at 5:14

GoogleCodeExporter commented 9 years ago
Release 2.5.1 fixes it

Original comment by mosa...@gmail.com on 15 Oct 2010 at 11:12