axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21824] New: - Generated <>BindingStub.java wrong if document / literal
Date Wed, 23 Jul 2003 11:12:40 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21824>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21824

Generated <>BindingStub.java wrong if document / literal

           Summary: Generated <>BindingStub.java wrong if document / literal
           Product: Axis
           Version: 1.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: oliver.wulff@zurich.ch


If you have got a webservice with document / literal style, the <>BindingStub 
class won't be genereated correctly.
When trying to access the value attribute of the Holder class of an out 
parameter, I get a NullPointerException.

Axis generates the following lines for the attached WSDL:
_return.value = (com.xmlbus.berechtigung.xsd.OrgEinheit_T)_output.get(new 
javax.xml.namespace.QName("", "return"));

instead of:
_return.value = (com.xmlbus.berechtigung.xsd.OrgEinheit_T) _output.get(new 
javax.xml.namespace.QName("http://xmlbus.com/berechtigung", "return"));

It does work after makeing the corrections in the <>BindindStub.java class.


WSDL:
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="Berechtigung_1_0Service" 
    targetNamespace="http://xmlbus.com/berechtigung" 
    xmlns="http://schemas.xmlsoap.org/wsdl/" 
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
    xmlns:tns="http://xmlbus.com/berechtigung" 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    xmlns:xsd1="http://xmlbus.com/berechtigung/xsd">
    <types>
        <schema targetNamespace="http://xmlbus.com/berechtigung/xsd" 
            xmlns="http://www.w3.org/2001/XMLSchema" 
            xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
            <complexType name="Header_T">
                <all>
                    <element name="clientId" type="xsd:string"/>
                    <element name="traceOn" type="xsd:boolean"/>
                </all>
            </complexType>
            <complexType name="OrgEinheit_T">
                <all>
                    <element name="letzteMutation" type="xsd:string"/>
                    <element name="gueltigBisDatum" type="xsd:string"/>
                    <element name="orgEinKurzBez" type="xsd:string"/>
                    <element name="orgEinStufennr" type="xsd:short"/>
                    <element name="gueltigAbDatum" type="xsd:string"/>
                    <element name="orgEinBez" type="xsd:string"/>
                </all>
            </complexType>
            <complexType name="ExValuePair_T">
                <all>
                    <element name="ctx" type="xsd:int"/>
                    <element name="key" type="xsd:string"/>
                    <element name="value" type="xsd:string"/>
                </all>
            </complexType>
            <complexType name="ArrayOfExValuePair_T">
                <sequence>
                    <element maxOccurs="unbounded" minOccurs="0" name="item" 
                        type="xsd1:ExValuePair_T"/>
                </sequence>
            </complexType>
            <complexType name="ExDescr_T">
                <all>
                    <element name="timestamp" type="xsd:string"/>
                    <element name="domain" type="xsd:string"/>
                    <element name="exCode" type="xsd:int"/>
                    <element name="traceId" type="xsd:string"/>
                    <element name="extend" type="xsd1:ArrayOfExValuePair_T"/>
                </all>
            </complexType>
            <complexType name="ArrayOfExDescr_T">
                <sequence>
                    <element maxOccurs="unbounded" minOccurs="0" name="item" 
                        type="xsd1:ExDescr_T"/>
                </sequence>
            </complexType>
            <simpleType name="CompletionStatus">
                <restriction base="xsd:string">
                    <enumeration value="COMPLETED_YES"/>
                    <enumeration value="COMPLETED_NO"/>
                    <enumeration value="COMPLETED_MAYBE"/>
                </restriction>
            </simpleType>
            <complexType name="SystemException">
                <sequence>
                    <element name="completed" type="xsd1:CompletionStatus"/>
                    <element name="minor" type="xsd:int"/>
                </sequence>
            </complexType>
            <simpleType name="xchar">
                <restriction base="xsd:string">
                    <length value="1"/>
                </restriction>
            </simpleType>
            <complexType name="Systembenutzer_T">
                <all>
                    <element name="druckerCode" type="xsd:string"/>
                    <element name="anredeCode" type="xsd:string"/>
                    <element name="nachname" type="xsd:string"/>
                    <element name="vorname" type="xsd:string"/>
                    <element name="berechtigungCode" type="xsd:string"/>
                    <element name="userId" type="xsd:string"/>
                    <element name="sachbearbeiterPst" type="xsd:string"/>
                    <element name="letzteMutation" type="xsd:string"/>
                    <element name="gueltigBisDatum" type="xsd:string"/>
                    <element name="gueltigAbDatum" type="xsd:string"/>
                    <element name="sprachCode" type="xsd1:xchar"/>
                    <element name="telNrIntern" type="xsd:string"/>
                    <element name="telNr" type="xsd:string"/>
                </all>
            </complexType>
            <complexType name="ArrayOfSystembenutzer_T">
                <sequence>
                    <element maxOccurs="unbounded" minOccurs="0" name="item" 
                        type="xsd1:Systembenutzer_T"/>
                </sequence>
            </complexType>
        </schema>
        <schema targetNamespace="http://xmlbus.com/berechtigung" 
            xmlns="http://www.w3.org/2001/XMLSchema" 
            xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
            <import namespace="http://xmlbus.com/berechtigung/xsd"/>
            <element name="getOrgEinheit">
                <complexType>
                    <sequence>
                        <element name="header" type="xsd1:Header_T"/>
                        <element name="orgId" type="xsd:string"/>
                    </sequence>
                </complexType>
            </element>
            <element name="getOrgEinheitResponse">
                <complexType>
                    <sequence>
                        <element name="return" type="xsd1:OrgEinheit_T"/>
                        <element name="ex" type="xsd1:ArrayOfExDescr_T"/>
                    </sequence>
                </complexType>
            </element>
            <element name="getOrgEinheitDatum">
                <complexType>
                    <sequence>
                        <element name="header" type="xsd1:Header_T"/>
                        <element name="orgId" type="xsd:string"/>
                        <element name="vonDatum" type="xsd:string"/>
                        <element name="bisDatum" type="xsd:string"/>
                    </sequence>
                </complexType>
            </element>
            <element name="getOrgEinheitDatumResponse">
                <complexType>
                    <sequence>
                        <element name="return" type="xsd1:OrgEinheit_T"/>
                        <element name="ex" type="xsd1:ArrayOfExDescr_T"/>
                    </sequence>
                </complexType>
            </element>
            <element name="getSystembenutzer">
                <complexType>
                    <sequence>
                        <element name="header" type="xsd1:Header_T"/>
                        <element name="uId" type="xsd:string"/>
                    </sequence>
                </complexType>
            </element>
            <element name="getSystembenutzerResponse">
                <complexType>
                    <sequence>
                        <element name="return" type="xsd1:Systembenutzer_T"/>
                        <element name="ex" type="xsd1:ArrayOfExDescr_T"/>
                    </sequence>
                </complexType>
            </element>
            <element name="getSystembenutzerDatum">
                <complexType>
                    <sequence>
                        <element name="header" type="xsd1:Header_T"/>
                        <element name="uId" type="xsd:string"/>
                        <element name="vonDatum" type="xsd:string"/>
                        <element name="bisDatum" type="xsd:string"/>
                    </sequence>
                </complexType>
            </element>
            <element name="getSystembenutzerDatumResponse">
                <complexType>
                    <sequence>
                        <element name="return" type="xsd1:Systembenutzer_T"/>
                        <element name="ex" type="xsd1:ArrayOfExDescr_T"/>
                    </sequence>
                </complexType>
            </element>
            <element name="getSystembenutzerListe">
                <complexType>
                    <sequence>
                        <element name="header" type="xsd1:Header_T"/>
                        <element name="orgId" type="xsd:string"/>
                    </sequence>
                </complexType>
            </element>
            <element name="getSystembenutzerListeResponse">
                <complexType>
                    <sequence>
                        <element name="return" 
