package com.ebmwebsourcing.petals.services.ftp.generated;
import com.sun.java.xml.ns.jbi.AbstractEndpoint;
/******************************************************************************
* Copyright (c) 2008-2013, Linagora
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Linagora - initial API and implementation
*******************************************************************************/
/**
* This class was generated by EMF JET.
* <b>DO NOT MODIFY IT!</b>
* @author Adrien LOUIS - EBM WebSourcing
*/
public class FtpService32 {
protected static String nl;
public static synchronized FtpService32 create(String lineSeparator)
{
nl = lineSeparator;
FtpService32 result = new FtpService32();
nl = null;
return result;
}
public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
protected final String TEXT_1 = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>" + NL + "<wsdl:definitions " + NL + "\txmlns:tns=\"http://petals.ow2.org/components/ftp/version-3\"" + NL + "\txmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\" " + NL + "\txmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"" + NL + "\txmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"" + NL + "\tname=\"ftpInterface\"" + NL + "\ttargetNamespace=\"http://petals.ow2.org/components/ftp/version-3\">" + NL + "" + NL + "\t<wsdl:types>" + NL + "\t\t<xsd:schema " + NL + "\t\t\txmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"" + NL + "\t\t\telementFormDefault=\"qualified\" " + NL + "\t\t\ttargetNamespace=\"http://petals.ow2.org/components/ftp/version-3\">" + NL + "\t\t\t" + NL + "\t\t\t<xsd:element name=\"get\" type=\"tns:getType\" />" + NL + "\t\t\t<xsd:complexType name=\"getType\">" + NL + "\t\t\t\t<xsd:sequence>" + NL + "\t\t\t\t\t<xsd:element name=\"filename\" type=\"xsd:string\" maxOccurs=\"1\" minOccurs=\"1\" />" + NL + "\t\t\t\t\t<xsd:element name=\"connection\" type=\"tns:ConnectionType\" maxOccurs=\"1\" minOccurs=\"0\" />" + NL + "\t\t\t\t</xsd:sequence>" + NL + "\t\t\t</xsd:complexType>" + NL + "" + NL + "\t\t\t<xsd:element name=\"ioFault\" type=\"tns:ioFaultType\" />" + NL + "\t\t\t<xsd:complexType name=\"ioFaultType\">" + NL + "\t\t\t\t<xsd:sequence>" + NL + "\t\t\t\t\t<xsd:element name=\"message\" type=\"xsd:string\" />" + NL + "\t\t\t\t</xsd:sequence>" + NL + "\t\t\t</xsd:complexType>" + NL + "" + NL + "\t\t\t<xsd:element name=\"mget\" type=\"tns:mgetType\" />" + NL + "\t\t\t<xsd:complexType name=\"mgetType\">" + NL + "\t\t\t\t<xsd:sequence>" + NL + "\t\t\t\t\t<xsd:element name=\"filename\" type=\"xsd:string\" maxOccurs=\"unbounded\" minOccurs=\"1\" />" + NL + "\t\t\t\t\t<xsd:element name=\"connection\" type=\"tns:ConnectionType\" maxOccurs=\"1\" minOccurs=\"0\" />" + NL + "\t\t\t\t</xsd:sequence>" + NL + "\t\t\t</xsd:complexType>" + NL + "" + NL + "\t\t\t<xsd:element name=\"mgetResponse\" type=\"tns:mgetResponse\">" + NL + "\t\t\t</xsd:element>" + NL + "\t\t\t<xsd:complexType name=\"mgetResponse\">" + NL + "\t\t\t\t<xsd:sequence>" + NL + "\t\t\t\t\t<xsd:element name=\"filename\" type=\"xsd:string\" maxOccurs=\"unbounded\" minOccurs=\"0\" />" + NL + "\t\t\t\t</xsd:sequence>" + NL + "\t\t\t</xsd:complexType>" + NL + "" + NL + "\t\t\t<xsd:element name=\"getFiles_fault\">" + NL + "\t\t\t\t<xsd:complexType>" + NL + "\t\t\t\t\t<xsd:sequence>" + NL + "\t\t\t\t\t\t<xsd:element name=\"getFiles_fault\" type=\"xsd:string\" />" + NL + "\t\t\t\t\t</xsd:sequence>" + NL + "\t\t\t\t</xsd:complexType>" + NL + "\t\t\t</xsd:element>" + NL + "\t\t\t<xsd:complexType name=\"anyType\"></xsd:complexType>" + NL + "\t\t\t<xsd:element name=\"files\" type=\"tns:filesType\" />" + NL + "" + NL + "\t\t\t<xsd:complexType name=\"filesType\">" + NL + "\t\t\t\t<xsd:sequence>" + NL + "\t\t\t\t\t<xsd:element name=\"file\" type=\"xsd:base64Binary\" maxOccurs=\"unbounded\" minOccurs=\"0\" />" + NL + "\t\t\t\t</xsd:sequence>" + NL + "\t\t\t</xsd:complexType>" + NL + "\t\t\t<xsd:element name=\"put\">" + NL + "\t\t\t\t<xsd:complexType>" + NL + "\t\t\t\t\t<xsd:sequence>" + NL + "\t\t\t\t\t\t<xsd:element name=\"body\" type=\"xsd:string\" maxOccurs=\"1\" minOccurs=\"1\" />" + NL + "\t\t\t\t\t\t<xsd:element name=\"filename\" type=\"xsd:string\" maxOccurs=\"1\" minOccurs=\"1\" />" + NL + "\t\t\t\t\t\t<xsd:element name=\"connection\" type=\"tns:ConnectionType\" maxOccurs=\"1\" minOccurs=\"0\" />" + NL + "\t\t\t\t\t</xsd:sequence>" + NL + "\t\t\t\t</xsd:complexType>" + NL + "\t\t\t</xsd:element>" + NL + "" + NL + "\t\t\t<xsd:element name=\"mput\">" + NL + "\t\t\t\t<xsd:complexType>" + NL + "\t\t\t\t\t<xsd:sequence>" + NL + "\t\t\t\t\t\t<xsd:element name=\"connection\" type=\"tns:ConnectionType\" maxOccurs=\"1\" minOccurs=\"0\" />" + NL + "\t\t\t\t\t</xsd:sequence>" + NL + "\t\t\t\t</xsd:complexType>" + NL + "\t\t\t</xsd:element>" + NL + "" + NL + "\t\t\t<xsd:element name=\"dir\">" + NL + "\t\t\t\t<xsd:complexType>" + NL + "\t\t\t\t\t<xsd:sequence>" + NL + "\t\t\t\t\t\t<xsd:element name=\"connection\" type=\"tns:ConnectionType\" maxOccurs=\"1\" minOccurs=\"0\">" + NL + "\t\t\t\t\t\t</xsd:element>" + NL + "\t\t\t\t\t</xsd:sequence>" + NL + "\t\t\t\t</xsd:complexType>" + NL + "\t\t\t</xsd:element>" + NL + "\t\t\t<xsd:element name=\"dirResponse\">" + NL + "\t\t\t\t<xsd:complexType>" + NL + "\t\t\t\t\t<xsd:sequence>" + NL + "\t\t\t\t\t\t<xsd:element name=\"filename\" type=\"xsd:string\" maxOccurs=\"unbounded\" minOccurs=\"0\" />" + NL + "\t\t\t\t\t</xsd:sequence>" + NL + "\t\t\t\t</xsd:complexType>" + NL + "\t\t\t</xsd:element>" + NL + "" + NL + "\t\t\t<xsd:complexType name=\"ConnectionType\">" + NL + "\t\t\t\t<xsd:sequence>" + NL + "\t\t\t\t\t<xsd:element name=\"server\" type=\"xsd:string\" />" + NL + "\t\t\t\t\t<xsd:element name=\"port\" type=\"xsd:string\" />" + NL + "\t\t\t\t\t<xsd:element name=\"user\" type=\"xsd:string\" />" + NL + "\t\t\t\t\t<xsd:element name=\"password\" type=\"xsd:string\" />" + NL + "\t\t\t\t\t<xsd:element name=\"folder\" type=\"xsd:string\" />" + NL + "\t\t\t\t\t<xsd:element name=\"transfer-type\" type=\"tns:transfer-typeType\" />" + NL + "\t\t\t\t\t<xsd:element name=\"connection-mode\" type=\"tns:connection-modeType\" />" + NL + "\t\t\t\t\t<xsd:element name=\"deleteProcessedFiles\" type=\"xsd:boolean\" minOccurs=\"0\" maxOccurs=\"1\" />" + NL + "\t\t\t\t</xsd:sequence>" + NL + "\t\t\t</xsd:complexType>" + NL + "" + NL + "\t\t\t<xsd:simpleType name=\"transfer-typeType\">" + NL + "\t\t\t\t<xsd:restriction base=\"xsd:string\">" + NL + "\t\t\t\t\t<xsd:enumeration value=\"auto\" />" + NL + "\t\t\t\t\t<xsd:enumeration value=\"ascii\" />" + NL + "\t\t\t\t\t<xsd:enumeration value=\"binary\" />" + NL + "\t\t\t\t</xsd:restriction>" + NL + "\t\t\t</xsd:simpleType>" + NL + "\t\t\t" + NL + "\t\t\t<xsd:simpleType name=\"connection-modeType\">" + NL + "\t\t\t\t<xsd:restriction base=\"xsd:string\">" + NL + "\t\t\t\t\t<xsd:enumeration value=\"active\" />" + NL + "\t\t\t\t\t<xsd:enumeration value=\"passive\" />" + NL + "\t\t\t\t</xsd:restriction>" + NL + "\t\t\t</xsd:simpleType>" + NL + "\t\t\t" + NL + "\t\t\t<xsd:element name=\"getFault1\">" + NL + "\t\t\t\t<xsd:complexType>" + NL + "\t\t\t\t\t<xsd:sequence>" + NL + "\t\t\t\t\t\t<xsd:element name=\"getFault1\" type=\"xsd:string\" />" + NL + "\t\t\t\t\t</xsd:sequence>" + NL + "\t\t\t\t</xsd:complexType>" + NL + "\t\t\t</xsd:element>" + NL + "\t\t\t" + NL + " <xsd:element name=\"missingElementFault\" type=\"tns:missingElementFaultType\" />" + NL + " <xsd:complexType name=\"missingElementFaultType\">" + NL + "\t\t\t\t<xsd:sequence>" + NL + "\t\t\t\t\t<xsd:element name=\"message\" type=\"xsd:string\" />" + NL + "\t\t\t\t</xsd:sequence>" + NL + "\t\t\t</xsd:complexType>" + NL + "\t\t\t" + NL + " <xsd:element name=\"dirFault1\">" + NL + " \t<xsd:complexType>" + NL + " \t\t<xsd:sequence>" + NL + " \t\t\t<xsd:element name=\"dirFault1\" type=\"xsd:string\" />" + NL + " \t\t</xsd:sequence>" + NL + " \t</xsd:complexType>" + NL + " </xsd:element>" + NL + " " + NL + " <xsd:element name=\"mgetFault1\">" + NL + " \t<xsd:complexType>" + NL + " \t\t<xsd:sequence>" + NL + " \t\t\t<xsd:element name=\"mgetFault1\" type=\"xsd:string\" />" + NL + " \t\t</xsd:sequence>" + NL + " \t</xsd:complexType>" + NL + " </xsd:element>" + NL + " " + NL + " <xsd:element name=\"del\" type=\"tns:delType\" />" + NL + " <xsd:complexType name=\"delType\">" + NL + " \t<xsd:sequence>" + NL + " \t\t<xsd:element name=\"filename\" type=\"xsd:string\" minOccurs=\"1\" maxOccurs=\"1\" />" + NL + " \t\t<xsd:element name=\"connection\" type=\"tns:ConnectionType\" minOccurs=\"0\" maxOccurs=\"1\" />" + NL + " \t</xsd:sequence>" + NL + " </xsd:complexType>" + NL + "\t\t</xsd:schema>" + NL + "\t</wsdl:types>" + NL + "\t" + NL + "\t<wsdl:message name=\"getRequest\">" + NL + "\t\t<wsdl:part name=\"getRequest\" element=\"tns:get\" />" + NL + "\t</wsdl:message>" + NL + "\t<wsdl:message name=\"getResponse\">" + NL + "\t</wsdl:message>" + NL + "\t" + NL + "\t<wsdl:message name=\"mgetRequest\">" + NL + "\t\t<wsdl:part name=\"mgetRequest\" element=\"tns:mget\" />" + NL + "\t</wsdl:message>" + NL + "" + NL + "\t<wsdl:message name=\"mgetResponse\">" + NL + "\t\t<wsdl:part name=\"mgetResponse\" element=\"tns:mgetResponse\" />" + NL + "\t\t<wsdl:part name=\"files\" element=\"tns:files\" />" + NL + "\t</wsdl:message>" + NL + "\t" + NL + "\t<wsdl:message name=\"getFile_faultMsg\">" + NL + "\t\t<wsdl:part name=\"ioFault\" element=\"tns:ioFault\" />" + NL + "\t</wsdl:message>" + NL + "\t" + NL + "\t<wsdl:message name=\"getFiles_faultMsg\">" + NL + "\t\t<wsdl:part name=\"ioFault\" element=\"tns:ioFault\" />" + NL + "\t</wsdl:message>" + NL + "\t" + NL + "\t<wsdl:message name=\"putRequest\">" + NL + "\t\t<wsdl:part name=\"putRequest\" element=\"tns:put\" />" + NL + "\t</wsdl:message>" + NL + "\t" + NL + "\t<wsdl:message name=\"mputRequest\">" + NL + "\t\t<wsdl:part name=\"mputRequest\" element=\"tns:mput\" />" + NL + "\t</wsdl:message>" + NL + "" + NL + "\t<wsdl:message name=\"dirRequest\">" + NL + "\t\t<wsdl:part name=\"dirRequest\" element=\"tns:dir\" />" + NL + "\t</wsdl:message>" + NL + "\t" + NL + "\t<wsdl:message name=\"dirResponse\">" + NL + "\t\t<wsdl:part name=\"dirResponse\" element=\"tns:dirResponse\" />" + NL + "\t</wsdl:message>" + NL + "\t" + NL + "\t<wsdl:message name=\"dir_faultMsg\">" + NL + "\t\t<wsdl:part name=\"ioFault\" element=\"tns:ioFault\" />" + NL + "\t</wsdl:message>" + NL + "\t" + NL + "\t<wsdl:message name=\"getFault1\">" + NL + "\t\t<wsdl:part name=\"missingElementFault\"" + NL + "\t\t\telement=\"tns:missingElementFault\">" + NL + "\t\t</wsdl:part>" + NL + "\t</wsdl:message>" + NL + "\t" + NL + "\t<wsdl:message name=\"dirFault1\">" + NL + "\t\t<wsdl:part name=\"missingElementFault\"" + NL + "\t\t\telement=\"tns:missingElementFault\">" + NL + "\t\t</wsdl:part>" + NL + "\t</wsdl:message>" + NL + "\t" + NL + "\t<wsdl:message name=\"mgetFault1\">" + NL + "\t\t<wsdl:part name=\"missingElementFault\"" + NL + "\t\t\telement=\"tns:missingElementFault\">" + NL + "\t\t</wsdl:part>" + NL + "\t</wsdl:message>" + NL + "\t" + NL + "\t<wsdl:message name=\"delRequest\">" + NL + "\t\t<wsdl:part name=\"delRequest\" element=\"tns:del\" />" + NL + "\t</wsdl:message>" + NL + "\t" + NL + "\t<wsdl:portType name=\"";
protected final String TEXT_2 = "\">" + NL + "\t\t<wsdl:operation name=\"get\">" + NL + "\t\t\t<wsdl:input message=\"tns:getRequest\" />" + NL + "\t\t\t<wsdl:output message=\"tns:getResponse\" />" + NL + "\t\t\t<wsdl:fault name=\"fault\" message=\"tns:getFile_faultMsg\" />" + NL + " <wsdl:fault name=\"fault1\" message=\"tns:getFault1\" />" + NL + " </wsdl:operation>" + NL + " " + NL + "\t\t<wsdl:operation name=\"mget\">" + NL + "\t\t\t<wsdl:input message=\"tns:mgetRequest\" />" + NL + "\t\t\t<wsdl:output message=\"tns:mgetResponse\" />" + NL + "\t\t\t<wsdl:fault name=\"fault\" message=\"tns:getFiles_faultMsg\" />" + NL + " <wsdl:fault name=\"fault1\" message=\"tns:mgetFault1\" />" + NL + " </wsdl:operation>" + NL + " " + NL + "\t\t<wsdl:operation name=\"put\">" + NL + "\t\t\t<wsdl:input message=\"tns:putRequest\" />" + NL + "\t\t</wsdl:operation>" + NL + "\t\t" + NL + "\t\t<wsdl:operation name=\"mput\">" + NL + "\t\t\t<wsdl:input message=\"tns:mputRequest\" />" + NL + "\t\t</wsdl:operation>" + NL + "\t\t" + NL + "\t\t<wsdl:operation name=\"dir\">" + NL + "\t\t\t<wsdl:input message=\"tns:dirRequest\" />" + NL + "\t\t\t<wsdl:output message=\"tns:dirResponse\" />" + NL + "\t\t\t<wsdl:fault name=\"fault\" message=\"tns:dir_faultMsg\" />" + NL + " <wsdl:fault name=\"fault1\" message=\"tns:dirFault1\" />" + NL + " </wsdl:operation>" + NL + " " + NL + "\t\t<wsdl:operation name=\"del\">" + NL + "\t\t\t<wsdl:input message=\"tns:delRequest\" />" + NL + "\t\t</wsdl:operation>" + NL + "\t</wsdl:portType>" + NL + "\t" + NL + "\t<!--" + NL + "\t\tThis binding section is defined only to expose this WSDL via SOAP" + NL + "\t\tcomponent to external service consumers" + NL + "\t-->" + NL + "\t<wsdl:binding name=\"FtpServiceSoapBinding\" type=\"tns:";
protected final String TEXT_3 = "\">" + NL + "\t\t<soap:binding style=\"document\"" + NL + "\t\t\ttransport=\"http://schemas.xmlsoap.org/soap/http\" />" + NL + "\t\t\t" + NL + "\t\t<wsdl:operation name=\"get\">" + NL + "\t\t\t<soap:operation" + NL + "\t\t\t\tsoapAction=\"http://petals.ow2.org/components/ftp/version-3/get\" />" + NL + "\t\t\t<wsdl:input>" + NL + "\t\t\t\t<soap:body use=\"literal\" />" + NL + "\t\t\t</wsdl:input>" + NL + "\t\t\t<wsdl:output>" + NL + "\t\t\t\t<soap:body use=\"literal\" />" + NL + "\t\t\t</wsdl:output>" + NL + "\t\t\t<wsdl:fault name=\"fault\">" + NL + "\t\t\t\t<soap:fault use=\"literal\" name=\"fault\" />" + NL + "\t\t\t</wsdl:fault>" + NL + "\t\t\t<wsdl:fault name=\"fault1\">" + NL + "\t\t\t\t<soap:fault use=\"literal\" name=\"fault1\" />" + NL + "\t\t\t</wsdl:fault>" + NL + "\t\t</wsdl:operation>" + NL + "" + NL + "\t\t<wsdl:operation name=\"mget\">" + NL + "\t\t\t<soap:operation" + NL + "\t\t\t\tsoapAction=\"http://petals.ow2.org/components/ftp/version-3/mget\" />" + NL + "\t\t\t<wsdl:input>" + NL + "\t\t\t\t<soap:body use=\"literal\" />" + NL + "\t\t\t</wsdl:input>" + NL + "\t\t\t<wsdl:output>" + NL + "\t\t\t\t<soap:body use=\"literal\" />" + NL + "\t\t\t</wsdl:output>" + NL + "\t\t\t<wsdl:fault name=\"fault\">" + NL + "\t\t\t\t<soap:fault use=\"literal\" name=\"fault\" />" + NL + "\t\t\t</wsdl:fault>" + NL + "\t\t\t<wsdl:fault name=\"fault1\">" + NL + "\t\t\t\t<soap:fault use=\"literal\" name=\"fault1\" />" + NL + "\t\t\t</wsdl:fault>" + NL + "\t\t</wsdl:operation>" + NL + "" + NL + "\t\t<wsdl:operation name=\"put\">" + NL + "\t\t\t<soap:operation" + NL + "\t\t\t\tsoapAction=\"http://petals.ow2.org/components/ftp/version-3/put\" />" + NL + "\t\t\t<wsdl:input>" + NL + "\t\t\t\t<soap:body use=\"literal\" />" + NL + "\t\t\t</wsdl:input>" + NL + "\t\t</wsdl:operation>" + NL + "" + NL + "\t\t<wsdl:operation name=\"mput\">" + NL + "\t\t\t<soap:operation" + NL + "\t\t\t\tsoapAction=\"http://petals.ow2.org/components/ftp/version-3/mput\" />" + NL + "\t\t\t<wsdl:input>" + NL + "\t\t\t\t<soap:body use=\"literal\" />" + NL + "\t\t\t</wsdl:input>" + NL + "\t\t</wsdl:operation>" + NL + "" + NL + "\t\t<wsdl:operation name=\"dir\">" + NL + "\t\t\t<soap:operation" + NL + "\t\t\t\tsoapAction=\"http://petals.ow2.org/components/ftp/version-3/dir\" />" + NL + "\t\t\t<wsdl:input>" + NL + "\t\t\t\t<soap:body use=\"literal\" />" + NL + "\t\t\t</wsdl:input>" + NL + "\t\t\t<wsdl:output>" + NL + "\t\t\t\t<soap:body use=\"literal\" />" + NL + "\t\t\t</wsdl:output>" + NL + "\t\t\t<wsdl:fault name=\"fault\">" + NL + "\t\t\t\t<soap:fault use=\"literal\" name=\"fault\" />" + NL + "\t\t\t</wsdl:fault>" + NL + "\t\t\t<wsdl:fault name=\"fault1\">" + NL + "\t\t\t\t<soap:fault use=\"literal\" name=\"fault1\" />" + NL + "\t\t\t</wsdl:fault>" + NL + "\t\t</wsdl:operation>" + NL + "" + NL + "\t\t<wsdl:operation name=\"del\">" + NL + "\t\t\t<soap:operation" + NL + "\t\t\t\tsoapAction=\"http://petals.ow2.org/components/ftp/version-3/del\" />" + NL + "\t\t\t<wsdl:input>" + NL + "\t\t\t\t<soap:body use=\"literal\" />" + NL + "\t\t\t</wsdl:input>" + NL + "\t\t</wsdl:operation>" + NL + "\t</wsdl:binding>" + NL + "" + NL + "\t<!--" + NL + "\t\tThis section must be overridden at the SU definition and the matching Service." + NL + "\t-->" + NL + "\t<wsdl:service name=\"";
protected final String TEXT_4 = "\">" + NL + "\t\t<wsdl:port name=\"";
protected final String TEXT_5 = "\" binding=\"tns:FtpServiceSoapBinding\">" + NL + "\t\t\t<soap:address location=\"jbi://myFTPSUEndpointName\" />" + NL + "\t\t</wsdl:port>" + NL + "\t</wsdl:service>" + NL + "</wsdl:definitions>";
protected final String TEXT_6 = NL;
public String generate( Object argument )
{
final StringBuffer stringBuffer = new StringBuffer();
AbstractEndpoint data = (AbstractEndpoint) argument;
stringBuffer.append(TEXT_1);
stringBuffer.append( data.getInterfaceName().getLocalPart() );
stringBuffer.append(TEXT_2);
stringBuffer.append( data.getInterfaceName().getLocalPart() );
stringBuffer.append(TEXT_3);
stringBuffer.append( data.getServiceName().getLocalPart() );
stringBuffer.append(TEXT_4);
stringBuffer.append( data.getEndpointName() );
stringBuffer.append(TEXT_5);
stringBuffer.append(TEXT_6);
return stringBuffer.toString();
}
}