axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lovell, Jim M" <Lovell.Ji...@principal.com>
Subject Namespace Prefix Stripped From XML Data
Date Thu, 11 Dec 2003 19:06:16 GMT
I have an Axis RPC service that return a DOM Element as the return data type. The data I expect
to get back from the servoce should look like the following. However what I get back from
Axis is a stripped down verison without the namespace prefix data. Any idea why Axis would
remove namespace prefixes from my data?


<dsml:batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"
    xmlns:dsml="urn:oasis:names:tc:DSML:2:0:core"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <dsml:searchResponse>
        <dsml:searchResultDone code="0" descr="success"/>
        <dsml:searchResultEntry dn="CN=USERID,OU=Users">
            <dsml:attr name="mail">
                <dsml:value>USERID@Company.com</dsml:value>
            </dsml:attr>
            <dsml:attr name="displayName">
                <dsml:value>USERID, Myuser</dsml:value>
            </dsml:attr>
            <dsml:attr name="cn">
                <dsml:value>USERID</dsml:value>
            </dsml:attr>
        </dsml:searchResultEntry>
    </dsml:searchResponse>
</dsml:batchResponse>


Here is what I get back.

<batchResponse xmlns="urn:oasis:names:tc:DSML:2:0:core"
    xmlns:dsml="urn:oasis:names:tc:DSML:2:0:core"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <searchResponse>
        <searchResultDone code="0" descr="success"/>
        <searchResultEntry dn="CN=USERID,OU=Users">
            <attr name="mail">
                <value>USERID@Company.com</value>
            </attr>
            <attr name="displayName">
                <value>USERID, MyUser</value>
            </attr>
            <attr name="cn">
                <value>USERID</value>
            </attr>
        </searchResultEntry>
    </searchResponse>
</batchResponse>


Thanks

Jim


Mime
View raw message