type="xsd1:ArrayOfSystembenutzer_T"/>
                        <element name="ex" type="xsd1:ArrayOfExDescr_T"/>
                    </sequence>
                </complexType>
            </element>
            <element name="getSystembenutzerListeDatum">
                <complexType>
                    <sequence>
                        <element name="header" type="xsd1:Header_T"/>
                        <element name="orgId" type="xsd:string"/>
                        <element name="vonDatum" type="xsd:string"/>
                        <element name="bisDatum" type="xsd:string"/>
                    </sequence>
                </complexType>
            </element>
            <element name="getSystembenutzerListeDatumResponse">
                <complexType>
                    <sequence>
                        <element name="return" 
type="xsd1:ArrayOfSystembenutzer_T"/>
                        <element name="ex" type="xsd1:ArrayOfExDescr_T"/>
                    </sequence>
                </complexType>
            </element>
            <element name="ping">
                <complexType>
                    <sequence/>
                </complexType>
            </element>
            <element name="pingResponse">
                <complexType>
                    <sequence/>
                </complexType>
            </element>
        </schema>
    </types>
    <message name="getOrgEinheit">
        <part element="tns:getOrgEinheit" name="parameters"/>
    </message>
    <message name="getOrgEinheitResponse">
        <part element="tns:getOrgEinheitResponse" name="parameters"/>
    </message>
    <message name="SystemException">
        <part name="SystemException" type="xsd1:SystemException"/>
    </message>
    <message name="getOrgEinheitDatum">
        <part element="tns:getOrgEinheitDatum" name="parameters"/>
    </message>
    <message name="getOrgEinheitDatumResponse">
        <part element="tns:getOrgEinheitDatumResponse" name="parameters"/>
    </message>
    <message name="getSystembenutzer">
        <part element="tns:getSystembenutzer" name="parameters"/>
    </message>
    <message name="getSystembenutzerResponse">
        <part element="tns:getSystembenutzerResponse" name="parameters"/>
    </message>
    <message name="getSystembenutzerDatum">
        <part element="tns:getSystembenutzerDatum" name="parameters"/>
    </message>
    <message name="getSystembenutzerDatumResponse">
        <part element="tns:getSystembenutzerDatumResponse" name="parameters"/>
    </message>
    <message name="getSystembenutzerListe">
        <part element="tns:getSystembenutzerListe" name="parameters"/>
    </message>
    <message name="getSystembenutzerListeResponse">
        <part element="tns:getSystembenutzerListeResponse" name="parameters"/>
    </message>
    <message name="getSystembenutzerListeDatum">
        <part element="tns:getSystembenutzerListeDatum" name="parameters"/>
    </message>
    <message name="getSystembenutzerListeDatumResponse">
        <part element="tns:getSystembenutzerListeDatumResponse" 
