You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ro...@apache.org on 2006/09/06 20:24:27 UTC
svn commit: r440821 - in /webservices/axis2/trunk/java/xdocs/latest:
soapmonitor-module.html spring.html
Author: robertlazarski
Date: Wed Sep 6 11:24:26 2006
New Revision: 440821
URL: http://svn.apache.org/viewvc?view=rev&rev=440821
Log:
Minor doc changes for the soap monitor
Modified:
webservices/axis2/trunk/java/xdocs/latest/soapmonitor-module.html
webservices/axis2/trunk/java/xdocs/latest/spring.html
Modified: webservices/axis2/trunk/java/xdocs/latest/soapmonitor-module.html
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/xdocs/latest/soapmonitor-module.html?view=diff&rev=440821&r1=440820&r2=440821
==============================================================================
--- webservices/axis2/trunk/java/xdocs/latest/soapmonitor-module.html (original)
+++ webservices/axis2/trunk/java/xdocs/latest/soapmonitor-module.html Wed Sep 6 11:24:26 2006
@@ -121,7 +121,8 @@
- for example axis2/SOAPMonitorApplet*.class/WEB-INF :</p>
<pre>javac -classpath axis2-soapmonitor.jar SOAPMonitorApplet.java</pre>
-<p>Alternatively, you can get the compiled applet classes from the axis2-soapmonitor-*.jar .</p>
+<p>Alternatively, you can get the compiled applet classes from the
+ axis2-soapmonitor-*.jar from inside the expanded axis2.war under WEB-INF/lib .</p>
<p>With a Web browser, go to http[s]://host[:port][/webapp]/SOAPMonitor (e.g.
http://localhost:8080/axis2/SOAPMonitor) substituting the correct values for
Modified: webservices/axis2/trunk/java/xdocs/latest/spring.html
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/xdocs/latest/spring.html?view=diff&rev=440821&r1=440820&r2=440821
==============================================================================
--- webservices/axis2/trunk/java/xdocs/latest/spring.html (original)
+++ webservices/axis2/trunk/java/xdocs/latest/spring.html Wed Sep 6 11:24:26 2006
@@ -6,7 +6,36 @@
</head>
<body>
-<h1>Axis2 intergration with the Spring Framework</h1>
+<h2>Content</h2>
+<ul>
+ <li><a href="#1">Introduction</a>
+ </li>
+ <li><a href="#2">Configuring Axis2 to be Spring aware</a>
+ <ul>
+ <li><a href="#21">Programming Model</a></li>
+ <li><a href="#22">Simple Spring config example</a></li>
+ <li><a href="#22">Inside a Servlet Container</a></li>
+ <li><a href="#22">Outside a Servlet Container</a></li>
+ <li><a href="#23">Enabling MTOM Optimization at Server Side</a></li>
+ <li><a href="#24">Accessing Received Binary Data (Sample Code) </a>
+ <ul>
+ <li><a href="#241">Service</a></li>
+ <li><a href="#242">Client</a></li>
+ </ul>
+ </li>
+ <li><a href="#25">MTOM Databinding</a>
+ </ul>
+ </li>
+ <li><a href="#3">SOAP with Attachments with Axis2</a></li>
+ <li><a href="#4">Advanced Topics </a>
+ <ul>
+ <li><a href="#41">File Caching for Attachments</a></li>
+ </ul>
+ </li>
+</ul>
+<a name="1"></a>
+
+<h2>Introduction</h2>
<p>The idea behind Axis2 and Spring integration is that Axis2 simply needs to
have Spring supply one of its pre-loaded beans to the Axis2 Message Receiver
@@ -23,11 +52,22 @@
<p>This guide assumes some basic knowledge of Axis2. See the userguide for more info.</p>
+<a name="2"></a>
+
+<h2>Configuring Axis2 to be Spring aware</h2>
+<a name="21"></a>
+
+<h3>Programming Model</h3>
+
<p>From an Axis2 standpoint, two needed hooks are to be placed into the AAR services.xml:
The ServiceObjectSupplier that hooks Axis2 and Spring together, and the name of Spring bean
that Axis2 will use as the service. All Message Receivers are currently supported, as would be
any Message Receiver that extends org.apache.axis2.receivers.AbstractMessageReceiver . </p>
+<a name="22"></a>
+
+<h3>Simple Spring config example</h3>
+
<p>For the purpose of this example, and for no other reason besides simplicity, we'll
configure Spring via a WAR file's web.xml. Lets add a context-param and a listener:</p>
<pre><listener>
@@ -38,9 +78,15 @@
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param></pre>
-<p>Here we will show two examples of Spring's /WEB-INF/applicationContext.xml . The first example
+<p>Next we will show two examples of Spring's /WEB-INF/applicationContext.xml referenced in the web.xml listener - one with a servlet container, and one without. The first example
should be familair to any Spring user: </p>
+<a name="23"></a>
+
+<h3>Inside a Servlet Container</h3>
+
+<p>This 'inside a servlet container' exampe applicationContext.xml should be familair to any Spring user: </p>
+
<pre> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
@@ -84,11 +130,6 @@
</bean>
</beans></pre>
-
-<p>Lets move now to the Axis2 services.xml file. Note that while we are using RawXMLINOutMessageReceiver
-as the Message Receiver, currently all Message Receviers extend AbstractMessageReceiver and therefore are
-automatically supported.</p>
-
<p>If the service is running in a Servlet Container, ie, Axis2 will be able to get a hold of
ServletContext, the services.xml for the example would be using SpringServletContextObjectSupplier such as: </p>
@@ -102,6 +143,11 @@
<messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
</operation>
</service> </pre>
+
+<p>Lets move now to the Axis2 services.xml file. Note that while we are using RawXMLINOutMessageReceiver
+as the Message Receiver, currently all Message Receviers extend AbstractMessageReceiver and therefore are
+automatically supported.</p>
+
<p>If the service is _NOT_ running in a Servlet Container, ie, Axis2 will _NOT_ be able to get a hold of
ServletContext, the services.xml for the example would be using SpringAppContextAwareObjectSupplier such as: </p>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org