Welcome Guest, Not a member yet? Register   Sign In
got a problem whit CI nuSoap library and j2EE web service on xml header
#1

[eluser]Unknown[/eluser]
I still developed my application with CI and use nuSoap Lib for accsess the J2EE webservice (EJB) if the response did'n give xml header, the library is working well and dont have getting many problem, than the problemm was appear is I got request that give xml header, the response variable can't be field the response from the web service. here the xml respond from web service:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Header>
        <To >http://www.w3.org/2005/08/addressing/anonymous</To>
        <Action >http://service/Akademik/getListAgamaResponse</Action>
        <MessageID >uuid:8b95396e-0aed-48e7-b174-8716b596b0d8</MessageID>
        <RelatesTo >uuid:3f079af3-6028-4942-b8ec-3faf435585e2</RelatesTo>
    </S:Header>
    <S:Body>
        <ns2:getListAgamaResponse xmlns:ns2="http://service/">
            <return>
                <item>
                    <id xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">I</id>
                    <nama xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Islam</nama>
                </item>
                <item>
                    <id xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">K</id>
                    <nama xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Katolik</nama>
                </item>
                <item>
                    <id xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">P</id>
                    <nama xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Protestan</nama>
                </item>
                <item>
                    <id xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">H</id>
                    <nama xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Hindu</nama>
                </item>
                <item>
                    <id xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">B</id>
                    <nama xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Budha</nama>
                </item>
                <item>
                    <id xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">L</id>
                    <nama xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Lain - lain</nama>
                </item>
            </return>
        </ns2:getListAgamaResponse>
    </S:Body>
</S:Envelope>

hope anyone can help.




Theme © iAndrew 2016 - Forum software by © MyBB