name="parameters"/>
    </message>
    <message name="ping">
        <part element="tns:ping" name="parameters"/>
    </message>
    <message name="pingResponse">
        <part element="tns:pingResponse" name="parameters"/>
    </message>
    <portType name="Berechtigung_1_0PortType">
        <operation name="getOrgEinheit">
            <input message="tns:getOrgEinheit" name="getOrgEinheit"/>
            <output message="tns:getOrgEinheitResponse" 
name="getOrgEinheitResponse"/>
            <fault message="tns:SystemException" name="SystemException"/>
        </operation>
        <operation name="getOrgEinheitDatum">
            <input message="tns:getOrgEinheitDatum" name="getOrgEinheitDatum"/>
            <output message="tns:getOrgEinheitDatumResponse" 
                name="getOrgEinheitDatumResponse"/>
            <fault message="tns:SystemException" name="SystemException"/>
        </operation>
        <operation name="getSystembenutzer">
            <input message="tns:getSystembenutzer" name="getSystembenutzer"/>
            <output message="tns:getSystembenutzerResponse" 
                name="getSystembenutzerResponse"/>
            <fault message="tns:SystemException" name="SystemException"/>
        </operation>
        <operation name="getSystembenutzerDatum">
            <input message="tns:getSystembenutzerDatum" 
name="getSystembenutzerDatum"/>
            <output message="tns:getSystembenutzerDatumResponse" 
                name="getSystembenutzerDatumResponse"/>
            <fault message="tns:SystemException" name="SystemException"/>
        </operation>
        <operation name="getSystembenutzerListe">
            <input message="tns:getSystembenutzerListe" 
