[ http://issues.apache.org/jira/browse/CXF-119?page=all ]
jimma resolved CXF-119.
-----------------------
Resolution: Fixed
> Empty request elements causes NPE
> ---------------------------------
>
> Key: CXF-119
> URL: http://issues.apache.org/jira/browse/CXF-119
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.0-RC
> Reporter: Dan Diephouse
> Assigned To: jimma
> Fix For: 2.0-RC
>
>
> From the mailing list:
> If I define a null parameter list to my operation in the WSDL file then I get
> an ArrayIndexOutOfBounds exception in BarOutInterceptor (if I change to soap
> it happens in SoapOutInterceptor) because there are no parts.
> My WSDL is defined like this because Celtix wouldn't work otherwise.
> Do I have to create my wsdl file in a different fashion, or is this a bug
> My WSDL file is listed below.
> Thanks
> <?xml version="1.0" encoding="UTF-8"?>
> <!--WSDL file template-->
> <!--Created by IONA Artix Designer-->
> <definitions name="ftptest.wsdl"
> targetNamespace="http://www.atkinsglobal.com/mosaic/ftptransport"
> xmlns="http://schemas.xmlsoap.org/wsdl/"
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:tns="http://www.atkinsglobal.com/mosaic/ftptransport"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:x1="http://www.atkinsglobal.com/mosaic/ftptransport/types"
> xmlns:xformat="http://cxf.apache.org/bindings/xformat"
> xmlns:ftp="http://cxf.apache.org/transports/ftp"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <types>
> <schema attributeFormDefault="unqualified"
> elementFormDefault="qualified"
>
> targetNamespace="http://www.atkinsglobal.com/mosaic/ftptransport/types"
> xmlns="http://www.w3.org/2001/XMLSchema"
>
> xmlns:x1="http://www.atkinsglobal.com/mosaic/ftptransport/types"
> xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <element name="LoadTestData">
> <complexType>
> </complexType>
> </element>
> <element name="TestData">
> <complexType>
> <sequence>
> <element name="sample"
> maxOccurs="unbounded">
> <complexType>
> <sequence>
>
> <element name="a" type="xsd:string" />
>
> <element name="b" type="xsd:string" />
>
> <element name="c" type="xsd:string" />
> </sequence>
> </complexType>
> </element>
> </sequence>
> </complexType>
> </element>
> <element name="TestDataFaultResponse">
> <complexType>
> <sequence>
> <element name="faultInfo"
> type="xsd:string" />
> </sequence>
> </complexType>
> </element>
> </schema>
> </types>
> <wsdl:message name="LoadTestData">
> <wsdl:part name="LoadTestData"
> element="x1:LoadTestData"></wsdl:part>
> </wsdl:message>
> <wsdl:message name="TestData">
> <wsdl:part name="TestData" element="x1:TestData"></wsdl:part>
> </wsdl:message>
> <wsdl:message name="TestDataFault">
> <wsdl:part name="TestDataFault"
> element="x1:TestDataFaultResponse"></wsdl:part>
> </wsdl:message>
> <portType name="LoadTestDataI">
> <operation name="LoadTestData">
> <input message="tns:LoadTestData" name="LoadTestData" />
> <output message="tns:TestData" name="TestData" />
> <fault message="tns:TestDataFault" name="TestDataFault"
> />
> </operation>
> </portType>
> <binding name="LoadTestDataISOAPBinding" type="tns:LoadTestDataI">
> <xformat:binding/>
> <operation name="LoadTestData">
> <ftp:address
> location="file:///D:/cxf-deployment/workspace/FTPTransport/test/test.xml" /
> <ftp:address location=> >
> <input name="LoadTestData"></input>
> <output name="TestData"></output>
> <fault name="TestDataFault"></fault>
> </operation>
> </binding>
> <service name="LoadTestDataService">
> <port binding="tns:LoadTestDataISOAPBinding"
> name="LoadTestDataPort">
> <ftp:address
> location="file:///D:/cxf-deployment/workspace/FTPTransport/test/fail.xml" /
> <ftp:address location=> >
> </port>
> </service>
> </definitions>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira