<?xml version="1.0" encoding="ISO-8859-1"?>
<rdf:RDF
  xmlns:service="http://www.daml.org/services/daml-s/0.7/Service.daml#"
  xmlns:process="http://www.daml.org/services/daml-s/0.7/Process.daml#"
  xmlns:profile="http://www.daml.org/services/daml-s/0.7/Profile.daml#"
  xmlns:grounding="http://www.daml.org/services/daml-s/0.7/Grounding.daml#"
  xmlns:fla="http://www.flacp.fujitsulabs.com/~mhgrove/services/FLACP-ServiceOnt.daml#"
  xmlns:daml="http://www.daml.org/2001/03/daml+oil#"
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  
>

<!-- Service description -->

<service:Service rdf:ID="getPhotoService">
  <service:presents rdf:resource="#getPhotoProfile" />  
  <service:describedBy rdf:resource="#getPhotoProcessModel" />  
  <service:supports rdf:resource="#getPhotoGrounding" />
</service:Service>

<!-- Profile description -->

<profile:Profile rdf:ID="getPhotoProfile">       
  <service:isPresentedBy rdf:resource="#getPhotoService"/>
  <profile:textDescription></profile:textDescription>
  <profile:serviceName>getPhoto</profile:serviceName>

  <profile:input> 
    <profile:ParameterDescription rdf:ID="profileInput"> 
      <profile:parameterName>addressInput</profile:parameterName>
      <profile:restrictedTo rdf:resource="http://www.flacp.fujitsulabs.com/~mhgrove/services/contactOnt.daml#Address"/>
      <profile:refersTo rdf:resource="#processInput"/>
    </profile:ParameterDescription>
  </profile:input>
  
  <profile:output> 
    <profile:ParameterDescription rdf:ID="profileOutput"> 
      <profile:parameterName>photoOutput</profile:parameterName>
      <profile:restrictedTo rdf:resource="http://www.flacp.fujitsulabs.com/~mhgrove/services/FLACP-ServiceOnt.daml#WebPage"/>
      <profile:refersTo rdf:resource="#processOutput"/>
    </profile:ParameterDescription>
  </profile:output>

</profile:Profile>

<!-- Process Model description -->

<process:ProcessModel rdf:ID="getPhotoProcessModel">
  <service:describes rdf:resource="#getPhotoService" /> 
  <process:hasProcess rdf:resource="#getPhotoProcess" /> 
</process:ProcessModel>

<daml:Class rdf:ID="getPhotoProcess">
  <rdfs:subClassOf rdf:resource="http://www.daml.org/services/daml-s/0.7/Process.daml#AtomicProcess" /> 
  <rdfs:subClassOf>
    <daml:Restriction daml:cardinality="1">
      <daml:onProperty rdf:resource="#processInput" /> 
    </daml:Restriction>
  </rdfs:subClassOf>  
</daml:Class>

<rdf:Property rdf:ID="processInput">
  <rdfs:subPropertyOf rdf:resource="http://www.daml.org/services/daml-s/0.7/Process.daml#input" /> 
  <rdfs:domain rdf:resource="#getPhotoProcess" /> 
  <rdfs:range rdf:resource="http://www.flacp.fujitsulabs.com/~mhgrove/services/contactOnt.daml#Address"/>
</rdf:Property>

<rdf:Property rdf:ID="processOutput">
  <rdfs:subPropertyOf rdf:resource="http://www.daml.org/services/daml-s/0.7/Process.daml#output" /> 
  <rdfs:domain rdf:resource="#getPhotoProcess" /> 
  <rdfs:range rdf:resource="http://www.flacp.fujitsulabs.com/~mhgrove/services/FLACP-ServiceOnt.daml#WebPage"/>
</rdf:Property>

<!-- Grounding description -->

<grounding:WsdlGrounding rdf:ID="getPhotoGrounding">
  <service:supportedBy rdf:resource="#getPhotoService" />
  <grounding:hasAtomicProcessGrounding rdf:resource="#getPhotoProcessGrounding" /> 
</grounding:WsdlGrounding> 

<grounding:WsdlAtomicProcessGrounding rdf:ID="getPhotoProcessGrounding"> 
  <grounding:damlsProcess rdf:resource="#getPhotoProcess"/>
  <grounding:wsdlOperation rdf:resource="getPhoto"/>

  <grounding:wsdlInputMessage rdf:resource="getPhotoRequest"/>
  <grounding:wsdlInputMessageParts rdf:parseType="daml:collection">
	<grounding:wsdlMessageMap>
      <grounding:damlsParameter rdf:resource="#processInput"/>
      <grounding:wsdlMessagePart rdf:resource="in0"/>
<fla:xsltTransformation rdf:parseType="Literal"><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:contactOnt="http://www.flacp.fujitsulabs.com/~mhgrove/services/contactOnt.daml#">  <xsl:template match="/">  <root> <xsl:variable name="X1" select="//contactOnt:StreetAddress"/> <street> 	<xsl:value-of select="$X1"/> </street> <xsl:variable name="X2" select="//contactOnt:City"/> <city> 	<xsl:value-of select="$X2"/> </city> <xsl:variable name="X3" select="//contactOnt:ZipCode"/> <zipCode> 	<xsl:value-of select="$X3"/> </zipCode> <xsl:variable name="X4" select="//contactOnt:State"/> <state> 	<xsl:value-of select="$X4"/> </state>  </root>   </xsl:template> </xsl:stylesheet></fla:xsltTransformation>
    </grounding:wsdlMessageMap>
  </grounding:wsdlInputMessageParts>

  <grounding:wsdlOutputMessage rdf:resource="getPhotoResponse"/>
  <grounding:wsdlOutputMessageParts rdf:parseType="daml:collection">
	<grounding:wsdlMessageMap>
      <grounding:damlsParameter rdf:resource="#processOutput"/>
      <grounding:wsdlMessagePart rdf:resource="return"/> 
<fla:xsltTransformation rdf:parseType="Literal">null</fla:xsltTransformation>
	</grounding:wsdlMessageMap>  
  </grounding:wsdlOutputMessageParts>

  <grounding:wsdlReference>http://www.w3.org/TR/2001/NOTE-wsdl-20010315</grounding:wsdlReference>
  <grounding:otherReference>http://www.w3.org/TR/2001/NOTE-wsdl-20010315 http://schemas.xmlsoap.org/wsdl/soap/ http://schemas.xmlsoap.org/soap/http/</grounding:otherReference>
  <grounding:wsdlDocument>http://www.mindswap.org/services/AddressPhotoService.wsdl</grounding:wsdlDocument>
</grounding:WsdlAtomicProcessGrounding>

</rdf:RDF>
