demo-objects.foxml.local-server-demos.image-manip-demo.bmech_demo_28.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <foxml:digitalObject PID="demo:28" xmlns:METS="http://www.loc.gov/METS/" xmlns:audit="info:fedora/fedora-system:def/audit#" xmlns:fedoraAudit="http://fedora.comm.nsdlib.org/audit" xmlns:foxml="info:fedora/fedora-system:def/foxml#" xmlns:uvalibadmin="http://dl.lib.virginia.edu/bin/admin/admin.dtd" xmlns:uvalibdesc="http://dl.lib.virginia.edu/bin/dtd/descmeta/descmeta.dtd" xmlns:xlink="http://www.w3.org/TR/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/definitions/1/0/foxml1-0.xsd"> <foxml:objectProperties> <foxml:property NAME="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" VALUE="FedoraBMechObject"/> <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="A"/> <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="Behavior Mechanism Object implementing the UVA Simple Image BDEF contract using the UVA MrSID Service."/> <foxml:property NAME="info:fedora/fedora-system:def/model#contentModel" VALUE="fedora:BMECH"/> <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/> </foxml:objectProperties> <foxml:datastream ID="DC" CONTROL_GROUP="X" STATE="A"> <foxml:datastreamVersion ID="DC1.0" MIMETYPE="text/xml" LABEL="Dublin Core Metadata"> <foxml:xmlContent> <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> <dc:title>Behavior Mechanism Object implementing the UVA Simple Image BDEF contract using the UVA MrSID Service.</dc:title> <dc:identifier>demo:28</dc:identifier> </oai_dc:dc> </foxml:xmlContent> </foxml:datastreamVersion> </foxml:datastream> <foxml:datastream ID="WSDL" CONTROL_GROUP="X" STATE="A"> <foxml:datastreamVersion ID="WSDL1.0" MIMETYPE="text/xml" LABEL="WSDL definition for UVA MrSid service"> <foxml:xmlContent> <wsdl:definitions name="CU ImageManipulation Servlet" targetNamespace="ImageManipluation" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap" xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="ImageManipulation" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsdl:types> <xsd:schema targetNamespace="ImageManipulation"> <xsd:simpleType name="urlType"> <xsd:restriction base="xsd:string"/> </xsd:simpleType> <xsd:simpleType name="widthType"> <xsd:restriction base="xsd:integer"/> </xsd:simpleType> <xsd:simpleType name="zoomType"> <xsd:restriction base="xsd:float"/> </xsd:simpleType> <xsd:simpleType name="brightType"> <xsd:restriction base="xsd:float"/> </xsd:simpleType> <xsd:simpleType name="watermarkType"> <xsd:restriction base="xsd:string"/> </xsd:simpleType> <xsd:simpleType name="xType"> <xsd:restriction base="xsd:integer"/> </xsd:simpleType> <xsd:simpleType name="yType"> <xsd:restriction base="xsd:integer"/> </xsd:simpleType> <xsd:simpleType name="heightType"> <xsd:restriction base="xsd:integer"/> </xsd:simpleType> <xsd:simpleType name="convertType"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="gif"/> <xsd:enumeration value="jpg"/> <xsd:enumeration value="tiff"/> <xsd:enumeration value="png"/> <xsd:enumeration value="bmp"/> </xsd:restriction> </xsd:simpleType> </xsd:schema> </wsdl:types> <wsdl:message name="resizeImageRequest"> <wsdl:part name="url" type="this:urlType"/> <wsdl:part name="width" type="this:widthType"/> </wsdl:message> <wsdl:message name="zoomImageRequest"> <wsdl:part name="url" type="this:urlType"/> <wsdl:part name="zoom" type="this:zoomType"/> </wsdl:message> <wsdl:message name="brightImageRequest"> <wsdl:part name="url" type="this:urlType"/> <wsdl:part name="bright" type="this:brightType"/> </wsdl:message> <wsdl:message name="watermarkImageRequest"> <wsdl:part name="url" type="this:urlType"/> <wsdl:part name="watermark" type="this:watermarkType"/> </wsdl:message> <wsdl:message name="grayscaleImageRequest"> <wsdl:part name="url" type="this:urlType"/> </wsdl:message> <wsdl:message name="cropImageRequest"> <wsdl:part name="url" type="this:urlType"/> <wsdl:part name="x" type="this:xType"/> <wsdl:part name="y" type="this:yType"/> <wsdl:part name="width" type="this:widthType"/> <wsdl:part name="height" type="this:heightType"/> </wsdl:message> <wsdl:message name="convertImageRequest"> <wsdl:part name="url" type="this:urlType"/> <wsdl:part name="convert" type="this:convertType"/> </wsdl:message> <wsdl:message name="image_response"> <wsdl:part name="image" type="xsd:base64Binary"/> </wsdl:message> <wsdl:portType name="ImageManipulationPortType"> <wsdl:operation name="resizeImage"> <wsdl:input message="this:resizeImageRequest"/> <wsdl:output message="this:image_response"/> </wsdl:operation> <wsdl:operation name="zoomImage"> <wsdl:input message="this:zoomImageRequest"/> <wsdl:output message="this:image_response"/> </wsdl:operation> <wsdl:operation name="brightImage"> <wsdl:input message="this:brightImageRequest"/> <wsdl:output message="this:image_response"/> </wsdl:operation> <wsdl:operation name="watermarkImage"> <wsdl:input message="this:watermarkImageRequest"/> <wsdl:output message="this:image_response"/> </wsdl:operation> <wsdl:operation name="grayscaleImage"> <wsdl:input message="this:grayscaleImageRequest"/> <wsdl:output message="this:image_response"/> </wsdl:operation> <wsdl:operation name="cropImage"> <wsdl:input message="this:cropImageRequest"/> <wsdl:output message="this:image_response"/> </wsdl:operation> <wsdl:operation name="convertImage"> <wsdl:input message="this:convertImageRequest"/> <wsdl:output message="this:image_response"/> </wsdl:operation> </wsdl:portType> <wsdl:service name="ImageManipulation"> <wsdl:port binding="this:ImageManipulation_http" name="ImageManipulation_port"> <http:address location="http://localhost:8080/imagemanip/"/> </wsdl:port> </wsdl:service> <wsdl:binding name="ImageManipulation_http" type="this:ImageManipulationPortType"> <http:binding verb="GET"/> <wsdl:operation name="resizeImage"> <http:operation location="ImageManipulation?url=(url)&op=resize&newWidth=(width)"/> <wsdl:input> <http:urlReplacement/> </wsdl:input> <wsdl:output> <mime:content type="image/gif"/> <mime:content type="image/jpeg"/> <mime:content type="image/tiff"/> <mime:content type="image/png"/> <mime:content type="image/bmp"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="zoomImage"> <http:operation location="ImageManipulation?url=(url)&op=zoom&zoomAmt=(zoom)"/> <wsdl:input> <http:urlReplacement/> </wsdl:input> <wsdl:output> <mime:content type="image/gif"/> <mime:content type="image/jpeg"/> <mime:content type="image/tiff"/> <mime:content type="image/png"/> <mime:content type="image/bmp"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="brightImage"> <http:operation location="ImageManipulation?url=(url)&op=brightness&brightAmt=(bright)"/> <wsdl:input> <http:urlReplacement/> </wsdl:input> <wsdl:output> <mime:content type="image/gif"/> <mime:content type="image/jpeg"/> <mime:content type="image/tiff"/> <mime:content type="image/png"/> <mime:content type="image/bmp"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="watermarkImage"> <http:operation location="ImageManipulation?url=(url)&op=watermark&wmText=(watermark)"/> <wsdl:input> <http:urlReplacement/> </wsdl:input> <wsdl:output> <mime:content type="image/gif"/> <mime:content type="image/jpeg"/> <mime:content type="image/tiff"/> <mime:content type="image/png"/> <mime:content type="image/bmp"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="grayscaleImage"> <http:operation location="ImageManipulation?url=(url)&op=grayscale"/> <wsdl:input> <http:urlReplacement/> </wsdl:input> <wsdl:output> <mime:content type="image/gif"/> <mime:content type="image/jpeg"/> <mime:content type="image/tiff"/> <mime:content type="image/png"/> <mime:content type="image/bmp"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="cropImage"> <http:operation location="ImageManipulation?url=(url)&op=crop&cropX=(x)&cropY=(y)&cropWidth=(width)&cropHeight=(height)"/> <wsdl:input> <http:urlReplacement/> </wsdl:input> <wsdl:output> <mime:content type="image/gif"/> <mime:content type="image/jpeg"/> <mime:content type="image/tiff"/> <mime:content type="image/png"/> <mime:content type="image/bmp"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="convertImage"> <http:operation location="ImageManipulation?url=(url)&op=convert&convertTo=(convertTo)"/> <wsdl:input> <http:urlReplacement/> </wsdl:input> <wsdl:output> <mime:content type="image/gif"/> <mime:content type="image/jpeg"/> <mime:content type="image/tiff"/> <mime:content type="image/png"/> <mime:content type="image/bmp"/> </wsdl:output> </wsdl:operation> </wsdl:binding> </wsdl:definitions> </foxml:xmlContent> </foxml:datastreamVersion> </foxml:datastream> <foxml:datastream ID="SERVICE-PROFILE" CONTROL_GROUP="X" STATE="A"> <foxml:datastreamVersion ID="SERVICE-PROFILE1.0" MIMETYPE="text/xml" LABEL="Service Profile - Technical description of the service"> <foxml:xmlContent> <fsvp:serviceProfile bDefPID="demo:27" name="ImageManipulation Service" xmlns:fsvp="http://fedora.comm.nsdlib.org/service/profile"> <fsvp:serviceDescription>ImageManipulatoin servlet for providing different functions for manipulation images.</fsvp:serviceDescription> <fsvp:serviceImplementation> <fsvp:serviceLiveTestURL>http://localhost:8080/imagemanip/</fsvp:serviceLiveTestURL> <fsvp:serviceMessagingProtocol>HTTP GET</fsvp:serviceMessagingProtocol> <fsvp:serviceInputFormats> <fsvp:MIMEType>image/gif</fsvp:MIMEType> <fsvp:MIMEType>image/jpeg</fsvp:MIMEType> <fsvp:MIMEType>image/tiff</fsvp:MIMEType> <fsvp:MIMEType>image/png</fsvp:MIMEType> <fsvp:MIMEType>image/bmp</fsvp:MIMEType> </fsvp:serviceInputFormats> <fsvp:serviceOutputFormats> <fsvp:MIMEType>image/gif</fsvp:MIMEType> <fsvp:MIMEType>image/jpeg</fsvp:MIMEType> <fsvp:MIMEType>image/tiff</fsvp:MIMEType> <fsvp:MIMEType>image/png</fsvp:MIMEType> <fsvp:MIMEType>image/bmp</fsvp:MIMEType> </fsvp:serviceOutputFormats> <fsvp:serviceImplDependencies> <fsvp:software license="Sun_Community_Source_License" name="java" opensource="true" type="Programming_Language" version="1.4.1"/> <fsvp:software license="Public_Domain" name="ImageJ" opensource="true" type="Utility_Application" version="1.29"/> <fsvp:software license="Apache_Software_License" name="tomcat" opensource="true" type="Server_Application" version="4.1"/> </fsvp:serviceImplDependencies> </fsvp:serviceImplementation> </fsvp:serviceProfile> </foxml:xmlContent> </foxml:datastreamVersion> </foxml:datastream> <foxml:datastream ID="DSINPUTSPEC" CONTROL_GROUP="X" STATE="A"> <foxml:datastreamVersion ID="DSINPUTSPEC1.0" MIMETYPE="text/xml" LABEL="Datastream Input Specification for UVA MrSID service"> <foxml:xmlContent> <fbs:DSInputSpec bDefPID="demo:27" bMechPID="demo:28" label="CU ImageManipulation Datastream Input Specification" xmlns:fbs="http://fedora.comm.nsdlib.org/service/bindspec"> <fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="url"> <fbs:DSInputLabel>Image URL</fbs:DSInputLabel> <fbs:DSMIME>image/gif</fbs:DSMIME> <fbs:DSMIME>image/jpeg</fbs:DSMIME> <fbs:DSMIME>image/tiff</fbs:DSMIME> <fbs:DSMIME>image/png</fbs:DSMIME> <fbs:DSMIME>image/bmp</fbs:DSMIME> <fbs:DSInputInstruction>URL pointing to an image of type GIF, JPG, or TIF</fbs:DSInputInstruction> </fbs:DSInput> </fbs:DSInputSpec> </foxml:xmlContent> </foxml:datastreamVersion> </foxml:datastream> <foxml:datastream ID="METHODMAP" CONTROL_GROUP="X" STATE="A"> <foxml:datastreamVersion ID="METHODMAP1.0" MIMETYPE="text/xml" LABEL="Mapping of WSDL to Fedora notion of Method Definitions"> <foxml:xmlContent> <fmm:MethodMap bDefPID="demo:27" name="MethodMap - ImageManipulation BMech for CU ImageManipulation BDEF" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap"> <fmm:Method operationName="resizeImage" wsdlMsgName="resizeImageRequest" wsdlMsgOutput="image_response"> <fmm:UserInputParm defaultValue="150" parmName="width" passBy="VALUE" required="true"/> <fmm:DatastreamInputParm parmName="url" passBy="URL_REF"/> <fmm:MethodReturnType wsdlMsgName="image_response" wsdlMsgTOMIME="image/gif"/> </fmm:Method> <fmm:Method operationName="zoomImage" wsdlMsgName="zoomImageRequest" wsdlMsgOutput="image_response"> <fmm:UserInputParm defaultValue="3" parmName="zoom" passBy="VALUE" required="true"/> <fmm:DatastreamInputParm parmName="url" passBy="URL_REF"/> <fmm:MethodReturnType wsdlMsgName="image_response" wsdlMsgTOMIME="image/gif"/> </fmm:Method> <fmm:Method operationName="brightImage" wsdlMsgName="brightImageRequest" wsdlMsgOutput="image_response"> <fmm:UserInputParm defaultValue="3.5" parmName="bright" passBy="VALUE" required="true"/> <fmm:DatastreamInputParm parmName="url" passBy="URL_REF"/> <fmm:MethodReturnType wsdlMsgName="image_response" wsdlMsgTOMIME="image/gif"/> </fmm:Method> <fmm:Method operationName="watermarkImage" wsdlMsgName="watermarkImageRequest" wsdlMsgOutput="image_response"> <fmm:UserInputParm defaultValue="Watermarked 2003" parmName="watermark" passBy="VALUE" required="true"/> <fmm:DatastreamInputParm parmName="url" passBy="URL_REF"/> <fmm:MethodReturnType wsdlMsgName="image_response" wsdlMsgTOMIME="image/gif"/> </fmm:Method> <fmm:Method operationName="grayscaleImage" wsdlMsgName="grayscaleImageRequest" wsdlMsgOutput="image_response"> <fmm:DatastreamInputParm parmName="url" passBy="URL_REF"/> <fmm:MethodReturnType wsdlMsgName="image_response" wsdlMsgTOMIME="image/gif"/> </fmm:Method> <fmm:Method operationName="cropImage" wsdlMsgName="cropImageRequest" wsdlMsgOutput="image_response"> <fmm:UserInputParm defaultValue="30" parmName="x" passBy="VALUE" required="true"/> <fmm:UserInputParm defaultValue="100" parmName="y" passBy="VALUE" required="true"/> <fmm:UserInputParm defaultValue="" parmName="width" passBy="VALUE" required="false"/> <fmm:UserInputParm defaultValue="" parmName="height" passBy="VALUE" required="false"/> <fmm:DatastreamInputParm parmName="url" passBy="URL_REF"/> <fmm:MethodReturnType wsdlMsgName="image_response" wsdlMsgTOMIME="image/gif"/> </fmm:Method> <fmm:Method operationName="convertImage" wsdlMsgName="convertImageRequest" wsdlMsgOutput="image_response"> <fmm:UserInputParm defaultValue="gif" parmName="convertTo" passBy="VALUE" required="true"> <fmm:ValidParmValues> <fmm:ValidParm value="gif"/> <fmm:ValidParm value="jpg"/> <fmm:ValidParm value="tiff"/> <fmm:ValidParm value="png"/> <fmm:ValidParm value="bmp"/> </fmm:ValidParmValues> </fmm:UserInputParm> <fmm:DatastreamInputParm parmName="url" passBy="URL_REF"/> <fmm:MethodReturnType wsdlMsgName="image_response" wsdlMsgTOMIME="image/gif"/> </fmm:Method> </fmm:MethodMap> </foxml:xmlContent> </foxml:datastreamVersion> </foxml:datastream> <foxml:datastream ID="DS1" CONTROL_GROUP="E" STATE="A"> <foxml:datastreamVersion ID="DS1.0" MIMETYPE="text/html" LABEL="See binding URL in XML source"> <foxml:contentLocation REF="http://www.seebindingurlinstead.com/" TYPE="URL"/> </foxml:datastreamVersion> </foxml:datastream> <foxml:disseminator ID="DISS1" BDEF_CONTRACT_PID="fedora-system:1" STATE="A"> <foxml:disseminatorVersion ID="DISS1.0" BMECH_SERVICE_PID="fedora-system:2" LABEL="Bootstrap Behaviors"> <foxml:serviceInputMap> <foxml:datastreamBinding DATASTREAM_ID="SERVICE-PROFILE" KEY="SERVICE-PROFILE" LABEL="Service profile metadata"/> <foxml:datastreamBinding DATASTREAM_ID="DSINPUTSPEC" KEY="FEDORA-TO-WSDL-DSINPUTSPEC" LABEL="XML data that serves describes the requirements for Datastreams that will be used as input to the service"/> <foxml:datastreamBinding DATASTREAM_ID="METHODMAP" KEY="FEDORA-TO-WSDL-METHODMAP" LABEL="XML data that enables FEDORA to understand how to use the service WSDL"/> <foxml:datastreamBinding DATASTREAM_ID="WSDL" KEY="WSDL" LABEL="Service definitions in WSDL format"/> <foxml:datastreamBinding DATASTREAM_ID="DS1" KEY="PROGGUIDE" LABEL="The Programmer's user guide for using the service"/> </foxml:serviceInputMap> </foxml:disseminatorVersion> </foxml:disseminator> </foxml:digitalObject>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy