<?xml version="1.0"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.silverstripe.org/SOAPModelAccess/wsdl"
targetNamespace="http://www.silverstripe.org/SOAPModelAccess/wsdl">
	
	<message name="getXMLRequest" targetNamespace="http://www.silverstripe.org/">
		
		<part name="class" type="xsd:string"/>
		
		<part name="id" type="xsd:int"/>
		
		<part name="relation" type="xsd:string"/>
		
	</message>
	<message name="getXMLResponse" targetNamespace="http://www.silverstripe.org/">
		<part name="getXMLReturn" type="xsd:string" />
	</message>
	
	<message name="getJSONRequest" targetNamespace="http://www.silverstripe.org/">
		
		<part name="class" type="xsd:string"/>
		
		<part name="id" type="xsd:int"/>
		
		<part name="relation" type="xsd:string"/>
		
	</message>
	<message name="getJSONResponse" targetNamespace="http://www.silverstripe.org/">
		<part name="getJSONReturn" type="xsd:string" />
	</message>
	
	<message name="putXMLRequest" targetNamespace="http://www.silverstripe.org/">
		
		<part name="class" type="xsd:string"/>
		
		<part name="id" type="xsd:int"/>
		
		<part name="relation" type="xsd:string"/>
		
		<part name="data" type="xsd:string"/>
		
		<part name="username" type="xsd:string"/>
		
		<part name="password" type="xsd:string"/>
		
	</message>
	<message name="putXMLResponse" targetNamespace="http://www.silverstripe.org/">
		<part name="putXMLReturn" type="xsd:boolean" />
	</message>
	
	<message name="putJSONRequest" targetNamespace="http://www.silverstripe.org/">
		
		<part name="class" type="xsd:string"/>
		
		<part name="id" type="xsd:int"/>
		
		<part name="relation" type="xsd:string"/>
		
	</message>
	<message name="putJSONResponse" targetNamespace="http://www.silverstripe.org/">
		<part name="putJSONReturn" type="xsd:boolean" />
	</message>
	

	<portType name="SapphireSOAP_methodsPortType">
		
		<operation name="getXML">
			<input message="tns:getXMLRequest"/>
			<output message="tns:getXMLResponse"/>
		</operation>
		
		<operation name="getJSON">
			<input message="tns:getJSONRequest"/>
			<output message="tns:getJSONResponse"/>
		</operation>
		
		<operation name="putXML">
			<input message="tns:putXMLRequest"/>
			<output message="tns:putXMLResponse"/>
		</operation>
		
		<operation name="putJSON">
			<input message="tns:putJSONRequest"/>
			<output message="tns:putJSONResponse"/>
		</operation>
		
	</portType>
	<binding name="SapphireSOAP_methodsBinding" type="tns:SapphireSOAP_methodsPortType">
		<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
		
		<operation name="getXML">
			<soap:operation soapAction="http://www.silverstripe.org/SOAPModelAccess/?method=getXML" style="rpc"/>
			<input>
				<soap:body use="encoded" namespace="http://www.silverstripe.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			</input>
			<output>
				<soap:body use="encoded" namespace="http://www.silverstripe.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			</output>
		</operation>
		
		<operation name="getJSON">
			<soap:operation soapAction="http://www.silverstripe.org/SOAPModelAccess/?method=getJSON" style="rpc"/>
			<input>
				<soap:body use="encoded" namespace="http://www.silverstripe.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			</input>
			<output>
				<soap:body use="encoded" namespace="http://www.silverstripe.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			</output>
		</operation>
		
		<operation name="putXML">
			<soap:operation soapAction="http://www.silverstripe.org/SOAPModelAccess/?method=putXML" style="rpc"/>
			<input>
				<soap:body use="encoded" namespace="http://www.silverstripe.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			</input>
			<output>
				<soap:body use="encoded" namespace="http://www.silverstripe.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			</output>
		</operation>
		
		<operation name="putJSON">
			<soap:operation soapAction="http://www.silverstripe.org/SOAPModelAccess/?method=putJSON" style="rpc"/>
			<input>
				<soap:body use="encoded" namespace="http://www.silverstripe.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			</input>
			<output>
				<soap:body use="encoded" namespace="http://www.silverstripe.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			</output>
		</operation>
		
	</binding>
	<service name="SapphireSOAP_methods">
		<port name="SapphireSOAP_methodsPort" binding="tns:SapphireSOAP_methodsBinding">
			<soap:address location="http://www.silverstripe.org/SOAPModelAccess/" />
		</port>
	</service>
</definitions>

