
<wsdl:definitions 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" name="CUImageManipulationServlet" targetNamespace="ImageManipluation">
                    <wsdl:types>
                        <xsd:schema targetNamespace="ImageManipulation">
                            <xsd:simpleType name="urlType">
                                <xsd:restriction base="xsd:string"></xsd:restriction>
                            </xsd:simpleType>
                            <xsd:simpleType name="widthType">
                                <xsd:restriction base="xsd:integer"></xsd:restriction>
                            </xsd:simpleType>
                            <xsd:simpleType name="zoomType">
                                <xsd:restriction base="xsd:float"></xsd:restriction>
                            </xsd:simpleType>
                            <xsd:simpleType name="brightType">
                                <xsd:restriction base="xsd:float"></xsd:restriction>
                            </xsd:simpleType>
                            <xsd:simpleType name="watermarkType">
                                <xsd:restriction base="xsd:string"></xsd:restriction>
                            </xsd:simpleType>
                            <xsd:simpleType name="xType">
                                <xsd:restriction base="xsd:integer"></xsd:restriction>
                            </xsd:simpleType>
                            <xsd:simpleType name="yType">
                                <xsd:restriction base="xsd:integer"></xsd:restriction>
                            </xsd:simpleType>
                            <xsd:simpleType name="heightType">
                                <xsd:restriction base="xsd:integer"></xsd:restriction>
                            </xsd:simpleType>
                            <xsd:simpleType name="convertType">
                                <xsd:restriction base="xsd:string">
                                    <xsd:enumeration value="gif"></xsd:enumeration>
                                    <xsd:enumeration value="jpg"></xsd:enumeration>
                                    <xsd:enumeration value="tiff"></xsd:enumeration>
                                    <xsd:enumeration value="png"></xsd:enumeration>
                                    <xsd:enumeration value="bmp"></xsd:enumeration>
                                </xsd:restriction>
                            </xsd:simpleType>
                        </xsd:schema>
                    </wsdl:types>
                    <wsdl:message name="resizeImageRequest">
                        <wsdl:part name="url" type="this:urlType"></wsdl:part>
                        <wsdl:part name="width" type="this:widthType"></wsdl:part>
                    </wsdl:message>
                    <wsdl:message name="zoomImageRequest">
                        <wsdl:part name="url" type="this:urlType"></wsdl:part>
                        <wsdl:part name="zoom" type="this:zoomType"></wsdl:part>
                    </wsdl:message>
                    <wsdl:message name="brightImageRequest">
                        <wsdl:part name="url" type="this:urlType"></wsdl:part>
                        <wsdl:part name="bright" type="this:brightType"></wsdl:part>
                    </wsdl:message>
                    <wsdl:message name="watermarkImageRequest">
                        <wsdl:part name="url" type="this:urlType"></wsdl:part>
                        <wsdl:part name="watermark" type="this:watermarkType"></wsdl:part>
                    </wsdl:message>
                    <wsdl:message name="grayscaleImageRequest">
                        <wsdl:part name="url" type="this:urlType"></wsdl:part>
                    </wsdl:message>
                    <wsdl:message name="cropImageRequest">
                        <wsdl:part name="url" type="this:urlType"></wsdl:part>
                        <wsdl:part name="x" type="this:xType"></wsdl:part>
                        <wsdl:part name="y" type="this:yType"></wsdl:part>
                        <wsdl:part name="width" type="this:widthType"></wsdl:part>
                        <wsdl:part name="height" type="this:heightType"></wsdl:part>
                    </wsdl:message>
                    <wsdl:message name="convertImageRequest">
                        <wsdl:part name="url" type="this:urlType"></wsdl:part>
                        <wsdl:part name="convert" type="this:convertType"></wsdl:part>
                    </wsdl:message>
                    <wsdl:message name="image_response">
                        <wsdl:part name="image" type="xsd:base64Binary"></wsdl:part>
                    </wsdl:message>
                    <wsdl:portType name="ImageManipulationPortType">
                        <wsdl:operation name="resizeImage">
                            <wsdl:input message="this:resizeImageRequest"></wsdl:input>
                            <wsdl:output message="this:image_response"></wsdl:output>
                        </wsdl:operation>
                        <wsdl:operation name="zoomImage">
                            <wsdl:input message="this:zoomImageRequest"></wsdl:input>
                            <wsdl:output message="this:image_response"></wsdl:output>
                        </wsdl:operation>
                        <wsdl:operation name="brightImage">
                            <wsdl:input message="this:brightImageRequest"></wsdl:input>
                            <wsdl:output message="this:image_response"></wsdl:output>
                        </wsdl:operation>
                        <wsdl:operation name="watermarkImage">
                            <wsdl:input message="this:watermarkImageRequest"></wsdl:input>
                            <wsdl:output message="this:image_response"></wsdl:output>
                        </wsdl:operation>
                        <wsdl:operation name="grayscaleImage">
                            <wsdl:input message="this:grayscaleImageRequest"></wsdl:input>
                            <wsdl:output message="this:image_response"></wsdl:output>
                        </wsdl:operation>
                        <wsdl:operation name="cropImage">
                            <wsdl:input message="this:cropImageRequest"></wsdl:input>
                            <wsdl:output message="this:image_response"></wsdl:output>
                        </wsdl:operation>
                        <wsdl:operation name="convertImage">
                            <wsdl:input message="this:convertImageRequest"></wsdl:input>
                            <wsdl:output message="this:image_response"></wsdl:output>
                        </wsdl:operation>
                    </wsdl:portType>
                    <wsdl:service name="ImageManipulation">
                        <wsdl:port binding="this:ImageManipulation_http" name="ImageManipulation_port">
                            <http:address location="http://localhost:8080/imagemanip/"></http:address>
                        </wsdl:port>
                    </wsdl:service>
                    <wsdl:binding name="ImageManipulation_http" type="this:ImageManipulationPortType">
                        <http:binding verb="GET"></http:binding>
                        <wsdl:operation name="resizeImage">
                            <http:operation location="ImageManipulation?url=(url)&amp;op=resize&amp;newWidth=(width)"></http:operation>
                            <wsdl:input>
                                <http:urlReplacement></http:urlReplacement>
                            </wsdl:input>
                            <wsdl:output>
                                <mime:content type="image/gif"></mime:content>
                                <mime:content type="image/jpeg"></mime:content>
                                <mime:content type="image/tiff"></mime:content>
                                <mime:content type="image/png"></mime:content>
                                <mime:content type="image/bmp"></mime:content>
                            </wsdl:output>
                        </wsdl:operation>
                        <wsdl:operation name="zoomImage">
                            <http:operation location="ImageManipulation?url=(url)&amp;op=zoom&amp;zoomAmt=(zoom)"></http:operation>
                            <wsdl:input>
                                <http:urlReplacement></http:urlReplacement>
                            </wsdl:input>
                            <wsdl:output>
                                <mime:content type="image/gif"></mime:content>
                                <mime:content type="image/jpeg"></mime:content>
                                <mime:content type="image/tiff"></mime:content>
                                <mime:content type="image/png"></mime:content>
                                <mime:content type="image/bmp"></mime:content>
                            </wsdl:output>
                        </wsdl:operation>
                        <wsdl:operation name="brightImage">
                            <http:operation location="ImageManipulation?url=(url)&amp;op=brightness&amp;brightAmt=(bright)"></http:operation>
                            <wsdl:input>
                                <http:urlReplacement></http:urlReplacement>
                            </wsdl:input>
                            <wsdl:output>
                                <mime:content type="image/gif"></mime:content>
                                <mime:content type="image/jpeg"></mime:content>
                                <mime:content type="image/tiff"></mime:content>
                                <mime:content type="image/png"></mime:content>
                                <mime:content type="image/bmp"></mime:content>
                            </wsdl:output>
                        </wsdl:operation>
                        <wsdl:operation name="watermarkImage">
                            <http:operation location="ImageManipulation?url=(url)&amp;op=watermark&amp;wmText=(watermark)"></http:operation>
                            <wsdl:input>
                                <http:urlReplacement></http:urlReplacement>
                            </wsdl:input>
                            <wsdl:output>
                                <mime:content type="image/gif"></mime:content>
                                <mime:content type="image/jpeg"></mime:content>
                                <mime:content type="image/tiff"></mime:content>
                                <mime:content type="image/png"></mime:content>
                                <mime:content type="image/bmp"></mime:content>
                            </wsdl:output>
                        </wsdl:operation>
                        <wsdl:operation name="grayscaleImage">
                            <http:operation location="ImageManipulation?url=(url)&amp;op=grayscale"></http:operation>
                            <wsdl:input>
                                <http:urlReplacement></http:urlReplacement>
                            </wsdl:input>
                            <wsdl:output>
                                <mime:content type="image/gif"></mime:content>
                                <mime:content type="image/jpeg"></mime:content>
                                <mime:content type="image/tiff"></mime:content>
                                <mime:content type="image/png"></mime:content>
                                <mime:content type="image/bmp"></mime:content>
                            </wsdl:output>
                        </wsdl:operation>
                        <wsdl:operation name="cropImage">
                            <http:operation location="ImageManipulation?url=(url)&amp;op=crop&amp;cropX=(x)&amp;cropY=(y)&amp;cropWidth=(width)&amp;cropHeight=(height)"></http:operation>
                            <wsdl:input>
                                <http:urlReplacement></http:urlReplacement>
                            </wsdl:input>
                            <wsdl:output>
                                <mime:content type="image/gif"></mime:content>
                                <mime:content type="image/jpeg"></mime:content>
                                <mime:content type="image/tiff"></mime:content>
                                <mime:content type="image/png"></mime:content>
                                <mime:content type="image/bmp"></mime:content>
                            </wsdl:output>
                        </wsdl:operation>
                        <wsdl:operation name="convertImage">
                            <http:operation location="ImageManipulation?url=(url)&amp;op=convert&amp;convertTo=(convertTo)"></http:operation>
                            <wsdl:input>
                                <http:urlReplacement></http:urlReplacement>
                            </wsdl:input>
                            <wsdl:output>
                                <mime:content type="image/gif"></mime:content>
                                <mime:content type="image/jpeg"></mime:content>
                                <mime:content type="image/tiff"></mime:content>
                                <mime:content type="image/png"></mime:content>
                                <mime:content type="image/bmp"></mime:content>
                            </wsdl:output>
                        </wsdl:operation>
                    </wsdl:binding>
                </wsdl:definitions>
