Commit 8b144f9b authored by Philip Schildkamp's avatar Philip Schildkamp

Migrate (duplicate) Docker types

parent caec5c57
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" targetNamespace="http://opentosca.org/artifacttemplates" id="winery-defs-for_artifacttemplates-DockerEngine-IA-Manage"> <Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" targetNamespace="http://dch.uni-koeln.de/tosca/artifacttemplates" id="winery-defs-for_dch_artifacttemplates-DockerContainer-IA-Manage">
<ArtifactTemplate xmlns:artifacttypes="http://opentosca.org/artifacttypes" name="DockerEngine-IA-Manage" type="artifacttypes:WAR" id="DockerEngine-IA-Manage"> <ArtifactTemplate xmlns:artifacttypes="http://dch.uni-koeln.de/tosca/artifacttypes" name="DockerContainer-IA-Manage" type="artifacttypes:WAR" id="DockerContainer-IA-Manage">
<Properties> <Properties>
<WSProperties xmlns="http://www.uni-stuttgart.de/opentosca"> <WSProperties xmlns="http://www.uni-stuttgart.de/opentosca">
<ServiceEndpoint>/services/org_opentosca_nodetypes_DockerEngine_IA_ManagePort</ServiceEndpoint> <ServiceEndpoint>/services/DockerContainer_IA_ManagePort</ServiceEndpoint>
<PortType>{http://opentosca.org/nodetypes}org_opentosca_nodetypes_DockerEngine_IA_Manage</PortType> <PortType>{http://dch.uni-koeln.de/tosca/nodetypes}DockerContainer_IA_Manage</PortType>
<InvocationType>SOAP/HTTP</InvocationType> <InvocationType>SOAP/HTTP</InvocationType>
</WSProperties> </WSProperties>
</Properties> </Properties>
<ArtifactReferences> <ArtifactReferences>
<ArtifactReference reference="artifacttemplates/http%253A%252F%252Fopentosca.org%252Fartifacttemplates/DockerEngine-IA-Manage/files/org_opentosca_nodetypes_DockerEngine_IA_Manage.war"/> <ArtifactReference reference="artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/DockerContainer-IA-Manage/files/DockerContainer_IA_Manage.war"/>
</ArtifactReferences> </ArtifactReferences>
</ArtifactTemplate> </ArtifactTemplate>
</Definitions> </Definitions>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>DockerContainer_IA_Manage</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.opentosca.nodetypes</groupId> <groupId>artifacttemplates</groupId>
<artifactId>org_opentosca_nodetypes_DockerContainer_IA_Manage</artifactId> <artifactId>DockerContainer_IA_Manage</artifactId>
<packaging>war</packaging> <packaging>war</packaging>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<name>Implementation Artifact org_opentosca_nodetypes_DockerContainer_IA_Manage</name> <name>Implementation Artifact DockerContainer_IA_Manage</name>
<repositories> <repositories>
<repository> <repository>
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<properties> <properties>
<run.HttpPort>9090</run.HttpPort> <run.HttpPort>9090</run.HttpPort>
<winery.upload.url>http://localhost:8080/winery/artifacttemplates/http%253A%252F%252Fopentosca.org%252Fnodetypes/DockerContainer_IA_Manage/files/</winery.upload.url> <winery.upload.url>http://localhost:8080/winery/artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fnodetypes/DockerContainer_IA_Manage/files/</winery.upload.url>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<cxf.version>2.7.6</cxf.version> <cxf.version>2.7.6</cxf.version>
<highlevelrestapi.version>0.1.6</highlevelrestapi.version> <highlevelrestapi.version>0.1.6</highlevelrestapi.version>
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<finalName>org_opentosca_nodetypes_DockerContainer_IA_Manage</finalName> <finalName>DockerContainer_IA_Manage</finalName>
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
...@@ -154,8 +154,8 @@ ...@@ -154,8 +154,8 @@
<id>process-classes</id> <id>process-classes</id>
<phase>process-classes</phase> <phase>process-classes</phase>
<configuration> <configuration>
<className>org.opentosca.nodetypes.org_opentosca_nodetypes_DockerContainer_IA_Manage</className> <className>DockerContainer_IA_Manage</className>
<outputFile>${basedir}/src/main/webapp/wsdl/org_opentosca_nodetypes_DockerContainer_IA_Manage.wsdl</outputFile> <outputFile>${basedir}/src/main/webapp/wsdl/DockerContainer_IA_Manage.wsdl</outputFile>
<genWsdl>true</genWsdl> <genWsdl>true</genWsdl>
<verbose>true</verbose> <verbose>true</verbose>
</configuration> </configuration>
......
package org.opentosca.nodetypes;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream; import java.io.ByteArrayOutputStream;
import java.io.File; import java.io.File;
...@@ -22,7 +20,7 @@ import com.jcabi.ssh.Shell; ...@@ -22,7 +20,7 @@ import com.jcabi.ssh.Shell;
import com.jcabi.ssh.SshByPassword; import com.jcabi.ssh.SshByPassword;
@WebService @WebService
public class org_opentosca_nodetypes_DockerContainer_IA_Manage extends AbstractIAService { public class DockerContainer_IA_Manage extends AbstractIAService {
public static final String MSG_FAILED = "FAILED"; public static final String MSG_FAILED = "FAILED";
public static final String TESTMODE = "TESTMODE"; public static final String TESTMODE = "TESTMODE";
......
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
<jaxws:endpoint xmlns:tns="http://nodetypes.opentosca.org/" <jaxws:endpoint xmlns:tns="http://nodetypes.opentosca.org/"
id="org_opentosca_nodetypes_DockerEngine_IA_Manage" implementor="org.opentosca.nodetypes.org_opentosca_nodetypes_DockerEngine_IA_Manage" id="DockerContainer_IA_Manage" implementor="DockerContainer_IA_Manage"
wsdlLocation="wsdl/org_opentosca_nodetypes_DockerEngine_IA_Manage.wsdl" endpointName="tns:org_opentosca_nodetypes_DockerEngine_IA_ManagePort" wsdlLocation="wsdl/DockerContainer_IA_Manage.wsdl" endpointName="tns:DockerContainer_IA_ManagePort"
serviceName="tns:org_opentosca_nodetypes_DockerEngine_IA_ManageService" address="/org_opentosca_nodetypes_DockerEngine_IA_ManagePort"> serviceName="tns:DockerContainer_IA_ManageService" address="/DockerContainer_IA_ManagePort">
<jaxws:features> <jaxws:features>
<bean class="org.apache.cxf.feature.LoggingFeature" /> <bean class="org.apache.cxf.feature.LoggingFeature" />
</jaxws:features> </jaxws:features>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0"> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
<display-name>org_opentosca_nodetypes_DockerEngine_IA_Manage</display-name> <display-name>DockerContainer_IA_Manage</display-name>
<welcome-file-list> <welcome-file-list>
<welcome-file>index.html</welcome-file> <welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file> <welcome-file>index.htm</welcome-file>
......
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="DockerContainer_IA_ManageService" targetNamespace="http://unknown.namespace/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://unknown.namespace/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<wsdl:types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://nodetypes.opentosca.org/" xmlns:tns="http://unknown.namespace/" elementFormDefault="unqualified" targetNamespace="http://unknown.namespace/" version="1.0">
<xs:import namespace="http://nodetypes.opentosca.org/"/>
<xs:element name="runScript" type="tns:runScript"/>
<xs:element name="transferFile" type="tns:transferFile"/>
<xs:complexType name="runScript">
<xs:sequence>
<xs:element minOccurs="0" ref="ns1:ContainerIP"/>
<xs:element minOccurs="0" ref="ns1:SSHPort"/>
<xs:element minOccurs="0" ref="ns1:Script"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="transferFile">
<xs:sequence>
<xs:element minOccurs="0" ref="ns1:ContainerIP"/>
<xs:element minOccurs="0" ref="ns1:SSHPort"/>
<xs:element minOccurs="0" ref="ns1:SourceURLorLocalPath"/>
<xs:element minOccurs="0" ref="ns1:TargetAbsolutePath"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://nodetypes.opentosca.org/" version="1.0">
<xs:element name="ContainerIP" type="xs:string"/>
<xs:element name="SSHPort" type="xs:string"/>
<xs:element name="Script" type="xs:string"/>
<xs:element name="SourceURLorLocalPath" type="xs:string"/>
<xs:element name="TargetAbsolutePath" type="xs:string"/>
</xs:schema>
</wsdl:types>
<wsdl:message name="runScript">
<wsdl:part name="parameters" element="tns:runScript">
</wsdl:part>
</wsdl:message>
<wsdl:message name="transferFile">
<wsdl:part name="parameters" element="tns:transferFile">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="DockerContainer_IA_Manage">
<wsdl:operation name="runScript">
<wsdl:input name="runScript" message="tns:runScript">
</wsdl:input>
</wsdl:operation>
<wsdl:operation name="transferFile">
<wsdl:input name="transferFile" message="tns:transferFile">
</wsdl:input>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="DockerContainer_IA_ManageServiceSoapBinding" type="tns:DockerContainer_IA_Manage">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="runScript">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="runScript">
<soap:body use="literal"/>
</wsdl:input>
</wsdl:operation>
<wsdl:operation name="transferFile">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="transferFile">
<soap:body use="literal"/>
</wsdl:input>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="DockerContainer_IA_ManageService">
<wsdl:port name="DockerContainer_IA_ManagePort" binding="tns:DockerContainer_IA_ManageServiceSoapBinding">
<soap:address location="http://localhost:9090/DockerContainer_IA_ManagePort"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" targetNamespace="http://opentosca.org/artifacttemplates" id="winery-defs-for_artifacttemplates-DockerContainer-IA-Manage"> <Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" targetNamespace="http://dch.uni-koeln.de/tosca/artifacttemplates" id="winery-defs-for_dch_artifacttemplates-DockerEngine-IA-Configure">
<ArtifactTemplate xmlns:artifacttypes="http://opentosca.org/artifacttypes" name="DockerContainer-IA-Manage" type="artifacttypes:WAR" id="DockerContainer-IA-Manage"> <ArtifactTemplate xmlns:artifacttypes="http://dch.uni-koeln.de/tosca/artifacttypes" name="DockerEngine-IA-Configure" type="artifacttypes:WAR" id="DockerEngine-IA-Configure">
<Properties> <Properties>
<WSProperties xmlns="http://www.uni-stuttgart.de/opentosca"> <WSProperties xmlns="http://www.uni-stuttgart.de/opentosca">
<ServiceEndpoint>/services/org_opentosca_nodetypes_DockerContainer_IA_ManagePort</ServiceEndpoint> <ServiceEndpoint>/services/DockerEngine_IA_ConfigurePort</ServiceEndpoint>
<PortType>{http://opentosca.org/nodetypes}org_opentosca_nodetypes_DockerContainer_IA_Manage</PortType> <PortType>{http://dch.uni-koeln.de/tosca/nodetypes}DockerEngine_IA_Configure</PortType>
<InvocationType>SOAP/HTTP</InvocationType> <InvocationType>SOAP/HTTP</InvocationType>
</WSProperties> </WSProperties>
</Properties> </Properties>
<ArtifactReferences> <ArtifactReferences>
<ArtifactReference reference="artifacttemplates/http%253A%252F%252Fopentosca.org%252Fartifacttemplates/DockerContainer-IA-Manage/files/org_opentosca_nodetypes_DockerContainer_IA_Manage.war"/> <ArtifactReference reference="artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fartifacttemplates/DockerEngine-IA-Configure/files/DockerEngine_IA_Configure.war"/>
</ArtifactReferences> </ArtifactReferences>
</ArtifactTemplate> </ArtifactTemplate>
</Definitions> </Definitions>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>DockerEngine_IA_Configure</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.opentosca.nodetypes</groupId> <groupId>artifacttemplates</groupId>
<artifactId>org_opentosca_nodetypes_DockerEngine_IA_Configure</artifactId> <artifactId>DockerEngine_IA_Configure</artifactId>
<packaging>war</packaging> <packaging>war</packaging>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<name>Implementation Artifact org_opentosca_nodetypes_DockerEngine_IA_Configure</name> <name>Implementation Artifact DockerEngine_IA_Configure</name>
<repositories> <repositories>
<repository> <repository>
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<properties> <properties>
<run.HttpPort>9090</run.HttpPort> <run.HttpPort>9090</run.HttpPort>
<winery.upload.url>http://localhost:8080/winery/artifacttemplates/http%253A%252F%252Fopentosca.org%252Fnodetypes/DockerEngine_IA_Configure/files/</winery.upload.url> <winery.upload.url>http://localhost:8080/winery/artifacttemplates/http%3A%2F%2Fdch.uni-koeln.de%2Ftosca%2Fnodetypes/DockerEngine_IA_Configure/files/</winery.upload.url>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<cxf.version>2.7.6</cxf.version> <cxf.version>2.7.6</cxf.version>
<highlevelrestapi.version>2.0.0-SNAPSHOT</highlevelrestapi.version> <highlevelrestapi.version>2.0.0-SNAPSHOT</highlevelrestapi.version>
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<finalName>org_opentosca_nodetypes_DockerEngine_IA_Configure</finalName> <finalName>DockerEngine_IA_Configure</finalName>
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
...@@ -121,8 +121,8 @@ ...@@ -121,8 +121,8 @@
<id>process-classes</id> <id>process-classes</id>
<phase>process-classes</phase> <phase>process-classes</phase>
<configuration> <configuration>
<className>org.opentosca.nodetypes.org_opentosca_nodetypes_DockerEngine_IA_Configure</className> <className>DockerEngine_IA_Configure</className>
<outputFile>${basedir}/src/main/webapp/wsdl/org_opentosca_nodetypes_DockerEngine_IA_Configure.wsdl</outputFile> <outputFile>${basedir}/src/main/webapp/wsdl/DockerEngine_IA_Configure.wsdl</outputFile>
<genWsdl>true</genWsdl> <genWsdl>true</genWsdl>
<verbose>true</verbose> <verbose>true</verbose>
</configuration> </configuration>
......
package org.opentosca.nodetypes;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map.Entry; import java.util.Map.Entry;
...@@ -11,16 +9,15 @@ import org.apache.cxf.headers.Header; ...@@ -11,16 +9,15 @@ import org.apache.cxf.headers.Header;
import org.apache.cxf.helpers.CastUtils; import org.apache.cxf.helpers.CastUtils;
import org.apache.cxf.jaxws.context.WrappedMessageContext; import org.apache.cxf.jaxws.context.WrappedMessageContext;
import org.apache.cxf.message.Message; import org.apache.cxf.message.Message;
import org.w3c.dom.Node;
import org.eclipse.winery.highlevelrestapi.HighLevelRestApi; import org.eclipse.winery.highlevelrestapi.HighLevelRestApi;
import org.w3c.dom.Node;
public abstract class AbstractIAService { public abstract class AbstractIAService {
@Resource @Resource
private WebServiceContext context; private WebServiceContext context;
protected void sendResponse (HashMap<String,String> returnParameters) { protected void sendResponse(HashMap<String, String> returnParameters) {
// Extract message // Extract message
WrappedMessageContext wrappedContext = (WrappedMessageContext) context.getMessageContext(); WrappedMessageContext wrappedContext = (WrappedMessageContext) context.getMessageContext();
...@@ -57,7 +54,8 @@ public abstract class AbstractIAService { ...@@ -57,7 +54,8 @@ public abstract class AbstractIAService {
// Create asynchronous SOAP Response Message // Create asynchronous SOAP Response Message
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
builder.append("<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:sch='http://siserver.org/schema'>"); builder.append(
"<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:sch='http://siserver.org/schema'>");
builder.append(" <soapenv:Header/>"); builder.append(" <soapenv:Header/>");
builder.append(" <soapenv:Body>"); builder.append(" <soapenv:Body>");
builder.append(" <sch:invokeResponse>"); builder.append(" <sch:invokeResponse>");
...@@ -69,7 +67,7 @@ public abstract class AbstractIAService { ...@@ -69,7 +67,7 @@ public abstract class AbstractIAService {
String key = paramIter.getKey(); String key = paramIter.getKey();
String value = paramIter.getValue(); String value = paramIter.getValue();