Author: asankha
Date: Sun Nov 19 11:04:40 2006
New Revision: 476886
URL: http://svn.apache.org/viewvc?view=rev&rev=476886
Log:
fix samples to demonstrate basic proxy services
and an example using Rampart
Includes updates to the documentation in the README.txt
added a log4j properties to suppress unwanted console output during unit test
execution
Added:
incubator/synapse/trunk/java/modules/core/src/test/resources/
incubator/synapse/trunk/java/modules/core/src/test/resources/log4j.properties
incubator/synapse/trunk/java/modules/samples/src/main/java/samples/userguide/PWCallback.java
incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_100.xml
incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_101.xml
incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_102.xml
Removed:
incubator/synapse/trunk/java/modules/samples/src/main/java/samples/userguide/DirectStockQuoteClient.java
Modified:
incubator/synapse/trunk/java/modules/samples/src/main/java/samples/userguide/StockQuoteClient.java
incubator/synapse/trunk/java/modules/samples/src/main/scripts/README.txt
incubator/synapse/trunk/java/modules/samples/src/main/scripts/build.xml
incubator/synapse/trunk/java/repository/conf/sample/resources/policy/policy_1.xml
incubator/synapse/trunk/java/repository/conf/sample/resources/proxy/sample_proxy_1.wsdl
Added:
incubator/synapse/trunk/java/modules/core/src/test/resources/log4j.properties
URL:
http://svn.apache.org/viewvc/incubator/synapse/trunk/java/modules/core/src/test/resources/log4j.properties?view=auto&rev=476886
==============================================================================
---
incubator/synapse/trunk/java/modules/core/src/test/resources/log4j.properties
(added)
+++
incubator/synapse/trunk/java/modules/core/src/test/resources/log4j.properties
Sun Nov 19 11:04:40 2006
@@ -0,0 +1,42 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+log4j.rootCategory=ERROR,logfile
+
+# Set the level to DEBUG if you want to log all Exceptions (some of them
aren't errors)
+#log4j.category.org.apache.axis2=INFO
+log4j.category.org.apache.synapse=INFO
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+
+log4j.appender.stdout.layout.ConversionPattern=[%t] %-5p %C{1} - %m %n
+
+#### appender writes to a file
+log4j.appender.logfile=org.apache.log4j.RollingFileAppender
+log4j.appender.logfile.File=logs/logfile.log
+
+
+# Control the maximum log file size
+log4j.appender.logfile.MaxFileSize=1000KB
+# Archive log files (one backup file here)
+log4j.appender.logfile.MaxBackupIndex=10
+
+log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
+log4j.appender.logfile.layout.ConversionPattern=%6r [%t] %5p %C{1} (%F:%L) -
%m%n
\ No newline at end of file
Added:
incubator/synapse/trunk/java/modules/samples/src/main/java/samples/userguide/PWCallback.java
URL:
http://svn.apache.org/viewvc/incubator/synapse/trunk/java/modules/samples/src/main/java/samples/userguide/PWCallback.java?view=auto&rev=476886
==============================================================================
---
incubator/synapse/trunk/java/modules/samples/src/main/java/samples/userguide/PWCallback.java
(added)
+++
incubator/synapse/trunk/java/modules/samples/src/main/java/samples/userguide/PWCallback.java
Sun Nov 19 11:04:40 2006
@@ -0,0 +1,182 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package samples.userguide;
+
+import org.apache.ws.security.WSPasswordCallback;
+
+import javax.security.auth.callback.Callback;
+import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.callback.UnsupportedCallbackException;
+
+import java.io.IOException;
+
+public class PWCallback implements CallbackHandler {
+
+
+ /**
+ * Field key
+ */
+
+ private static final byte[] key = {
+
+ (byte) 0x31, (byte) 0xfd, (byte) 0xcb, (byte) 0xda, (byte) 0xfb,
+
+ (byte) 0xcd, (byte) 0x6b, (byte) 0xa8, (byte) 0xe6, (byte) 0x19,
+
+ (byte) 0xa7, (byte) 0xbf, (byte) 0x51, (byte) 0xf7, (byte) 0xc7,
+
+ (byte) 0x3e, (byte) 0x80, (byte) 0xae, (byte) 0x98, (byte) 0x51,
+
+ (byte) 0xc8, (byte) 0x51, (byte) 0x34, (byte) 0x04,
+
+ };
+
+ /*
+
+ * (non-Javadoc)
+
+ * @see
javax.security.auth.callback.CallbackHandler#handle(javax.security.auth.callback.Callback[])
+
+ */
+
+
+ /**
+ * Method handle
+ *
+ * @param callbacks
+ * @throws java.io.IOException
+ * @throws javax.security.auth.callback.UnsupportedCallbackException
+ *
+ */
+
+ public void handle(Callback[] callbacks)
+
+ throws IOException, UnsupportedCallbackException {
+
+
+ for (int i = 0; i < callbacks.length; i++) {
+
+ if (callbacks[i] instanceof WSPasswordCallback) {
+
+ WSPasswordCallback pc = (WSPasswordCallback) callbacks[i];
+
+ /*
+
+ * This usage type is used only in case we received a
+
+ * username token with a password of type PasswordText or
+
+ * an unknown password type.
+
+ *
+
+ * This case the WSPasswordCallback object contains the
+
+ * identifier (aka username), the password we received, and
+
+ * the password type string to identify the type.
+
+ *
+
+ * Here we perform only a very simple check.
+
+ */
+
+ if (pc.getUsage() ==
WSPasswordCallback.USERNAME_TOKEN_UNKNOWN) {
+
+ if (pc.getIdentifer().equals("Ron") &&
pc.getPassword().equals("noR")) {
+
+ return;
+
+ }
+
+ if (pc.getIdentifer().equals("joe") &&
pc.getPassword().equals("eoj")) {
+
+ return;
+
+ }
+
+ if (pc.getPassword().equals("sirhC")) {
+
+ return;
+
+ }
+
+ throw new UnsupportedCallbackException(callbacks[i],
+
+ "check failed");
+
+ }
+
+ /*
+
+ * here call a function/method to lookup the password for
+
+ * the given identifier (e.g. a user name or keystore alias)
+
+ * e.g.:
pc.setPassword(passStore.getPassword(pc.getIdentfifier))
+
+ * for Testing we supply a fixed name here.
+
+ */
+
+ if (pc.getUsage() == WSPasswordCallback.KEY_NAME) {
+
+ pc.setKey(key);
+
+ } else if (pc.getIdentifer().equals("alice")) {
+
+ pc.setPassword("password");
+
+ } else if (pc.getIdentifer().equals("bob")) {
+
+ pc.setPassword("password");
+
+ } else if (pc.getIdentifer().equals("Ron")) {
+
+ pc.setPassword("noR");
+
+ } else if (pc.getIdentifer().equals("joe")) {
+
+ pc.setPassword("eoj");
+
+ } else if (pc.getIdentifer().equals("ip")) {
+
+ pc.setPassword("password");
+
+ } else {
+
+ pc.setPassword("sirhC");
+
+ }
+
+ } else {
+
+ throw new UnsupportedCallbackException(callbacks[i],
+
+ "Unrecognized Callback");
+
+ }
+
+ }
+
+ }
+
+}
\ No newline at end of file
Modified:
incubator/synapse/trunk/java/modules/samples/src/main/java/samples/userguide/StockQuoteClient.java
URL:
http://svn.apache.org/viewvc/incubator/synapse/trunk/java/modules/samples/src/main/java/samples/userguide/StockQuoteClient.java?view=diff&rev=476886&r1=476885&r2=476886
==============================================================================
---
incubator/synapse/trunk/java/modules/samples/src/main/java/samples/userguide/StockQuoteClient.java
(original)
+++
incubator/synapse/trunk/java/modules/samples/src/main/java/samples/userguide/StockQuoteClient.java
Sun Nov 19 11:04:40 2006
@@ -20,12 +20,16 @@
package samples.userguide;
import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.impl.builder.StAXOMBuilder;
import org.apache.axis2.Constants;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.Options;
import org.apache.axis2.client.ServiceClient;
import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.context.ConfigurationContextFactory;
+import org.apache.rampart.RampartMessageData;
+import org.apache.neethi.PolicyEngine;
+import org.apache.neethi.Policy;
import samples.common.StockQuoteHandler;
import javax.xml.namespace.QName;
@@ -43,11 +47,13 @@
String turl = "http://localhost:8080";
String sAction = "urn:getQuote";
String repo = "client_repo";
+ String secpol = null;
if (args.length > 0) symbol = args[0];
if (args.length > 1) xurl = args[1];
if (args.length > 2) turl = args[2];
if (args.length > 3) repo = args[3];
+ if (args.length > 4) secpol = args[4];
try {
OMElement getQuote =
StockQuoteHandler.createStandardRequestPayload(symbol);
@@ -59,6 +65,11 @@
options.setProperty(Constants.Configuration.TRANSPORT_URL,
turl);
options.setAction(sAction);
+ if (secpol != null && secpol.length() > 0) {
+ options.setProperty(
+ RampartMessageData.KEY_RAMPART_POLICY, loadPolicy(secpol));
+ }
+
ServiceClient serviceClient = null;
if (repo != null) {
ConfigurationContext configContext =
@@ -69,6 +80,10 @@
serviceClient = new ServiceClient();
}
serviceClient.engageModule(new QName("addressing"));
+ if (secpol != null && secpol.length() > 0) {
+ serviceClient.engageModule(new QName("rampart"));
+ }
+
serviceClient.setOptions(options);
OMElement result =
serviceClient.sendReceive(getQuote).getFirstElement();
@@ -78,6 +93,11 @@
} catch (Exception e) {
e.printStackTrace();
}
+ }
+
+ private static Policy loadPolicy(String xmlPath) throws Exception {
+ StAXOMBuilder builder = new StAXOMBuilder(xmlPath);
+ return PolicyEngine.getPolicy(builder.getDocumentElement());
}
}
Modified:
incubator/synapse/trunk/java/modules/samples/src/main/scripts/README.txt
URL:
http://svn.apache.org/viewvc/incubator/synapse/trunk/java/modules/samples/src/main/scripts/README.txt?view=diff&rev=476886&r1=476885&r2=476886
==============================================================================
--- incubator/synapse/trunk/java/modules/samples/src/main/scripts/README.txt
(original)
+++ incubator/synapse/trunk/java/modules/samples/src/main/scripts/README.txt
Sun Nov 19 11:04:40 2006
@@ -337,4 +337,77 @@
INFO SimpleURLRegistry - ==> Repository fetch of resource with key :
transform/transform_back.xslt
Thus the SimpleURLRegistry allows resource to be cached, and updates detected
so that changes
-could be reloaded without restarting the Synapse instance.
\ No newline at end of file
+could be reloaded without restarting the Synapse instance.
+
+Proxy services
+Sample 100:
+Objective: Introduction to Synapse proxy services
+
+Pre-Requisites:
+Start the Synapse configuration numbered 100: i.e. synapse -sample 100
+Start the Axis2 server and deploy the SimpleStockQuoteService (Refer steps
above)
+
+Once Synapse starts, you could go to
http://localhost:8080/axis2/services/StockQuoteProxy?wsdl and
+view the WSDL for the proxy service defined in the configuration. This WSDL is
based on the source
+WSDL supplied in the proxy service definition, and is updated to reflect the
proxy service EPR. If
+a proxy service definition does not specify a target for its messages, the
Synapse mediation rules
+are applied to route messages.
+
+Execute the stock quote client by requesting for a stock quote on the proxy
service as follows:
+ ant stockquote -Durl=http://localhost:8080/axis2/services/StockQuoteProxy
+
+You will now notice that the Synapse mediation rules were applied and the
request was routed to the
+SimpleStockQuoteService service on the local Axis2 instance. The response
message is mediated using
+the same rules, as an outgoing sequence is not specified in this example
either. The client should
+receive a stock quote reply from the proxy service. Also the client could get
the WSDL for the proxy
+service by requesting for
http://localhost:8080/axis2/services/StockQuoteProxy?wsdl
+
+Sample 101:
+Objective: Using custom sequences and endpoints for message mediation with
proxy services
+
+Pre-Requisites:
+Start the Synapse configuration numbered 101: i.e. synapse -sample 101
+Start the Axis2 server and deploy the SimpleStockQuoteService (Refer steps
above)
+
+This configuration creates two proxy services with different behaviour. The
first proxy service
+'StockQuoteProxy1' uses the sequence named 'proxy_1' as its main mediation
sequence for messages
+it receives. The second proxy service 'StockQuoteProxy2' is set to directly
forward messages that
+are received to the endpoint named 'proxy_2_endpoint' without any mediation.
+
+You could send a stock quote request to each of these proxy services and
receive the reply generated
+by the actual service hosted on the Axis2 instance. Use the -Durl=<EPR>
property when executing the
+client as per example 100, to request on the two proxy services.
+
+Sample 102:
+Objective: Attaching service level WS-Security policies to proxy services
+
+Pre-Requisites:
+Start the Synapse configuration numbered 102: i.e. synapse -sample 102
+Copy the Apache Rampart module (e.g. rampart-1.1-SNAPSHOT.mar) into the
modules directories of both
+the sample Axis2 client and server: samples/axis2Client/client_repo/modules
and samples/axis2Server/
+repository/modules. The Rampart module could be found at repository\modules
and is not duplicated
+in the distributions due to its large file size.
+Start the Axis2 server and deploy the SimpleStockQuoteService (Refer steps
above)
+
+To execute the sample use the stock quote client with the 'secpolicy' system
property passed in as
+follows: e.g. ant stockquote
-Dsecpolicy=..\..\repository\conf\sample\resources\policy\policy_1.xml
+
+The sample security policy policy_1.xml uses timestamps and username token
tuhentication on the
+stock quote request. Following the debug logs on the Synapse server you could
notice the presence
+of WS-Security headers on the incoming message. By requesting the WSDL of the
proxy service you
+could also see that the supplied policy file has been attached to the
specified WSDL as well.
+e.g. http://localhost:8080/axis2/services/StockQuoteProxy?wsdl
+
+A proxy service with an attached policy - such as a WS-Security policy -
ensures that messages which
+goes through mediation have satisfied the constraints as specified by the
supplied policy. i.e. for
+example, if any WS-Security validations fail, the message will not reach
Synapse mediation, but
+the client would get an appropriate error message from the Apache Rampart
module directly.
+
+The mediation shows the header mediator used to strip out the wsse:Security
header from the current
+message before being forwarded to the SimpleStockQuoteService. Hence the
message sent to the stock
+quote service EPR is without any WS-Security headers as can be seen from the
log messages.
+
+Note: In this example, Apache Rampart was engaged on the proxy service through
the policy specified.
+However, if you wish to engage the default WS-Security policy of Rampart on a
proxy service, you
+could use the <enableSec/> option on a proxy service instead. This will be
similar in function to
+'engaging' Rampart on an Axis2 service.
\ No newline at end of file
Modified:
incubator/synapse/trunk/java/modules/samples/src/main/scripts/build.xml
URL:
http://svn.apache.org/viewvc/incubator/synapse/trunk/java/modules/samples/src/main/scripts/build.xml?view=diff&rev=476886&r1=476885&r2=476886
==============================================================================
--- incubator/synapse/trunk/java/modules/samples/src/main/scripts/build.xml
(original)
+++ incubator/synapse/trunk/java/modules/samples/src/main/scripts/build.xml Sun
Nov 19 11:04:40 2006
@@ -43,8 +43,9 @@
ant stockquote [-Dsymbol=IBM]
[-Durl=http://localhost:9000/axis2/services/SimpleStockQuoteService]
[-Dsynapseurl=http://localhost:8080] [-Drepository=client_repo]
-
- ant proxystockquote
+
[-Dsecpolicy=..\..\repository\conf\sample\resources\policy\policy_1.xml]
+
+ ant proxystockquote
Use the http proxy client - Synapse in "transparent mode" as an
HTTP proxy
Use default sample configuration (i.e. start with -sample 0)
@@ -72,48 +73,15 @@
ant customquote [-Dsymbol=IBM]
[-Durl=http://localhost:9000/axis2/services/SimpleStockQuoteService]
[-Dsynapseurl=http://localhost:8080]
-
- ant advancedquote
- Validate custom quote requests against a schema before sending out
- Use sample configuration #2 (i.e. start with -sample 2)
-
- examples:
- ant advancedquote
- ant advancedquote
-
[-Durl=http://localhost:9000/axis2/services/SimpleStockQuoteService]
- [-Dsynapseurl=http://localhost:8080]
-
- ant simplequote
- Use a simple quote using addressing to demonstrate the custom server
- configuration created programmatically
- Use sample configuration created programmatically (i.e. start using
custom.bat/sh)
-
- examples:
- ant simplequote
- ant simplequote [-Dsymbol=IBM]
-
[-Durl=http://localhost:9000/axis2/services/SimpleStockQuoteService]
- [-Dsynapseurl=http://localhost:8080] [-Drepository=client_repo]
-
- ant proxyquote
- Use Proxy services to query stock prices. (Must be used with the
sample configuration # 3)
-
- examples:
- ant proxyquote
- ant proxyquote -Dsymbol=IBM
-
-DfwdProxy=http://localhost:8080/axis2/services/StockQuoteForwardProxy
-
-DdefProxy=http://localhost:8080/axis2/services/StockQuoteDefaultProxy
-
-DseqProxy=http://localhost:8080/axis2/services/StockQuoteSequenceProxy"
</echo>
</target>
- <property name="symbol" value="IBM"/>
+ <property name="symbol" value="IBM"/>
<property name="url"
value="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
<property name="synapseurl" value="http://localhost:8080"/>
<property name="gatewayurl" value="http://localhost:8080/StockQuote"/>
<property name="repository" value="client_repo"/>
- <property name="fwdProxy"
value="http://localhost:8080/axis2/services/StockQuoteForwardProxy"/>
- <property name="defProxy"
value="http://localhost:8080/axis2/services/StockQuoteDefaultProxy"/>
- <property name="seqProxy"
value="http://localhost:8080/axis2/services/StockQuoteSequenceProxy"/>
+ <property name="secpolicy" value=""/>
<property name="class.dir" value="target/classes"/>
@@ -135,6 +103,7 @@
<arg value="${url}"/>
<arg value="${synapseurl}"/>
<arg value="${repository}"/>
+ <arg value="${secpolicy}"/>
</java>
</target>
@@ -161,34 +130,6 @@
<arg value="${symbol}"/>
<arg value="${url}"/>
<arg value="${synapseurl}"/>
- </java>
- </target>
-
- <target name="advancedquote" depends="compile">
- <java classname="samples.mediation.AdvancedQuoteClient"
- classpathref="javac.classpath" fork="true">
- <arg value="${url}"/>
- <arg value="${synapseurl}"/>
- </java>
- </target>
-
- <target name="simplequote" depends="compile">
- <java classname="samples.userguide.StockQuoteClient"
- classpathref="javac.classpath" fork="true">
- <arg value="${symbol}"/>
- <arg value="${url}"/>
- <arg value="${synapseurl}"/>
- <arg value="${repository}"/>
- </java>
- </target>
-
- <target name="proxyquote" depends="compile">
- <java classname="samples.mediation.ProxyStockQuoteClient"
- classpathref="javac.classpath" fork="true">
- <arg value="${symbol}"/>
- <arg value="${fwdProxy}"/>
- <arg value="${defProxy}"/>
- <arg value="${seqProxy}"/>
</java>
</target>
Modified:
incubator/synapse/trunk/java/repository/conf/sample/resources/policy/policy_1.xml
URL:
http://svn.apache.org/viewvc/incubator/synapse/trunk/java/repository/conf/sample/resources/policy/policy_1.xml?view=diff&rev=476886&r1=476885&r2=476886
==============================================================================
---
incubator/synapse/trunk/java/repository/conf/sample/resources/policy/policy_1.xml
(original)
+++
incubator/synapse/trunk/java/repository/conf/sample/resources/policy/policy_1.xml
Sun Nov 19 11:04:40 2006
@@ -49,19 +49,19 @@
<ramp:RampartConfig xmlns:ramp="http://ws.apache.org/rampart/policy">
<ramp:user>alice</ramp:user>
<ramp:encryptionUser>bob</ramp:encryptionUser>
-
<ramp:passwordCallbackClass>org.apache.rampart.PWCallback</ramp:passwordCallbackClass>
+
<ramp:passwordCallbackClass>samples.userguide.PWCallback</ramp:passwordCallbackClass>
<ramp:signatureCrypto>
<ramp:crypto
provider="org.apache.ws.security.components.crypto.Merlin">
<ramp:property
name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</ramp:property>
- <ramp:property
name="org.apache.ws.security.crypto.merlin.file">synapse_repository/conf/sample/store.jks</ramp:property>
+ <ramp:property
name="org.apache.ws.security.crypto.merlin.file">../../repository/conf/sample/resources/security/store.jks</ramp:property>
<ramp:property
name="org.apache.ws.security.crypto.merlin.keystore.password">password</ramp:property>
</ramp:crypto>
</ramp:signatureCrypto>
<ramp:encryptionCypto>
<ramp:crypto
provider="org.apache.ws.security.components.crypto.Merlin">
<ramp:property
name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</ramp:property>
- <ramp:property
name="org.apache.ws.security.crypto.merlin.file">synapse_repository/conf/sample/store.jks</ramp:property>
+ <ramp:property
name="org.apache.ws.security.crypto.merlin.file">../../repository/conf/sample/resources/security/store.jks</ramp:property>
<ramp:property
name="org.apache.ws.security.crypto.merlin.keystore.password">password</ramp:property>
</ramp:crypto>
</ramp:encryptionCypto>
Modified:
incubator/synapse/trunk/java/repository/conf/sample/resources/proxy/sample_proxy_1.wsdl
URL:
http://svn.apache.org/viewvc/incubator/synapse/trunk/java/repository/conf/sample/resources/proxy/sample_proxy_1.wsdl?view=diff&rev=476886&r1=476885&r2=476886
==============================================================================
---
incubator/synapse/trunk/java/repository/conf/sample/resources/proxy/sample_proxy_1.wsdl
(original)
+++
incubator/synapse/trunk/java/repository/conf/sample/resources/proxy/sample_proxy_1.wsdl
Sun Nov 19 11:04:40 2006
@@ -1,364 +1,141 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you under the Apache License, Version 2.0 (the
- ~ "License"); you may not use this file except in compliance
- ~ with the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
- -->
-
-<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="http://ws.invesbot.com/" xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://ws.invesbot.com/">
- <wsdl:types>
- <s:schema elementFormDefault="qualified"
targetNamespace="http://ws.invesbot.com/">
- <s:element name="GetQuotes">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0"
maxOccurs="1" name="symbols" type="s:string"/>
- </s:sequence>
- </s:complexType>
- </s:element>
- <s:element name="GetQuotesResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0"
maxOccurs="1" name="GetQuotesResult">
- <s:complexType
mixed="true">
- <s:sequence>
- <s:any/>
- </s:sequence>
- </s:complexType>
- </s:element>
- </s:sequence>
- </s:complexType>
- </s:element>
- <s:element name="GetQuote">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0"
maxOccurs="1" name="symbol" type="s:string"/>
- </s:sequence>
- </s:complexType>
- </s:element>
- <s:element name="GetQuoteResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0"
maxOccurs="1" name="GetQuoteResult">
- <s:complexType
mixed="true">
- <s:sequence>
- <s:any/>
- </s:sequence>
- </s:complexType>
- </s:element>
- </s:sequence>
- </s:complexType>
- </s:element>
- <s:element name="GetMarketIndex">
- <s:complexType/>
- </s:element>
- <s:element name="GetMarketIndexResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0"
maxOccurs="1" name="GetMarketIndexResult">
- <s:complexType
mixed="true">
- <s:sequence>
- <s:any/>
- </s:sequence>
- </s:complexType>
- </s:element>
- </s:sequence>
- </s:complexType>
- </s:element>
- <s:element name="GetECNQuotes">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0"
maxOccurs="1" name="symbols" type="s:string"/>
- </s:sequence>
- </s:complexType>
- </s:element>
- <s:element name="GetECNQuotesResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0"
maxOccurs="1" name="GetECNQuotesResult">
- <s:complexType
mixed="true">
- <s:sequence>
- <s:any/>
- </s:sequence>
- </s:complexType>
- </s:element>
- </s:sequence>
- </s:complexType>
- </s:element>
- </s:schema>
- </wsdl:types>
- <wsdl:message name="GetQuotesSoapIn">
- <wsdl:part name="parameters" element="tns:GetQuotes"/>
- </wsdl:message>
- <wsdl:message name="GetQuotesSoapOut">
- <wsdl:part name="parameters" element="tns:GetQuotesResponse"/>
- </wsdl:message>
- <wsdl:message name="GetQuoteSoapIn">
- <wsdl:part name="parameters" element="tns:GetQuote"/>
- </wsdl:message>
- <wsdl:message name="GetQuoteSoapOut">
- <wsdl:part name="parameters" element="tns:GetQuoteResponse"/>
- </wsdl:message>
- <wsdl:message name="GetMarketIndexSoapIn">
- <wsdl:part name="parameters" element="tns:GetMarketIndex"/>
- </wsdl:message>
- <wsdl:message name="GetMarketIndexSoapOut">
- <wsdl:part name="parameters"
element="tns:GetMarketIndexResponse"/>
- </wsdl:message>
- <wsdl:message name="GetECNQuotesSoapIn">
- <wsdl:part name="parameters" element="tns:GetECNQuotes"/>
- </wsdl:message>
- <wsdl:message name="GetECNQuotesSoapOut">
- <wsdl:part name="parameters"
element="tns:GetECNQuotesResponse"/>
- </wsdl:message>
- <wsdl:message name="GetQuotesHttpGetIn">
- <wsdl:part name="symbols" type="s:string"/>
- </wsdl:message>
- <wsdl:message name="GetQuotesHttpGetOut">
- <wsdl:part name="Body"/>
- </wsdl:message>
- <wsdl:message name="GetQuoteHttpGetIn">
- <wsdl:part name="symbol" type="s:string"/>
- </wsdl:message>
- <wsdl:message name="GetQuoteHttpGetOut">
- <wsdl:part name="Body"/>
- </wsdl:message>
- <wsdl:message name="GetMarketIndexHttpGetIn"/>
- <wsdl:message name="GetMarketIndexHttpGetOut">
- <wsdl:part name="Body"/>
- </wsdl:message>
- <wsdl:message name="GetECNQuotesHttpGetIn">
- <wsdl:part name="symbols" type="s:string"/>
- </wsdl:message>
- <wsdl:message name="GetECNQuotesHttpGetOut">
- <wsdl:part name="Body"/>
- </wsdl:message>
- <wsdl:message name="GetQuotesHttpPostIn">
- <wsdl:part name="symbols" type="s:string"/>
- </wsdl:message>
- <wsdl:message name="GetQuotesHttpPostOut">
- <wsdl:part name="Body"/>
- </wsdl:message>
- <wsdl:message name="GetQuoteHttpPostIn">
- <wsdl:part name="symbol" type="s:string"/>
- </wsdl:message>
- <wsdl:message name="GetQuoteHttpPostOut">
- <wsdl:part name="Body"/>
- </wsdl:message>
- <wsdl:message name="GetMarketIndexHttpPostIn"/>
- <wsdl:message name="GetMarketIndexHttpPostOut">
- <wsdl:part name="Body"/>
- </wsdl:message>
- <wsdl:message name="GetECNQuotesHttpPostIn">
- <wsdl:part name="symbols" type="s:string"/>
- </wsdl:message>
- <wsdl:message name="GetECNQuotesHttpPostOut">
- <wsdl:part name="Body"/>
- </wsdl:message>
- <wsdl:portType name="StockQuotesSoap">
- <wsdl:operation name="GetQuotes">
- <wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Enter symbols, seperated by
space, Quotes delayed in 20 minutes.</wsdl:documentation>
- <wsdl:input message="tns:GetQuotesSoapIn"/>
- <wsdl:output message="tns:GetQuotesSoapOut"/>
- </wsdl:operation>
- <wsdl:operation name="GetQuote">
- <wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Enter one symbol, quote delayed
in 20 minutes.</wsdl:documentation>
- <wsdl:input message="tns:GetQuoteSoapIn"/>
- <wsdl:output message="tns:GetQuoteSoapOut"/>
- </wsdl:operation>
- <wsdl:operation name="GetMarketIndex">
- <wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get Dow, Nasdaq, S&P500
index.</wsdl:documentation>
- <wsdl:input message="tns:GetMarketIndexSoapIn"/>
- <wsdl:output message="tns:GetMarketIndexSoapOut"/>
- </wsdl:operation>
- <wsdl:operation name="GetECNQuotes">
- <wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Enter symbols, seperated by
space, Real-Time ECN quote.</wsdl:documentation>
- <wsdl:input message="tns:GetECNQuotesSoapIn"/>
- <wsdl:output message="tns:GetECNQuotesSoapOut"/>
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:portType name="StockQuotesHttpGet">
- <wsdl:operation name="GetQuotes">
- <wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Enter symbols, seperated by
space, Quotes delayed in 20 minutes.</wsdl:documentation>
- <wsdl:input message="tns:GetQuotesHttpGetIn"/>
- <wsdl:output message="tns:GetQuotesHttpGetOut"/>
- </wsdl:operation>
- <wsdl:operation name="GetQuote">
- <wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Enter one symbol, quote delayed
in 20 minutes.</wsdl:documentation>
- <wsdl:input message="tns:GetQuoteHttpGetIn"/>
- <wsdl:output message="tns:GetQuoteHttpGetOut"/>
- </wsdl:operation>
- <wsdl:operation name="GetMarketIndex">
- <wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get Dow, Nasdaq, S&P500
index.</wsdl:documentation>
- <wsdl:input message="tns:GetMarketIndexHttpGetIn"/>
- <wsdl:output message="tns:GetMarketIndexHttpGetOut"/>
- </wsdl:operation>
- <wsdl:operation name="GetECNQuotes">
- <wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Enter symbols, seperated by
space, Real-Time ECN quote.</wsdl:documentation>
- <wsdl:input message="tns:GetECNQuotesHttpGetIn"/>
- <wsdl:output message="tns:GetECNQuotesHttpGetOut"/>
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:portType name="StockQuotesHttpPost">
- <wsdl:operation name="GetQuotes">
- <wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Enter symbols, seperated by
space, Quotes delayed in 20 minutes.</wsdl:documentation>
- <wsdl:input message="tns:GetQuotesHttpPostIn"/>
- <wsdl:output message="tns:GetQuotesHttpPostOut"/>
- </wsdl:operation>
- <wsdl:operation name="GetQuote">
- <wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Enter one symbol, quote delayed
in 20 minutes.</wsdl:documentation>
- <wsdl:input message="tns:GetQuoteHttpPostIn"/>
- <wsdl:output message="tns:GetQuoteHttpPostOut"/>
- </wsdl:operation>
- <wsdl:operation name="GetMarketIndex">
- <wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get Dow, Nasdaq, S&P500
index.</wsdl:documentation>
- <wsdl:input message="tns:GetMarketIndexHttpPostIn"/>
- <wsdl:output message="tns:GetMarketIndexHttpPostOut"/>
- </wsdl:operation>
- <wsdl:operation name="GetECNQuotes">
- <wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Enter symbols, seperated by
space, Real-Time ECN quote.</wsdl:documentation>
- <wsdl:input message="tns:GetECNQuotesHttpPostIn"/>
- <wsdl:output message="tns:GetECNQuotesHttpPostOut"/>
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:binding name="StockQuotesSoap" type="tns:StockQuotesSoap">
- <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="GetQuotes">
- <soap:operation
soapAction="http://ws.invesbot.com/GetQuotes" style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="GetQuote">
- <soap:operation
soapAction="http://ws.invesbot.com/GetQuote" style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="GetMarketIndex">
- <soap:operation
soapAction="http://ws.invesbot.com/GetMarketIndex" style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="GetECNQuotes">
- <soap:operation
soapAction="http://ws.invesbot.com/GetECNQuotes" style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:binding name="StockQuotesHttpGet" type="tns:StockQuotesHttpGet">
- <http:binding verb="GET"/>
- <wsdl:operation name="GetQuotes">
- <http:operation location="/GetQuotes"/>
- <wsdl:input>
- <http:urlEncoded/>
- </wsdl:input>
- <wsdl:output>
- <mime:content part="Body" type="text/xml"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="GetQuote">
- <http:operation location="/GetQuote"/>
- <wsdl:input>
- <http:urlEncoded/>
- </wsdl:input>
- <wsdl:output>
- <mime:content part="Body" type="text/xml"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="GetMarketIndex">
- <http:operation location="/GetMarketIndex"/>
- <wsdl:input>
- <http:urlEncoded/>
- </wsdl:input>
- <wsdl:output>
- <mime:content part="Body" type="text/xml"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="GetECNQuotes">
- <http:operation location="/GetECNQuotes"/>
- <wsdl:input>
- <http:urlEncoded/>
- </wsdl:input>
- <wsdl:output>
- <mime:content part="Body" type="text/xml"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:binding name="StockQuotesHttpPost" type="tns:StockQuotesHttpPost">
- <http:binding verb="POST"/>
- <wsdl:operation name="GetQuotes">
- <http:operation location="/GetQuotes"/>
- <wsdl:input>
- <mime:content
type="application/x-www-form-urlencoded"/>
- </wsdl:input>
- <wsdl:output>
- <mime:content part="Body" type="text/xml"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="GetQuote">
- <http:operation location="/GetQuote"/>
- <wsdl:input>
- <mime:content
type="application/x-www-form-urlencoded"/>
- </wsdl:input>
- <wsdl:output>
- <mime:content part="Body" type="text/xml"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="GetMarketIndex">
- <http:operation location="/GetMarketIndex"/>
- <wsdl:input>
- <mime:content
type="application/x-www-form-urlencoded"/>
- </wsdl:input>
- <wsdl:output>
- <mime:content part="Body" type="text/xml"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="GetECNQuotes">
- <http:operation location="/GetECNQuotes"/>
- <wsdl:input>
- <mime:content
type="application/x-www-form-urlencoded"/>
- </wsdl:input>
- <wsdl:output>
- <mime:content part="Body" type="text/xml"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:service name="StockQuotes">
- <wsdl:port name="StockQuotesSoap" binding="tns:StockQuotesSoap">
- <soap:address
location="http://ws.invesbot.com/stockquotes.asmx"/>
- </wsdl:port>
- <wsdl:port name="StockQuotesHttpGet"
binding="tns:StockQuotesHttpGet">
- <http:address
location="http://ws.invesbot.com/stockquotes.asmx"/>
- </wsdl:port>
- <wsdl:port name="StockQuotesHttpPost"
binding="tns:StockQuotesHttpPost">
- <http:address
location="http://ws.invesbot.com/stockquotes.asmx"/>
- </wsdl:port>
- </wsdl:service>
+<wsdl:definitions xmlns:axis2="http://services.samples"
+ xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
+ xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
+ xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
+ xmlns:ns1="http://services.samples/xsd"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ targetNamespace="http://services.samples">
+ <wsdl:documentation>SimpleStockQuoteService</wsdl:documentation>
+ <wsdl:types>
+ <xs:schema xmlns:ax21="http://services.samples/xsd"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://services.samples/xsd"
attributeFormDefault="qualified"
+ elementFormDefault="qualified">
+ <xs:element name="getQuote">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="request" type="ax21:GetQuote"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="GetQuote" type="ax21:GetQuote"/>
+ <xs:complexType name="GetQuote">
+ <xs:sequence>
+ <xs:element name="symbol" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="getQuoteResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="return"
type="ax21:GetQuoteResponse"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="GetQuoteResponse" type="ax21:GetQuoteResponse"/>
+ <xs:complexType name="GetQuoteResponse">
+ <xs:sequence>
+ <xs:element name="change" type="xs:double"/>
+ <xs:element name="earnings" type="xs:double"/>
+ <xs:element name="high" type="xs:double"/>
+ <xs:element name="last" type="xs:double"/>
+ <xs:element name="lastTradeTimestamp" type="xs:string"/>
+ <xs:element name="low" type="xs:double"/>
+ <xs:element name="marketCap" type="xs:double"/>
+ <xs:element name="name" type="xs:string"/>
+ <xs:element name="open" type="xs:double"/>
+ <xs:element name="peRatio" type="xs:double"/>
+ <xs:element name="percentageChange" type="xs:double"/>
+ <xs:element name="prevClose" type="xs:double"/>
+ <xs:element name="symbol" type="xs:string"/>
+ <xs:element name="volume" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="placeOrder">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="order" type="ax21:PlaceOrder"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="PlaceOrder" type="ax21:PlaceOrder"/>
+ <xs:complexType name="PlaceOrder">
+ <xs:sequence>
+ <xs:element name="price" type="xs:double"/>
+ <xs:element name="quantity" type="xs:int"/>
+ <xs:element name="symbol" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:schema>
+ </wsdl:types>
+ <wsdl:message name="placeOrderMessage">
+ <wsdl:part name="part1" element="ns1:placeOrder"/>
+ </wsdl:message>
+ <wsdl:message name="getQuoteMessage">
+ <wsdl:part name="part1" element="ns1:getQuote"/>
+ </wsdl:message>
+ <wsdl:message name="getQuoteResponseMessage">
+ <wsdl:part name="part1" element="ns1:getQuoteResponse"/>
+ </wsdl:message>
+ <wsdl:portType name="SimpleStockQuoteServicePortType">
+ <wsdl:operation name="placeOrder">
+ <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ message="axis2:placeOrderMessage"
wsaw:Action="urn:placeOrder"/>
+ </wsdl:operation>
+ <wsdl:operation name="getQuote">
+ <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ message="axis2:getQuoteMessage"
wsaw:Action="urn:getQuote"/>
+ <wsdl:output xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ message="axis2:getQuoteResponseMessage"
+
wsaw:Action="http://services.samples/SimpleStockQuoteServicePortType/getQuoteResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="SimpleStockQuoteServiceSOAP11Binding"
+ type="axis2:SimpleStockQuoteServicePortType">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
+ <wsdl:operation name="placeOrder">
+ <soap:operation soapAction="urn:placeOrder" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ <wsdl:operation name="getQuote">
+ <soap:operation soapAction="urn:getQuote" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="SimpleStockQuoteServiceSOAP12Binding"
+ type="axis2:SimpleStockQuoteServicePortType">
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
+ <wsdl:operation name="placeOrder">
+ <soap12:operation soapAction="urn:placeOrder" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ <wsdl:operation name="getQuote">
+ <soap12:operation soapAction="urn:getQuote" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="SimpleStockQuoteService">
+ <wsdl:port name="SimpleStockQuoteServiceSOAP11port_http"
+ binding="axis2:SimpleStockQuoteServiceSOAP11Binding">
+ <soap:address
location="http://10.0.0.4:9000/axis2/services/SimpleStockQuoteService"/>
+ </wsdl:port>
+ <wsdl:port name="SimpleStockQuoteServiceSOAP12port_http"
+ binding="axis2:SimpleStockQuoteServiceSOAP12Binding">
+ <soap12:address
location="http://10.0.0.4:9000/axis2/services/SimpleStockQuoteService"/>
+ </wsdl:port>
+ </wsdl:service>
</wsdl:definitions>
Added:
incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_100.xml
URL:
http://svn.apache.org/viewvc/incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_100.xml?view=auto&rev=476886
==============================================================================
--- incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_100.xml
(added)
+++ incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_100.xml
Sun Nov 19 11:04:40 2006
@@ -0,0 +1,47 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<synapse xmlns="http://ws.apache.org/ns/synapse">
+
+ <!-- introduction to Synapse proxy services. A web service proxy is
created and
+ hosted on Synapse based on the given WSDL and exposed over all available
+ transports for Synapse. If a proxy service should be exposed over only a
sub set
+ of the available transports, use the transports attribute -->
+ <definitions>
+ <set-property name="proxy_wsdl"
src="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
+ </definitions>
+
+ <proxies>
+ <proxy name="StockQuoteProxy">
+ <wsdl key="proxy_wsdl"/>
+ </proxy>
+ </proxies>
+
+ <rules>
+ <in>
+ <send>
+ <endpoint
address="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
+ </send>
+ </in>
+ <out>
+ <send/>
+ </out>
+ </rules>
+
+</synapse>
\ No newline at end of file
Added:
incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_101.xml
URL:
http://svn.apache.org/viewvc/incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_101.xml?view=auto&rev=476886
==============================================================================
--- incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_101.xml
(added)
+++ incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_101.xml
Sun Nov 19 11:04:40 2006
@@ -0,0 +1,52 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<synapse xmlns="http://ws.apache.org/ns/synapse">
+
+ <!-- using custom sequences for incoming and outgoing message mediation
with proxy services -->
+ <definitions>
+ <set-property name="proxy_wsdl"
src="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
+
+ <sequence name="proxy_1">
+ <send>
+ <endpoint
address="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
+ </send>
+ </sequence>
+
+ <endpoint name="proxy_2_endpoint"
address="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
+
+ </definitions>
+
+ <proxies>
+ <proxy name="StockQuoteProxy1">
+ <wsdl key="proxy_wsdl"/>
+ <target sequence="proxy_1"/>
+ </proxy>
+
+ <proxy name="StockQuoteProxy2">
+ <wsdl key="proxy_wsdl"/>
+ <target endpoint="proxy_2_endpoint"/>
+ </proxy>
+ </proxies>
+
+ <rules>
+ <send/>
+ </rules>
+
+</synapse>
\ No newline at end of file
Added:
incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_102.xml
URL:
http://svn.apache.org/viewvc/incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_102.xml?view=auto&rev=476886
==============================================================================
--- incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_102.xml
(added)
+++ incubator/synapse/trunk/java/repository/conf/sample/synapse_sample_102.xml
Sun Nov 19 11:04:40 2006
@@ -0,0 +1,50 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<synapse xmlns="http://ws.apache.org/ns/synapse">
+
+ <!-- attaching service level WS-Security policies to proxy services -->
+ <definitions>
+ <set-property name="proxy_wsdl"
+
src="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
+ <set-property name="sec_policy"
+
src="file:repository/conf/sample/resources/policy/policy_1.xml"/>
+ </definitions>
+
+ <proxies>
+ <proxy name="StockQuoteProxy">
+ <wsdl key="proxy_wsdl"/>
+ <policy key="sec_policy"/>
+ </proxy>
+ </proxies>
+
+ <rules>
+ <in>
+ <header name="wsse:Security" action="remove"
+
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
+ <send>
+ <endpoint
address="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
+ </send>
+ </in>
+ <out>
+ <send/>
+ </out>
+ </rules>
+
+</synapse>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]