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/08/22 21:52:59 UTC

Return DOM Document as xsd any or anyType?

I have a service that returns a Document, it's returning as a multiRef
(I've attached the response/request below). I can't seem to figure out
how/if it can be mapped as xsd any or anyType. Is there a different
standard? I'm seeing a lot of conflicting information on best practices.

<============= REQUEST ==============>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<SOAP-ENV:Header>
		<wsse:Security
xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext"> 
			<wsse:UsernameToken>
				<wsse:Username>user</wsse:Username>
				<wsse:Password>pass</wsse:Password>
			</wsse:UsernameToken>
		</wsse:Security>
	</SOAP-ENV:Header>
	<SOAP-ENV:Body>
		<m:getDirectoryDefinitionRuleByLocationName
xmlns:m="urn:PolicyManagerService"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
			<location
xsi:type="xsd:string">location1</location>
		</m:getDirectoryDefinitionRuleByLocationName>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


<============= RESPONSE ==============>
<?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:getDirectoryDefinitionRuleByLocationNameResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="urn:PolicyManagerService">
			<getDirectoryDefinitionRuleByLocationNameReturn
href="#id0"/>
		</ns1:getDirectoryDefinitionRuleByLocationNameResponse>
		<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns2:Document"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="http://xml.apache.org/xml-soap">
			<directory_definition_rule>
				<location>
					<id>1</id>
					<directoryID>1</directoryID>
					<categoryID>1</categoryID>
					<name>location1</name>
					<description>location
description1</description>
					<address>100 main
street</address>
					<cityID>1</cityID>
					<city>
						<name>Sample City</name>
					</city>
					<country>
						<code>ZZ</code>
					</country>
					<state>
						<code>YY</code>
					</state>
					<locationCategory>
						<id>1</id>
						<name>Hotel</name>
					</locationCategory>
				</location>
				<id>1</id>
				<description>rule1</description>
				<effectiveStart>11-21-2005
6:19:07</effectiveStart>
				<effectiveEnd>11-23-2005 6:00:00
PM</effectiveEnd>
			</directory_definition_rule>
		</multiRef>
	</soapenv:Body>
</soapenv:Envelope>