Author: jbonofre
Date: Wed Jul 22 19:24:08 2009
New Revision: 796847
URL: http://svn.apache.org/viewvc?rev=796847&view=rev
Log:
Commit a first basic WSDL.
Added:
servicemix/components/engines/servicemix-exec/trunk/src/main/resources/servicemix-exec.wsdl
(with props)
Modified:
servicemix/components/engines/servicemix-exec/trunk/src/main/java/org/apache/servicemix/exec/ExecEndpoint.java
Modified:
servicemix/components/engines/servicemix-exec/trunk/src/main/java/org/apache/servicemix/exec/ExecEndpoint.java
URL:
http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-exec/trunk/src/main/java/org/apache/servicemix/exec/ExecEndpoint.java?rev=796847&r1=796846&r2=796847&view=diff
==============================================================================
---
servicemix/components/engines/servicemix-exec/trunk/src/main/java/org/apache/servicemix/exec/ExecEndpoint.java
(original)
+++
servicemix/components/engines/servicemix-exec/trunk/src/main/java/org/apache/servicemix/exec/ExecEndpoint.java
Wed Jul 22 19:24:08 2009
@@ -16,6 +16,7 @@
*/
package org.apache.servicemix.exec;
+import javax.jbi.management.DeploymentException;
import javax.jbi.messaging.ExchangeStatus;
import javax.jbi.messaging.InOut;
import javax.jbi.messaging.MessageExchange;
@@ -37,15 +38,8 @@
*/
public class ExecEndpoint extends ProviderEndpoint {
- private String command; // the command can be static (define in the
- // descriptor) or provided in the incoming message
- private ExecMarshalerSupport marshaler = new DefaultExecMarshaler(); //
the
-
//
marshaler
-
// that
-
// parse
-
// the
-
// in
-
//
message
+ private String command; // the command can be static (define in the
descriptor) or provided in the incoming message
+ private ExecMarshalerSupport marshaler = new DefaultExecMarshaler(); //
the default exec marshaler
public String getCommand() {
return command;
@@ -84,6 +78,26 @@
public void setMarshaler(ExecMarshalerSupport marshaler) {
this.marshaler = marshaler;
}
+
+ /*
+ * (non-Javadoc)
+ * @see
org.apache.servicemix.common.endpoints.AbstractEndpoint#validate()
+ */
+ @Override
+ public void validate() throws DeploymentException {
+ // TODO validate the WSDL
+ super.validate();
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.apache.servicemix.common.endpoints.SimpleEndpoint#start()
+ */
+ @Override
+ public void start() throws Exception {
+ // TODO register the WSDL definition in the endpoint definition
+ // TODO register the WSDL content in the endpoint description (the
definition document)
+ }
/*
* (non-Javadoc)
@@ -126,6 +140,8 @@
return;
} else {
String exec = null;
+
+ // TODO parse and extract data from the in SOAP envelope
// try to extract the command from the in message
content
if (exchange.getMessage("in") != null) {
Added:
servicemix/components/engines/servicemix-exec/trunk/src/main/resources/servicemix-exec.wsdl
URL:
http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-exec/trunk/src/main/resources/servicemix-exec.wsdl?rev=796847&view=auto
==============================================================================
---
servicemix/components/engines/servicemix-exec/trunk/src/main/resources/servicemix-exec.wsdl
(added)
+++
servicemix/components/engines/servicemix-exec/trunk/src/main/resources/servicemix-exec.wsdl
Wed Jul 22 19:24:08 2009
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions name="servicemix-exec"
+
targetNamespace="http://servicemix.apache.org/servicemix-exec"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap"
+ xmlns:tns="http://servicemix.apache.org/servicemix-exec"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <message name="ExecRequest">
+ <part name="command" type="xsd:string"/>
+ </message>
+ <message name="ExecResponse">
+ <part name="output" type="xsd:string"/>
+ </message>
+
+ <portType name="ExecPortType">
+ <operation name="exec">
+ <input message="tns:ExecRequest"/>
+ <output message="tns:ExecResponse"/>
+ </operation>
+ </portType>
+
+ <binding name="ExecBinding" type="ExecPortType">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="exec">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </binding>
+
+ <service name="ExecService">
+ <documentation>WSDL for ServiceMix Exec component</documentation>
+ <port binding="tns:ExecBinding" name="ExecPort">
+ <soap:address location="nmr://exec"/>
+ </port>
+ </service>
+
+</wsdl:definitions>
\ No newline at end of file
Propchange:
servicemix/components/engines/servicemix-exec/trunk/src/main/resources/servicemix-exec.wsdl
------------------------------------------------------------------------------
svn:mime-type = text/plain