You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ru...@apache.org on 2008/07/07 06:47:20 UTC
svn commit: r674398 [3/3] - in /synapse/trunk/java:
modules/core/src/test/java/org/apache/synapse/config/xml/
modules/core/src/test/resources/
modules/samples/services/FastStockQuoteService/wsdl/
modules/samples/services/ReliableStockQuoteService/wsdl/...
Modified: synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml?rev=674398&r1=674397&r2=674398&view=diff
==============================================================================
--- synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml (original)
+++ synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml Sun Jul 6 21:47:16 2008
@@ -479,11 +479,11 @@
<li>
Smart Client mode
</li>
- <pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ </pre>
+ <pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ </pre>
<li>
Using Synapse as a HTTP Proxy
</li>
- <pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dprxurl=http://localhost:8280/</pre>
+ <pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dprxurl=http://localhost:8280/</pre>
<li>
Gateway Mode / Dumb Client
</li>
@@ -503,10 +503,10 @@
By tracing the execution of Synapse with the log output level set to
DEBUG, you will see the client request arriving at Synapse with a
WS-Addressing 'To' set to EPR
- http://localhost:9000/soap/SimpleStockQuoteService. The Synapse engine
+ http://localhost:9000/services/SimpleStockQuoteService. The Synapse engine
logs the message at the "full" log level (i.e. all the message headers and
the body) then sends the message to its implicit 'To' address which is
- http://localhost:9000/soap/SimpleStockQuoteService. You will see a message
+ http://localhost:9000/services/SimpleStockQuoteService. You will see a message
in the Axis2 server console confirming that the message got routed to the
sample server and the sample service hosted at the sample server
generating a stock quote for the requested symbol.
@@ -527,7 +527,7 @@
You will see the exact same behaviour as per the previous example when you
run this scenario. However this time the difference is at the client, as
it sends the message to the WS-Addressing 'To' address
- http://localhost:9000/soap/SimpleStockQuoteService, but the transport
+ http://localhost:9000/services/SimpleStockQuoteService, but the transport
specifies Synapse as the HTTP proxy.
</p>
<h2>
@@ -539,7 +539,7 @@
<filter source="get-property('To')" regex=".*/StockQuote.*">
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
<drop/>
@@ -560,11 +560,11 @@
<p>
Execute the Dumb Client as:
</p>
-<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8280/soap/StockQuote<br/></pre>
+<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8280/services/StockQuote<br/></pre>
<p>
This time you will see Synapse receiving a message for which Synapse was
set as the ultimate receiver of the message. Based on the 'To' EPR of
- http://localhost:8280/soap/StockQuote, Synapse performs a match to the
+ http://localhost:8280/services/StockQuote, Synapse performs a match to the
path '/StockQuote' and as the request matches the XPath expression of the
filter mediator, the filter mediator's child mediators execute. This sends
the message to a different endpoint as specified by the endpoint
@@ -623,9 +623,9 @@
value is looked up by the log mediator and logged using the
'get-property()' XPath extension function.
</p>
- <pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=IBM</pre>
+ <pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=IBM</pre>
<pre xml:space="preserve"> INFO LogMediator - symbol = Great stock - IBM, epr = http://localhost:9000/axis2/services/SimpleStockQuoteService </pre>
- <pre>ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=MSFT</pre>
+ <pre>ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=MSFT</pre>
<pre xml:space="preserve"> INFO LogMediator - symbol = Are you sure? - MSFT, epr = http://localhost:9000/axis2/services/SimpleStockQuoteService</pre>
<h2>
<a name="Sample3" id="Sample3">Sample 3: Local Registry entry
@@ -636,7 +636,7 @@
<localEntry key="version">0.1</localEntry>
<!-- define a reuseable endpoint definition -->
<endpoint name="simple">
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
<!-- define a reusable sequence -->
@@ -682,7 +682,7 @@
named "main" is executed. Then for the incoming message flow the <in>
mediator executes, and it calls the sequence named "stockquote".
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/</pre>
<pre xml:space="preserve">DEBUG SequenceMediator - Sequence mediator <main> :: mediate()<br/>DEBUG InMediator - In mediator mediate()<br/>DEBUG SequenceMediator - Sequence mediator <stockquote> :: mediate()</pre>
<p>
As the "stockquote" sequence executes, the log mediator dumps a simple
@@ -697,7 +697,7 @@
</p>
<pre xml:space="preserve">[HttpServerWorker-1] INFO LogMediator - Text = Sending quote request, version = 0.1, direction = incoming
[HttpServerWorker-1] DEBUG SendMediator - Send mediator :: mediate()
-[HttpServerWorker-1] DEBUG AddressEndpoint - Sending To: http://localhost:9000/soap/SimpleStockQuoteService </pre>
+[HttpServerWorker-1] DEBUG AddressEndpoint - Sending To: http://localhost:9000/services/SimpleStockQuoteService </pre>
<h2>
<a name="Sample4" id="Sample4">Sample 4: Introduction to error handling</a>
</h2>
@@ -726,7 +726,7 @@
<switch source="//m0:getQuote/m0:request/m0:symbol" xmlns:m0="http://services.samples/xsd">
<case regex="IBM">
<send>
- <endpoint><address uri="http://localhost:9000/soap/SimpleStockQuoteService"/></endpoint>
+ <endpoint><address uri="http://localhost:9000/services/SimpleStockQuoteService"/></endpoint>
</send>
</case>
<case regex="MSFT">
@@ -778,7 +778,7 @@
sequence named 'fault'. Thus the 'fault' sequence can be seen executing,
and writing the generic error message to the logs.
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=MSFT</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=MSFT</pre>
<pre xml:space="preserve">[HttpServerWorker-1] DEBUG SendMediator - Send mediator :: mediate()
[HttpServerWorker-1] ERROR IndirectEndpoint - Reference to non-existent endpoint for key : bogus
[HttpServerWorker-1] DEBUG MediatorFaultHandler - MediatorFaultHandler :: handleFault
@@ -791,7 +791,7 @@
when the send fails, you could see the proper error handler invocation and
the custom error message printed as follows.
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=SUN</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=SUN</pre>
<pre xml:space="preserve">[HttpServerWorker-1] DEBUG SequenceMediator - Sequence mediator <sunSequence> :: mediate()
[HttpServerWorker-1] DEBUG SequenceMediator - Setting the onError handler for the sequence
[HttpServerWorker-1] DEBUG AbstractListMediator - Implicit Sequence <SequenceMediator> :: mediate()
@@ -822,12 +822,12 @@
xmlns:m0="http://services.samples/xsd">
<case regex="MSFT">
<send>
- <endpoint><address uri="http://bogus:9000/soap/NonExistentStockQuoteService"/></endpoint>
+ <endpoint><address uri="http://bogus:9000/services/NonExistentStockQuoteService"/></endpoint>
</send>
</case>
<case regex="SUN">
<send>
- <endpoint><address uri="http://localhost:9009/soap/NonExistentStockQuoteService"/></endpoint>
+ <endpoint><address uri="http://localhost:9009/services/NonExistentStockQuoteService"/></endpoint>
</send>
</case>
</switch>
@@ -855,7 +855,7 @@
stock request. This error message is captured and returned to the original
client as a SOAP fault in this example.
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=MSFT</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=MSFT</pre>
<p>
returns,
</p>
@@ -864,7 +864,7 @@
<p>
And
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=SUN</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=SUN</pre>
<p>
returns,
</p>
@@ -876,7 +876,7 @@
</h2>
<pre xml:space="preserve"><definitions xmlns="http://ws.apache.org/ns/synapse">
<in>
- <header name="To" value="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <header name="To" value="http://localhost:9000/services/SimpleStockQuoteService"/>
</in>
<send/>
</definitions></pre>
@@ -969,7 +969,7 @@
client. (i.e. expects a 'stocksymbol' element instead of 'symbol' to
specify the stock symbol)
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/</pre>
<h2>
<a name="Sample8" id="Sample8">Sample 8: Introduction to static and
dynamic registry resources, and using XSLT transformations</a>
@@ -1040,7 +1040,7 @@
Execute the custom quote client as 'ant stockquote -Dmode=customquote ...'
and analyze the the Synapse debug log output
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dmode=customquote</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dmode=customquote</pre>
<p>
The incoming message is now transformed into a standard stock quote
request as expected by the SimpleStockQuoteService deployed on the local
@@ -1125,7 +1125,7 @@
stockquote..'. You will notice that that Synapse fetches the definition of
the sequence from the registry and executes its rules as follows:
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/</pre>
<pre xml:space="preserve">[HttpServerWorker-1] DEBUG SimpleURLRegistry - ==> Repository fetch of resource with key : sequence/dynamic_seq_1.xml
...
[HttpServerWorker-1] DEBUG SequenceMediator - Sequence mediator <dynamic_sequence> :: mediate()
@@ -1196,7 +1196,7 @@
<p>
Now edit the repository/conf/sample/resources/endpoint/dynamic_endpt_1.xml
definition and update the address to
- "http://localhost:9001/soap/SimpleStockQuoteService". After the cached value
+ "http://localhost:9001/services/SimpleStockQuoteService". After the cached value
expires, the Registry loads the new definition of the endpoint, and then
the messages can be seen being routed to the second sample Axis2 server on
HTTP port 9001.
@@ -1230,7 +1230,7 @@
(Note: Full registry based configuration is not dynamic atleast for the
moment. i.e. it is not reloading itself)
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/</pre>
<pre xml:space="preserve">[HttpServerWorker-1] INFO LogMediator - message = This is a dynamic Synapse configuration</pre>
<p>
The actual synapse.xml loaded is:
@@ -1263,7 +1263,7 @@
through Synapse into the sample Axis2 server instance, which reports the
acceptance of the order as follows:
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dmode=placeorder</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dmode=placeorder</pre>
<pre xml:space="preserve">SimpleStockQuoteService :: Accepted order for : 7482 stocks of IBM at $ 169.27205579038733</pre>
<p>
If you send your client request through TCPmon, you will notice that the
@@ -1293,7 +1293,7 @@
through Synapse into the sample Axis2 server instance, which reports the response
back to the client over a different channel:
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dmode=dualquote</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dmode=dualquote</pre>
<pre xml:space="preserve">Response received to the callback
Standard dual channel :: Stock price = $57.16686934968289</pre>
<p>
@@ -1305,7 +1305,7 @@
</p>
<p>
Also you could see the wsa:Reply-To header being something like
- http://localhost:8200/axis2/soap/anonService2 which implies that the reply
+ http://localhost:8200/axis2/services/anonService2 which implies that the reply
is being on a different channel listening on the port 8200. Please note that it is
required to engage addressing when using the dual channel invocation because it
requires the wsa:Reply-To header.
@@ -1321,7 +1321,7 @@
<filter source="get-property('To')" regex=".*/StockQuote.*">
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService" format="soap11"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService" format="soap11"/>
</endpoint>
</send>
<drop/>
@@ -1343,7 +1343,7 @@
Execute the 'ant stockquote' specifying that the request should be a REST
request as follows:
</p>
-<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8280/soap/StockQuote -Drest=true</pre>
+<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8280/services/StockQuote -Drest=true</pre>
<p>
This example shows a HTTP REST request (as shown below) being transformed
into a SOAP request and forwarded to the stock quote service.
@@ -1371,7 +1371,7 @@
<property name="example" value="mtom"/>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/MTOMSwASampleService" optimize="mtom"/>
+ <address uri="http://localhost:9000/services/MTOMSwASampleService" optimize="mtom"/>
</endpoint>
</send>
</filter>
@@ -1379,7 +1379,7 @@
<property name="example" value="swa"/>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/MTOMSwASampleService" optimize="swa"/>
+ <address uri="http://localhost:9000/services/MTOMSwASampleService" optimize="swa"/>
</endpoint>
</send>
</filter>
@@ -1409,7 +1409,7 @@
<pre xml:space="preserve">ant optimizeclient -Dopt_mode=mtom</pre>
<p>
The configuration now sets a local message context property, and forwards
- the message to 'http://localhost:9000/soap/MTOMSwASampleService'
+ the message to 'http://localhost:9000/services/MTOMSwASampleService'
optimizing binary content as MTOM. By sending this message through TCPMon
you would be able to see the actual message sent over the HTTP transport
if required. Thus during response processing, by checking the local
@@ -1435,7 +1435,7 @@
the requests and responses sent are indeed MTOM optimized or sent as HTTP
attachments as follows:
</p>
-<pre xml:space="preserve">POST http://localhost:9000/soap/MTOMSwASampleService HTTP/1.1
+<pre xml:space="preserve">POST http://localhost:9000/services/MTOMSwASampleService HTTP/1.1
Host: 127.0.0.1
SOAPAction: urn:uploadFileUsingMTOM
Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_B94996494E1DD5F9B51177413845353; type="application/xop+xml";
@@ -1466,7 +1466,7 @@
Content-Transfer-Encoding: binary
Content-ID:
<1.urn:uuid:78F94BC50B68D76FB41177413845003@apache.org>22800GIF89a... << binary content >></pre>
-<pre xml:space="preserve">POST http://localhost:9000/soap/MTOMSwASampleService HTTP/1.1
+<pre xml:space="preserve">POST http://localhost:9000/services/MTOMSwASampleService HTTP/1.1
Host: 127.0.0.1
SOAPAction: urn:uploadFileUsingSwA
Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_B94996494E1DD5F9B51177414170491; type="text/xml";
@@ -1507,19 +1507,19 @@
<endpoint>
<loadbalance>
<endpoint>
- <address uri="http://localhost:9001/soap/LBService1">
+ <address uri="http://localhost:9001/services/LBService1">
<enableAddressing/>
<suspendDurationOnFailure>60</suspendDurationOnFailure>
</address>
</endpoint>
<endpoint>
- <address uri="http://localhost:9002/soap/LBService1">
+ <address uri="http://localhost:9002/services/LBService1">
<enableAddressing/>
<suspendDurationOnFailure>60</suspendDurationOnFailure>
</address>
</endpoint>
<endpoint>
- <address uri="http://localhost:9003/soap/LBService1">
+ <address uri="http://localhost:9003/services/LBService1">
<enableAddressing/>
<suspendDurationOnFailure>60</suspendDurationOnFailure>
</address>
@@ -1631,19 +1631,19 @@
<endpoint>
<failover>
<endpoint>
- <address uri="http://localhost:9001/soap/LBService1">
+ <address uri="http://localhost:9001/services/LBService1">
<enableAddressing/>
<suspendDurationOnFailure>60</suspendDurationOnFailure>
</address>
</endpoint>
<endpoint>
- <address uri="http://localhost:9002/soap/LBService1">
+ <address uri="http://localhost:9002/services/LBService1">
<enableAddressing/>
<suspendDurationOnFailure>60</suspendDurationOnFailure>
</address>
</endpoint>
<endpoint>
- <address uri="http://localhost:9003/soap/LBService1">
+ <address uri="http://localhost:9003/services/LBService1">
<enableAddressing/>
<suspendDurationOnFailure>60</suspendDurationOnFailure>
</address>
@@ -1740,17 +1740,17 @@
<loadbalance>
<endpoint>
- <address uri="http://localhost:9001/soap/LBService1">
+ <address uri="http://localhost:9001/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
<endpoint>
- <address uri="http://localhost:9002/soap/LBService1">
+ <address uri="http://localhost:9002/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
<endpoint>
- <address uri="http://localhost:9003/soap/LBService1">
+ <address uri="http://localhost:9003/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
@@ -1843,12 +1843,12 @@
<endpoint>
<failover>
<endpoint>
- <address uri="http://localhost:9001/soap/LBService1">
+ <address uri="http://localhost:9001/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
<endpoint>
- <address uri="http://localhost:9002/soap/LBService1">
+ <address uri="http://localhost:9002/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
@@ -1857,12 +1857,12 @@
<endpoint>
<failover>
<endpoint>
- <address uri="http://localhost:9003/soap/LBService1">
+ <address uri="http://localhost:9003/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
<endpoint>
- <address uri="http://localhost:9004/soap/LBService1">
+ <address uri="http://localhost:9004/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
@@ -1999,16 +1999,16 @@
<pre xml:space="preserve"><wsdl:service name="SimpleStockQuoteService">
<wsdl:port name="SimpleStockQuoteServiceSOAP11port_http"
binding="axis2:SimpleStockQuoteServiceSOAP11Binding">
- <soap:address location="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <soap:address location="http://localhost:9000/services/SimpleStockQuoteService"/>
</wsdl:port>
<wsdl:port name="SimpleStockQuoteServiceSOAP12port_http"
binding="axis2:SimpleStockQuoteServiceSOAP12Binding">
- <soap12:address location="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <soap12:address location="http://localhost:9000/services/SimpleStockQuoteService"/>
</wsdl:port>
</wsdl:service></pre>
<p>
Specified service and port refers to the endpoint address
- "http://localhost:9000/soap/SimpleStockQuoteService" according to the
+ "http://localhost:9000/services/SimpleStockQuoteService" according to the
above WSDL. Now run the client using the following command.
</p>
<pre xml:space="preserve">ant stockquote -Dsymbol=IBM -Dmode=quote -Daddurl=http://localhost:8280</pre>
@@ -2260,7 +2260,7 @@
<in>
<send>
<endpoint name="secure">
- <address uri="http://localhost:9000/soap/SecureStockQuoteService">
+ <address uri="http://localhost:9000/services/SecureStockQuoteService">
<enableSec policy="sec_policy"/>
</address>
</endpoint>
@@ -2305,7 +2305,7 @@
The message sent by Synapse to the secure service can be seen as follows,
when TCPMon is used.
</p>
-<pre xml:space="preserve">POST http://localhost:9001/soap/SecureStockQuoteService HTTP/1.1
+<pre xml:space="preserve">POST http://localhost:9001/services/SecureStockQuoteService HTTP/1.1
Host: 127.0.0.1
SOAPAction: urn:getQuote
Content-Type: text/xml; charset=UTF-8
@@ -2336,7 +2336,7 @@
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
- <wsa:To>http://localhost:9001/soap/SecureStockQuoteService</wsa:To>
+ <wsa:To>http://localhost:9001/services/SecureStockQuoteService</wsa:To>
<wsa:MessageID>urn:uuid:1C4CE88B8A1A9C09D91177500753443</wsa:MessageID>
<wsa:Action>urn:getQuote</wsa:Action>
</soapenv:Header>
@@ -2360,7 +2360,7 @@
<RMSequence single="true" version="1.0"/>
<send>
<endpoint name="reliable">
- <address uri="http://localhost:9000/soap/ReliableStockQuoteService">
+ <address uri="http://localhost:9000/services/ReliableStockQuoteService">
<enableRM/>
<enableAddressing/>
</address>
@@ -2444,7 +2444,7 @@
<wsrm:Identifier>urn:uuid:879853A6871A66641C1179807373270</wsrm:Identifier>
<wsrm:Accept>
<wsrm:AcksTo>
- <wsa:Address>http://localhost:9000/soap/ReliableStockQuoteService</wsa:Address>
+ <wsa:Address>http://localhost:9000/services/ReliableStockQuoteService</wsa:Address>
</wsrm:AcksTo>
</wsrm:Accept>
</wsrm:CreateSequenceResponse>
@@ -2457,7 +2457,7 @@
<pre xml:space="preserve"><soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
- <wsa:To>http://localhost:9000/soap/ReliableStockQuoteService</wsa:To>
+ <wsa:To>http://localhost:9000/services/ReliableStockQuoteService</wsa:To>
<wsa:MessageID>urn:uuid:DB9A5257B637DDA38B1179807372560712002-1515891720</wsa:MessageID>
<wsa:Action>urn:getQuote</wsa:Action>
<wsrm:Sequence xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"
@@ -2511,7 +2511,7 @@
<pre xml:space="preserve"><soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
- <wsa:To>http://localhost:9000/soap/ReliableStockQuoteService</wsa:To>
+ <wsa:To>http://localhost:9000/services/ReliableStockQuoteService</wsa:To>
<wsa:MessageID>urn:uuid:546F6F33FB7D8BBE351179807379591</wsa:MessageID>
<wsa:Action>http://schemas.xmlsoap.org/ws/2005/02/rm/TerminateSequence</wsa:Action>
<wsrm:SequenceAcknowledgement xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"
@@ -2534,7 +2534,7 @@
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsa:ReplyTo>
- <wsa:Address>http://localhost:9000/soap/ReliableStockQuoteService</wsa:Address>
+ <wsa:Address>http://localhost:9000/services/ReliableStockQuoteService</wsa:Address>
</wsa:ReplyTo>
<wsa:MessageID>urn:uuid:879853A6871A66641C1179807380190</wsa:MessageID>
<wsa:Action>http://schemas.xmlsoap.org/ws/2005/02/rm/TerminateSequence</wsa:Action>
@@ -2562,7 +2562,7 @@
<proxy name="StockQuoteProxy">
<target>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
<outSequence>
<send/>
@@ -2582,7 +2582,7 @@
<p/>
<p>
Once Synapse starts, you could go to
- http://localhost:8280/soap/StockQuoteProxy?wsdl and view the WSDL
+ http://localhost:8280/services/StockQuoteProxy?wsdl and view the WSDL
generated 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.
@@ -2591,7 +2591,7 @@
Execute the stock quote client by requesting for a stock quote on the
proxy service as follows:
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:8280/soap/StockQuoteProxy</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:8280/services/StockQuoteProxy</pre>
<p>
An 'inSequence' or 'endpoint' or both of these would decide how the
message would be handled after the proxy service receives the message. In
@@ -2609,14 +2609,14 @@
<sequence name="proxy_1">
<send>
- <endpoint><address uri="http://localhost:9000/soap/SimpleStockQuoteService"/></endpoint>
+ <endpoint><address uri="http://localhost:9000/services/SimpleStockQuoteService"/></endpoint>
</send>
</sequence>
<sequence name="out">
<send/>
</sequence>
<endpoint name="proxy_2_endpoint">
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
<localEntry key="proxy_wsdl" src="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
@@ -2653,7 +2653,7 @@
receive the reply generated by the actual service hosted on the Axis2
server instance.
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:8280/soap/StockQuoteProxy1<br/>ant stockquote -Daddurl=http://localhost:8280/soap/StockQuoteProxy2</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:8280/services/StockQuoteProxy1<br/>ant stockquote -Daddurl=http://localhost:8280/services/StockQuoteProxy2</pre>
<h2>
<a name="Sample152" id="Sample152">Sample 152: Switching transports and
message format from SOAP to REST/POX</a>
@@ -2662,7 +2662,7 @@
<proxy name="StockQuoteProxy" transports="https">
<target>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService" format="pox"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService" format="pox"/>
</endpoint>
<outSequence>
<send/>
@@ -2690,19 +2690,19 @@
and thus if the user tries to access it over HTTP, would result in a
fault.
</p>
-<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8280/soap/StockQuoteProxy
+<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8280/services/StockQuoteProxy
...
[java] org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) /soap/StockQuoteProxy</pre>
<p/>
<p>
Accessing this over HTTPS (ant stockquote
- -Dtrpurl=https://localhost:8243/soap/StockQuoteProxy) causes the proxy
+ -Dtrpurl=https://localhost:8243/services/StockQuoteProxy) causes the proxy
service to access the SimpleStockQuoteService on the sample Axis2 server
using REST/POX. This could be seen if the message exchange was captured
using TCPMon as follows. The REST/POX response is now transformed back
into a SOAP message and returned to the client.
</p>
-<pre xml:space="preserve">POST http://localhost:9000/soap/SimpleStockQuoteService HTTP/1.1
+<pre xml:space="preserve">POST http://localhost:9000/services/SimpleStockQuoteService HTTP/1.1
Host: 127.0.0.1
SOAPAction: urn:getQuote
Content-Type: application/xml; charset=UTF-8;action="urn:getQuote";
@@ -2752,7 +2752,7 @@
<inSequence>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SecureStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SecureStockQuoteService"/>
</endpoint>
</send>
</inSequence>
@@ -2793,12 +2793,12 @@
sign and encrypt the request by specifying the client side security policy
as follows:
</p>
-<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8280/soap/StockQuoteProxy -Dpolicy=./../../repository/conf/sample/resources/policy/client_policy_3.xml</pre>
+<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8280/services/StockQuoteProxy -Dpolicy=./../../repository/conf/sample/resources/policy/client_policy_3.xml</pre>
<p>
By following through the debug logs or TCPMon output, you could see that
the request received by the proxy service was signed and encrypted. Also,
looking up the WSDL of the proxy service by requesting the URL
- http://localhost:8280/soap/StockQuoteProxy?wsdl reveals the security
+ http://localhost:8280/services/StockQuoteProxy?wsdl reveals the security
policy attachments are not there and security is not engaged. When sending
the message to the backend service, you could verify that the security
headers were there as in the original message to Synapse from client, and
@@ -2822,19 +2822,19 @@
<session type="simpleClientSession"/>
<loadbalance algorithm="roundRobin">
<endpoint>
- <address uri="http://localhost:9001/soap/LBService1">
+ <address uri="http://localhost:9001/services/LBService1">
<enableAddressing/>
<suspendDurationOnFailure>20</suspendDurationOnFailure>
</address>
</endpoint>
<endpoint>
- <address uri="http://localhost:9002/soap/LBService1">
+ <address uri="http://localhost:9002/services/LBService1">
<enableAddressing/>
<suspendDurationOnFailure>20</suspendDurationOnFailure>
</address>
</endpoint>
<endpoint>
- <address uri="http://localhost:9003/soap/LBService1">
+ <address uri="http://localhost:9003/services/LBService1">
<enableAddressing/>
<suspendDurationOnFailure>20</suspendDurationOnFailure>
</address>
@@ -2873,7 +2873,7 @@
<p>
Run the client with
</p>
-<pre xml:space="preserve"> ant loadbalancefailover -Dmode=session -Dtrpurl=http://localhost:8280/soap/LBProxy </pre>
+<pre xml:space="preserve"> ant loadbalancefailover -Dmode=session -Dtrpurl=http://localhost:8280/services/LBProxy </pre>
<p>
Functionality is similar to the sample #54.
</p>
@@ -2886,7 +2886,7 @@
<proxy name="StockQuoteProxy">
<target>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService">
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService">
<enableAddressing separateListener="true"/>
</address>
</endpoint>
@@ -2916,7 +2916,7 @@
Execute the stock quote client by requesting for a stock quote on a dual channel from the
proxy service as follows:
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:8280/soap/StockQuoteProxy -Dmode=dualquote</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:8280/services/StockQuoteProxy -Dmode=dualquote</pre>
<p>
In the above example, the request received is forwarded to the sample service
hosted on Axis2 and the endpoint specifies to enable addressing and do the invocation
@@ -2948,7 +2948,7 @@
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</inSequence>
@@ -2991,12 +2991,12 @@
service, and sign and encrypt the request by specifying the client side
security policy as follows:
</p>
-<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8280/soap/StockQuoteProxy -Dpolicy=./../../repository/conf/sample/resources/policy/client_policy_3.xml</pre>
+<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8280/services/StockQuoteProxy -Dpolicy=./../../repository/conf/sample/resources/policy/client_policy_3.xml</pre>
<p>
By following through the debug logs or TCPMon output, you could see that
the request received by the proxy service was signed and encrypted. Also,
looking up the WSDL of the proxy service by requesting the
- URLhttp://localhost:8280/soap/StockQuoteProxy?wsdl reveals the security
+ URLhttp://localhost:8280/services/StockQuoteProxy?wsdl reveals the security
policy attachment to the supplied base WSDL. When sending the message to
the backend service, you could verify that the security headers were
removed, and that the response received does not use WS-Security, but that
@@ -3017,7 +3017,7 @@
xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"/>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</inSequence>
@@ -3051,7 +3051,7 @@
required as the reliable messaging is applicable only between the client
and Synapse. Now start the client with WS-RM as follows:
</p>
-<pre xml:space="preserve">ant stockquote -Dsymbol=IBM -Dmode=quote -Daddurl=http://localhost:8280/soap/StockQuoteProxy -Dwsrm=true</pre>
+<pre xml:space="preserve">ant stockquote -Dsymbol=IBM -Dmode=quote -Daddurl=http://localhost:8280/services/StockQuoteProxy -Dwsrm=true</pre>
<p>
In this case, client sends a WS-RM enabled request to Synapse where Synapse
sends normal request to the server. This can be observed by examining the
@@ -3076,7 +3076,7 @@
<property action="set" name="OUT_ONLY" value="true"/>
</inSequence>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
<outSequence>
<send/>
@@ -3116,7 +3116,7 @@
<pre xml:space="preserve"><transportReceiver name="jms" class="org.apache.axis2.transport.jms.JMSListener"> ...</pre>
<p>
Once you start the Synapse configuration and request for the WSDL of the
- proxy service (http://localhost:8280/soap/StockQuoteProxy?wsdl) you will
+ proxy service (http://localhost:8280/services/StockQuoteProxy?wsdl) you will
notice that its exposed only on the JMS transport. This is because the
configuration specified this requirement in the proxy service definition.
</p>
@@ -3193,7 +3193,7 @@
and enable JMS (refer notes above), and restart the server. Now you can
see that the simple stock quote service is available in both JMS and HTTP
in the sample Axis2 server. To see this, point your browser to the WSDL of
- the service at http://localhost:9000/soap/SimpleStockQuoteService?wsdl.
+ the service at http://localhost:9000/services/SimpleStockQuoteService?wsdl.
JMS URL for the service is mentioned as below:
</p>
<pre xml:space="preserve">jms:/SimpleStockQuoteService?transport.jms.ConnectionFactoryJNDIName=
@@ -3203,7 +3203,7 @@
You may also notice that the simple stock quote proxy service exposed in
Synapse is now available only in HTTP as we have specified transport for
that service as HTTP. To observe this, access the WSDL of stock quote
- proxy service at http://localhost:8280/soap/StockQuoteProxy?wsdl.
+ proxy service at http://localhost:8280/services/StockQuoteProxy?wsdl.
</p>
<p>
This Synapse configuration creates a proxy service over HTTP and forwards
@@ -3212,7 +3212,7 @@
the stock quote reply over JMS to the Synapse server. To test this, send a
place order request to Synapse using HTTP as follows:
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:8280/soap/StockQuoteProxy -Dmode=placeorder -Dsymbol=MSFT</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:8280/services/StockQuoteProxy -Dmode=placeorder -Dsymbol=MSFT</pre>
<p>
The sample Axis2 server console will print a message indicating that it
has accepted the order as follows:
@@ -3240,7 +3240,7 @@
<property action="set" name="OUT_ONLY" value="true"/>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</sequence>
@@ -3250,7 +3250,7 @@
<header name="Action" value="urn:oneWayUploadUsingMTOM"/>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/MTOMSwASampleService" optimize="mtom"/>
+ <address uri="http://localhost:9000/services/MTOMSwASampleService" optimize="mtom"/>
</endpoint>
</send>
</sequence>
@@ -3260,7 +3260,7 @@
<header name="Action" value="urn:placeOrder"/>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService" format="soap11"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService" format="soap11"/>
</endpoint>
</send>
</sequence>
@@ -3328,7 +3328,7 @@
by tokenizing the text as follows, and sent the message to the placeOrder
operation of the SimpleStockQuoteService.
</p>
-<pre xml:space="preserve">[JMSWorker-1] DEBUG AddressEndpoint - Sending message to endpoint :: name = AnonymousEndpoints resolved address = http://localhost:9000/soap/SimpleStockQuoteService
+<pre xml:space="preserve">[JMSWorker-1] DEBUG AddressEndpoint - Sending message to endpoint :: name = AnonymousEndpoints resolved address = http://localhost:9000/services/SimpleStockQuoteService
[JMSWorker-1] DEBUG AddressEndpoint - SOAPAction: urn:placeOrder
[JMSWorker-1] DEBUG AddressEndpoint - WSA-Action: urn:placeOrder
[JMSWorker-1] DEBUG AddressEndpoint - Body :
@@ -3404,7 +3404,7 @@
...
[JMSWorker-1] DEBUG HeaderMediator - Setting header : Action to : urn:placeOrder
...
-[JMSWorker-1] DEBUG AddressEndpoint - Sending message to endpoint :: name = AnonymousEndpoints resolved address = http://localhost:9000/soap/SimpleStockQuoteService
+[JMSWorker-1] DEBUG AddressEndpoint - Sending message to endpoint :: name = AnonymousEndpoints resolved address = http://localhost:9000/services/SimpleStockQuoteService
[JMSWorker-1] DEBUG AddressEndpoint - SOAPAction: urn:placeOrder
[JMSWorker-1] DEBUG AddressEndpoint - Body :
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><m:placeOrder xmlns:m="http://services.samples/xsd">
@@ -3432,7 +3432,7 @@
<property action="set" name="OUT_ONLY" value="true"/>
</inSequence>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
<outSequence>
<send/>
@@ -3447,7 +3447,7 @@
<log level="full"/>
</inSequence>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
<outSequence>
<send/>
@@ -3486,7 +3486,7 @@
see the logged message, and if TCPMon was used at the client, you would
see the 202 Accepted response sent back to the client from Synapse
</p>
-<pre xml:space="preserve">ant stockquote -Dmode=placeorder -Dtrpurl=http://localhost:8280/soap/OneWayProxy</pre>
+<pre xml:space="preserve">ant stockquote -Dmode=placeorder -Dtrpurl=http://localhost:8280/services/OneWayProxy</pre>
<pre xml:space="preserve">HTTP/1.1 202 Accepted
Content-Type: text/xml; charset=UTF-8
Host: 127.0.0.1
@@ -3513,7 +3513,7 @@
<target>
<endpoint>
- <address format="soap12" uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address format="soap12" uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
<outSequence>
<property name="transport.vfs.ReplyFileName"
@@ -3588,7 +3588,7 @@
<header name="Action" value="urn:getQuote"/>
</inSequence>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
<outSequence>
<property action="set" name="OUT_ONLY" value="true"/>
@@ -3667,7 +3667,7 @@
</log>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</inSequence>
@@ -3844,7 +3844,7 @@
<p>
Invoke the FIX Client as follows. This command sends a FIX message
embedded in a SOAP message over HTTP.
- <pre>ant fixclient -Dsymbol=IBM -Dqty=5 -Dmode=buy -Daddurl=http://localhost:8280/soap/FIXProxy</pre>
+ <pre>ant fixclient -Dsymbol=IBM -Dqty=5 -Dmode=buy -Daddurl=http://localhost:8280/services/FIXProxy</pre>
</p>
<p>
Synapse will create a session with Executor and forward the order request. The
@@ -3863,7 +3863,7 @@
<pre xml:space="preserve"><definitions xmlns="http://ws.apache.org/ns/synapse">
<task class="org.apache.synapse.startup.tasks.MessageInjector" name="CheckPrice">
- <property name="to" value="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <property name="to" value="http://localhost:9000/services/SimpleStockQuoteService"/>
<property name="soapAction" value="urn:getQuote"/>
<property name="message">
<m0:getQuote xmlns:m0="http://services.samples/xsd">
@@ -3938,7 +3938,7 @@
<script language="js" key="stockquoteScript" function="transformRequest"/>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</in>
@@ -3991,7 +3991,7 @@
uses the function attribute to specify which function should be invoked.
Use the stock quote client to issue a custom quote client as follows.:
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dmode=customquote</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dmode=customquote</pre>
<p>
Synapse uses the script mediator and the specified JavaScript function to
convert the custom request to a standard quote request. Subsequently the
@@ -4015,7 +4015,7 @@
]]></script>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</in>
@@ -4088,7 +4088,7 @@
will receive the response "99.9" as the last sale price as per the above
script.
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/
...
stockquote:
[java] Standard :: Stock price = $99.9</pre>
@@ -4106,7 +4106,7 @@
<!-- send message to real endpoint referenced by name "stockquote" and stop -->
<send>
<endpoint name="stockquote">
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</in>
@@ -4179,7 +4179,7 @@
</script>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</in>
@@ -4220,7 +4220,7 @@
<p>
Run the client with
</p>
-<pre xml:space="preserve"> ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dmode=customquote</pre>
+<pre xml:space="preserve"> ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dmode=customquote</pre>
</div>
<h2>
<a name="DBMediators" id="DBMediators">Database interactions in
@@ -4280,7 +4280,7 @@
</log>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</case>
@@ -4291,7 +4291,7 @@
</log>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</case>
@@ -4302,7 +4302,7 @@
</log>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</case>
@@ -4362,7 +4362,7 @@
<p>
When the IBM stock quote is requested,
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=IBM</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=IBM</pre>
<p>
Synapse console shows
</p>
@@ -4371,7 +4371,7 @@
<p>
For the SUN stock quote,
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=SUN</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=SUN</pre>
<p/>
<p>
Synapse console shows
@@ -4380,7 +4380,7 @@
<p>
and for the MSFT stock quote,
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=MSFT</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=MSFT</pre>
<pre xml:space="preserve">INFO LogMediator text = ** Looking up from the Database **<br/>INFO LogMediator text = Company ID – c2</pre>
<p>
For any other symbols, Synapse console shows
@@ -4403,7 +4403,7 @@
<in>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</in>
@@ -4465,7 +4465,7 @@
<p>
Run the client using,
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=IBM</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=IBM</pre>
<p>
and then execute the following query using database client tool against
synapsedb.
@@ -4487,7 +4487,7 @@
<in>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</in>
@@ -4569,7 +4569,7 @@
<p>
When running client,
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=IBM</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=IBM</pre>
<p>
Synapse console shows,
</p>
@@ -4628,7 +4628,7 @@
</log>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</case>
@@ -4639,7 +4639,7 @@
</log>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</case>
@@ -4650,7 +4650,7 @@
</log>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</case>
@@ -4740,7 +4740,7 @@
already done </p>
<p>Runs the client as follows</p>
- <pre>ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=IBM</pre>
+ <pre>ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=IBM</pre>
<p>Then the console output </p>
<pre> INFO LogMediator text = ** Looking up from the Database **
@@ -4782,7 +4782,7 @@
</log>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</onAccept>
@@ -4902,7 +4902,7 @@
</log>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</onAccept>
@@ -4995,7 +4995,7 @@
</log>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</sequence>
@@ -5051,7 +5051,7 @@
<p>
Run the client as follows
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:8280/soap/StockQuoteProxy</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:8280/services/StockQuoteProxy</pre>
<div>
<p>
You will get same results as in sample 371. If you run the load test,
@@ -5087,7 +5087,7 @@
<in>
<send>
<endpoint name="stockquote">
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</in>
@@ -5279,7 +5279,7 @@
</xquery>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</inSequence>
@@ -5323,7 +5323,7 @@
<p>
Execute the custom quote client as 'ant stockquote -Dmode=customquote ...'
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:8280/soap/StockQuoteProxy -Dmode=customquote </pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:8280/services/StockQuoteProxy -Dmode=customquote </pre>
<p/>
<h2>
<a name="Sample391" id="Sample391">Sample 391: How to use data from an
@@ -5344,7 +5344,7 @@
<inSequence>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</inSequence>
@@ -5382,7 +5382,7 @@
<p>
Invoke the client as follows.
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:8280/soap/StockQuoteProxy</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:8280/services/StockQuoteProxy</pre>
<h2>
<a name="Splitter" id="Splitter">Splitting messages in to parts and
process in parallel (Iterate / Clone)</a>
@@ -5404,7 +5404,7 @@
<send>
<endpoint>
<address
- uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</sequence>
@@ -5446,7 +5446,7 @@
<p>
Invoke the client as follows.
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:8280/soap/SplitAggregateProxy -Ditr=4</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:8280/services/SplitAggregateProxy -Ditr=4</pre>
<h2>
<a name="Cache" id="Cache">Caching the responses over the requests
@@ -5472,7 +5472,7 @@
</cache>
<send>
<endpoint>
- <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</in>
@@ -5538,7 +5538,7 @@
<pre xml:space="preserve">
<!-- Simple callout mediator -->
<definitions xmlns="http://ws.apache.org/ns/synapse">
- <callout serviceURL="http://localhost:9000/soap/SimpleStockQuoteService"
+ <callout serviceURL="http://localhost:9000/services/SimpleStockQuoteService"
action="urn:getQuote">
<source xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
@@ -5575,7 +5575,7 @@
<p>
Invoke the client as follows.
</p>
-<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/</pre>
+<pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/</pre>
</div>
</body>
</document>
Modified: synapse/trunk/java/src/site/xdoc/Synapse_Samples_Setup.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/src/site/xdoc/Synapse_Samples_Setup.xml?rev=674398&r1=674397&r2=674398&view=diff
==============================================================================
--- synapse/trunk/java/src/site/xdoc/Synapse_Samples_Setup.xml (original)
+++ synapse/trunk/java/src/site/xdoc/Synapse_Samples_Setup.xml Sun Jul 6 21:47:16 2008
@@ -210,7 +210,7 @@
</p>
<pre xml:space="preserve">ant stockquote [-Dsymbol=IBM|MSFT|SUN|..]
[-Dmode=quote | customquote | fullquote | placeorder | marketactivity]
- [-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService]
+ [-Daddurl=http://localhost:9000/services/SimpleStockQuoteService]
[-Dtrpurl=http://localhost:8280] [-Dprxurl=http://localhost:8280]
[-Dpolicy=../../repository/conf/sample/resources/policy/policy_1.xml]</pre>