<?xml version="1.0" ?> 
<!-- Root element and namespaces -->
<definitions name="SemanticCluster" 
	targetNamespace="urn:SemanticCluster" 
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
	xmlns:tns="urn:SemanticCluster" 
	xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
	xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 
	xmlns="http://schemas.xmlsoap.org/wsdl/">

<types> 
	<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema/" 
		targetNamespace="http://metascholar3.library.emory.edu/thesis/webservices/server/output">
	<xsd:import namespace="http://metascholar3.library.emory.edu/thesis/webservices/server/output"
		schemaLocation= "http://metascholar3.library.emory.edu/server/clusteroutput.xsd"/>
	</xsd:schema>

</types> 

<!-- BEGIN ABSTRACT DEFINITIONS -->

<!-- Begin PortType Definitions -->
<!-- Operation specification, its argument and return value messages -->

<portType name="SemanticClusterPort">
	<operation name="cluster">
		<input message="tns:clusterRequest" /> 
		<output message="tns:clusterResponse" /> 
	</operation>
</portType>
<!-- End PortType Definitions -->

<!-- END ABSTRACT DEFINITIONS -->

<!-- BEGIN CONCRETE DEFINITIONS -->

<!-- Begin Bindings -->
<binding name="SemanticClusterBinding" type="tns:SemanticClusterPort">
	<!-- SOAP style and transport protocol -->
	<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /> 
	<!-- Operation to be used -->
	<operation name="cluster">
		<soap:operation soapAction="http://schemas.xmlsoap.org/soap/envelope/#semanticcluster#cluster" /> 
		<!-- Inout and output SOAP messeages -->
		<input>
			<soap:body use="encoded" namespace="http://schemas.xmlsoap.org/soap/envelope/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
		</input>
		<output>
			<soap:body use="encoded" namespace="http://schemas.xmlsoap.org/soap/envelope/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
		</output>
	</operation>
</binding>
<!-- End Bindings -->

<!-- Begin Service Definition -->
<service name="SemanticClusterService">
<documentation>Web Service Interface to NMF Clustering System </documentation> 
<port name="SemanticClusterPort" binding="tns:SemanticClusterBinding">
	<!-- SOAP listeners for the port -->
	<soap:address location="http://metascholar3.library.emory.edu/server/cluster-server.php" /> 
</port>
</service>
<!-- End Service Definition -->
<!-- Begin Message Definitions -->

<!-- Incoming request message -->
<message name="clusterRequest">

	<!-- Data Repository URL  -->
	<!-- Example :  http://brokert8.fcla.edu/cgi/b/broker/broker -->
	<part name="baseurl" type="xsd:string" /> 

	<!-- Clustering fields (title,subject,desc) seperated by ',' -->
	<!-- Example " subject,title   -->
	<part name="fields" type="xsd:string" /> 

	<!-- f/h (f:flat clustering mode, h: hierchical clustering mode) -->
	<part name="htype" type="xsd:string" /> 

	<!-- Semantic Clustering parameters -->
	<part name="cfields" type="xsd:string" /> 
</message>

<!-- Outgoing request message -->
<message name="clusterResponse">

	<!-- program success/failure status code -->
	<part name="result" type="xsd:integer" /> 
	<!-- Semantic clustering output -->
	<part name="contents" type="xsd:clustering" /> 
</message>

<!-- END CONCRETE DEFINITION -->
</definitions>