name="getSystembenutzerListe"/>
            <output message="tns:getSystembenutzerListeResponse" 
                name="getSystembenutzerListeResponse"/>
            <fault message="tns:SystemException" name="SystemException"/>
        </operation>
        <operation name="getSystembenutzerListeDatum">
            <input message="tns:getSystembenutzerListeDatum" 
                name="getSystembenutzerListeDatum"/>
            <output message="tns:getSystembenutzerListeDatumResponse" 
                name="getSystembenutzerListeDatumResponse"/>
            <fault message="tns:SystemException" name="SystemException"/>
        </operation>
        <operation name="ping">
            <input message="tns:ping" name="ping"/>
            <output message="tns:pingResponse" name="pingResponse"/>
            <fault message="tns:SystemException" name="SystemException"/>
        </operation>
    </portType>
    <binding name="Berechtigung_1_0PortBinding" 
type="tns:Berechtigung_1_0PortType">
        <soap:binding style="rpc" 
transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="getOrgEinheit">
            <soap:operation soapAction="" style="document"/>
            <input name="getOrgEinheit">
                <soap:body use="literal"/>
            </input>
            <output name="getOrgEinheitResponse">
                <soap:body use="literal"/>
            </output>
            <fault name="SystemException">
                <soap:fault 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
                    name="SystemException" 
namespace="http://xmlbus.com/berechtigung" 
                    use="encoded"/>
            </fault>
        </operation>
        <operation name="getOrgEinheitDatum">
            <soap:operation soapAction="" style="document"/>
            <input name="getOrgEinheitDatum">
                <soap:body use="literal"/>
            </input>
            <output name="getOrgEinheitDatumResponse">
                <soap:body use="literal"/>
            </output>
            <fault name="SystemException">
                <soap:fault 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
                    name="SystemException" 
namespace="http://xmlbus.com/berechtigung" 
                    use="encoded"/>
            </fault>
        </operation>
        <operation name="getSystembenutzer">
            <soap:operation soapAction="" style="document"/>
            <input name="getSystembenutzer">
                <soap:body use="literal"/>
            </input>
            <output name="getSystembenutzerResponse">
                <soap:body use="literal"/>
            </output>
            <fault name="SystemException">
                <soap:fault 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
                    name="SystemException" 
namespace="http://xmlbus.com/berechtigung" 
                    use="encoded"/>
            </fault>
        </operation>
        <operation name="getSystembenutzerDatum">
            <soap:operation soapAction="" style="document"/>
            <input name="getSystembenutzerDatum">
                <soap:body use="literal"/>
            </input>
            <output name="getSystembenutzerDatumResponse">
                <soap:body use="literal"/>
            </output>
            <fault name="SystemException">
                <soap:fault 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
                    name="SystemException" 
namespace="http://xmlbus.com/berechtigung" 
                    use="encoded"/>
            </fault>
        </operation>
        <operation name="getSystembenutzerListe">
            <soap:operation soapAction="" style="document"/>
            <input name="getSystembenutzerListe">
                <soap:body use="literal"/>
            </input>
            <output name="getSystembenutzerListeResponse">
                <soap:body use="literal"/>
            </output>
            <fault name="SystemException">
                <soap:fault 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
                    name="SystemException" 
namespace="http://xmlbus.com/berechtigung" 
                    use="encoded"/>
            </fault>
        </operation>
        <operation name="getSystembenutzerListeDatum">
            <soap:operation soapAction="" style="document"/>
            <input name="getSystembenutzerListeDatum">
                <soap:body use="literal"/>
            </input>
            <output name="getSystembenutzerListeDatumResponse">
                <soap:body use="literal"/>
            </output>
            <fault name="SystemException">
                <soap:fault 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
                    name="SystemException" 
namespace="http://xmlbus.com/berechtigung" 
                    use="encoded"/>
            </fault>
        </operation>
        <operation name="ping">
            <soap:operation soapAction="" style="document"/>
            <input name="ping">
                <soap:body use="literal"/>
            </input>
            <output name="pingResponse">
                <soap:body use="literal"/>
            </output>
            <fault name="SystemException">
                <soap:fault 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
                    name="SystemException" 
namespace="http://xmlbus.com/berechtigung" 
                    use="encoded"/>
            </fault>
        </operation>
    </binding>
    <service name="Berechtigung_1_0Service">
        <port binding="tns:Berechtigung_1_0PortBinding" 
name="Berechtigung_1_0Port">
            <soap:address 
                
location="http://chzwin267:4205/omniswitch/berechtigung/Berechtigung_1_0Service/
Berechtigung_1_0Port/"/>
        </port>
    </service>
</definitions>

Mime
View raw message