NPE issue in WSActionAnnotator
------------------------------

                 Key: CXF-1209
                 URL: https://issues.apache.org/jira/browse/CXF-1209
             Project: CXF
          Issue Type: Sub-task
          Components: Tooling
    Affects Versions: 2.0.2
            Reporter: jimma
            Assignee: jimma
             Fix For: 2.1


WSActionAnnotator will throw NPE exception when process the flowing wsdl :

-----------------wsdl -------------------------

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/";
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
    xmlns:tns="http://apache.org/hello_world_soap_http";
    xmlns:x1="http://apache.org/hello_world_soap_http/types";
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
    xmlns:xsd="http://www.w3.org/2001/XMLSchema";
    xmlns:wswa="http://www.w3.org/2006/05/addressing/wsdl";
    targetNamespace="http://apache.org/hello_world_soap_http"; 
name="HelloWorldFault">
    <wsdl:types>
        <schema targetNamespace="http://apache.org/hello_world_soap_http/types"; 
xmlns="http://www.w3.org/2001/XMLSchema"; 
xmlns:x1="http://apache.org/hello_world_soap_http/types"; 
elementFormDefault="qualified">
            <element name="BareDocument" type="string"/>
            <element name="BareDocumentResponse">
                <complexType>
                    <sequence>
                        <element name="company" type="string"/>
                    </sequence>
                    <attribute name="id" type="int"/>
                </complexType>
            </element> 

            <element name="BadRecordLit" type="string"/>
            <complexType name="BadRecord">
                <sequence>
                    <element name="reason" type="string"/>
                    <element name="code" type="short"/>
                </sequence>
            </complexType>      
        </schema>
    </wsdl:types>

    <wsdl:message name="Bad_RecordLit_Fault">
        <wsdl:part name="BadRecordLit" element="x1:BadRecordLit"/>
    </wsdl:message>
    <wsdl:message name="testDocLitBareRequest">
        <wsdl:part name="in" element="x1:BareDocument"/>
    </wsdl:message>
    <wsdl:message name="testDocLitBareResponse">
        <wsdl:part name="out" element="x1:BareDocumentResponse"/>
    </wsdl:message> 
    
    <wsdl:portType name="Greeter">
        <wsdl:operation name="testDocLitFault">
            <wsdl:input message="tns:testDocLitBareRequest" 
wswa:Action="http://apache.org/hello_world_soap_http/Fault"/>
            <wsdl:output message="tns:testDocLitBareResponse" 
wswa:Action="http://apache.org/hello_world_soap_http/Fault"/>
            <wsdl:fault name="myfault" message="tns:Bad_RecordLit_Fault" 
wswa:Action="http://apache.org/hello_world_soap_http/Fault"/>
        </wsdl:operation>       
    </wsdl:portType>
    
    <wsdl:binding name="Greeter_SOAPBinding" type="tns:Greeter">
        <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>

        <wsdl:operation name="testDocLitFault">
            <soap:operation style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
            <wsdl:fault name="myfault">
                <soap:fault name="myfault" use="literal"/>
            </wsdl:fault>
        </wsdl:operation>

    </wsdl:binding>
    <wsdl:service name="SOAPService">
        <wsdl:port name="SoapPort" binding="tns:Greeter_SOAPBinding">
            <soap:address 
location="http://localhost:9000/SoapContext/SoapPort"/>
            <wswa:UsingAddressing/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to