You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Bell, Douglas" <DB...@boingo.com> on 2005/09/01 01:35:34 UTC

AXIS, SOAP::Lite and Arrays

Hello Everyone,

I'm having a issue with SOAP::Lite and Arrays. 

The following struct (which works great with a Java client, XMLSpy,
etc..) Is choking on getRulesReturn being both the name of the arrayType
and the array return. Any ideas? I've attached a sample of the return
below.

Thanks,

Doug


<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<soapenv:Body>
		<ns1:getRulesResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="urn:PolicyManagerService">
			<getRulesReturn
soapenc:arrayType="ns2:DirectoryDefinitionRule[1]"
xsi:type="soapenc:Array" xmlns:ns2="urn:DirectoryDefinitionRule"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
				<getRulesReturn
xsi:type="ns2:DirectoryDefinitionRule">
					<acl xsi:type="ns3:ACL"
xsi:nil="true" xmlns:ns3="urn:ACL"/>
					<address
xsi:type="soapenc:string">100 main street</address>
					<aggergateID
xsi:type="soapenc:string" xsi:nil="true"/>
					<city xsi:type="ns4:City"
xmlns:ns4="urn:City">
						<id
xsi:type="soapenc:string" xsi:nil="true"/>
						<name
xsi:type="soapenc:string">santa monica</name>
					</city>
					<country xsi:type="ns5:Country"
xmlns:ns5="urn:Country">
						<code
xsi:type="soapenc:string">us</code>
						<id
xsi:type="soapenc:string" xsi:nil="true"/>
						<name
xsi:type="soapenc:string">united states</name>
					</country>
					<createTime
xsi:type="soapenc:string">2005-08-29</createTime>
					<description
xsi:type="soapenc:string">location description1</description>
					<effectiveEnd
xsi:type="soapenc:string" xsi:nil="true"/>
					<effectiveStart
xsi:type="soapenc:string" xsi:nil="true"/>
					<id
xsi:type="soapenc:string">0003fa9f7ba4-6a30-1028-b785-000f</id>
					<locationCategory
xsi:type="ns6:LocationCategory" xmlns:ns6="urn:LocationCategory">
						<id
xsi:type="soapenc:string">1</id>
						<name
xsi:type="soapenc:string">hotel</name>
					</locationCategory>
					<mapURL
xsi:type="soapenc:string"/>
					<modifyTime
xsi:type="soapenc:string" xsi:nil="true"/>
					<modifyUser
xsi:type="soapenc:string" xsi:nil="true"/>
					<name
xsi:type="soapenc:string">location1</name>
					<phoneNumber
xsi:type="soapenc:string">555-1212</phoneNumber>
					<publishTime
xsi:type="soapenc:string" xsi:nil="true"/>
					<state xsi:type="ns7:State"
xmlns:ns7="urn:State">
						<code
xsi:type="soapenc:string">ca</code>
						<id
xsi:type="soapenc:string" xsi:nil="true"/>
						<name
xsi:type="soapenc:string">california</name>
					</state>
					<versionNumber
xsi:type="soapenc:string" xsi:nil="true"/>
					<zipcode
xsi:type="soapenc:string">90210</zipcode>
				</getRulesReturn>
			</getRulesReturn>
		</ns1:getRulesResponse>
	</soapenv:Body>
</soapenv:Envelope>