cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shaw, Richard A" <richard.s...@atkinsglobal.com>
Subject Null parameter list in operation
Date Fri, 22 Sep 2006 01:17:24 GMT
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>


Richard Shaw

¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤

Richard Shaw  
Technical Design Authority - Information Solutions Consultancy  
Intelligent Transport Systems 

Atkins Highways and Transportation 
Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW

Tel: +44 (0) 1372 756407 
Fax: +44 (0) 1372 740055
Mob: 07740 817586 
E-mail: richard.shaw@atkinsglobal.com

www.atkinsglobal.com/its



This email and any attached files are confidential and copyright protected. If you are not
the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise
expressly agreed in writing, nothing stated in this communication shall be legally binding.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message