You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2006/02/03 16:26:07 UTC
svn commit: r374688 - in
/incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/soap-binding:
README.txt build.xml client.html
Author: gnodet
Date: Fri Feb 3 07:26:04 2006
New Revision: 374688
URL: http://svn.apache.org/viewcvs?rev=374688&view=rev
Log:
Fix soap-binding demo
Modified:
incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/soap-binding/README.txt
incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/soap-binding/build.xml
incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/soap-binding/client.html
Modified: incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/soap-binding/README.txt
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/soap-binding/README.txt?rev=374688&r1=374687&r2=374688&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/soap-binding/README.txt (original)
+++ incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/soap-binding/README.txt Fri Feb 3 07:26:04 2006
@@ -1,20 +1,29 @@
-Welcome to the LoanDemo Example
+Welcome to the soap-binding Example
=============================================
-This example is based on the great EIP book (http://www.enterpriseintegrationpatterns.com/ComposedMessagingExample.html).
-The client and components are built and run from source using Ant, http://ant.apache.org.
+This example shows how to expose a simple web service with ServiceMix.
+The components are built and run from source using Ant, http://ant.apache.org.
To start the servicemix server using the sample configuration, you must enter the following commands:
ant setup
../../bin/servicemix servicemix.xml
-This will start the loan broker component.
-
-A simple JMS client based on lingo (http://lingo.codehaus.org/) is provided.
-Just execute 'ant' from the current directory to run the JMS client.
+This will start the soap-binding demo.
+A simple client is available with the client.html web page.
+Just launched it in your favorite web browser and modify the content of the left pane.
+You should see the response on the right pane.
For more information on this example please see
-http://servicemix.org/Loan+Broker+example
+http://servicemix.org/soap+binding+example
+
+
+
+NOTES:
+ * currently, the demo does not work with FireFox
+ * if you experience problems, try rebuilding the demo:
+ remove all the directories but the src one,
+ type 'ant setup'
+ run '../../bin/servicemix servicemix.xml'
Modified: incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/soap-binding/build.xml
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/soap-binding/build.xml?rev=374688&r1=374687&r2=374688&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/soap-binding/build.xml (original)
+++ incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/soap-binding/build.xml Fri Feb 3 07:26:04 2006
@@ -71,25 +71,4 @@
<copy file="${build.dir}/soap-demo-sa.zip" todir="deploy"/>
</target>
- <target name="build-client" depends="init" description="Build components">
- <javac srcdir="${client.src.dir}" destdir="${client.build.dir}" debug="on" source="1.4" target="1.4">
- <classpath refid="javac.classpath"/>
- </javac>
- </target>
-
- <target name="run" depends="build-client" description="Runs the example client">
- <echo>Running exsample client</echo>
- <java classname="JMSClient" fork="yes" maxmemory="100M">
- <classpath refid="javac.classpath"/>
- </java>
- </target>
-
- <target name="run-loop" depends="build-client" description="Runs the example client">
- <echo>Running exsample client</echo>
- <java classname="JMSClient" fork="yes" maxmemory="100M">
- <classpath refid="javac.classpath"/>
- <arg value="100000"/>
- </java>
- </target>
-
</project>
Modified: incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/soap-binding/client.html
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/soap-binding/client.html?rev=374688&r1=374687&r2=374688&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/soap-binding/client.html (original)
+++ incubator/servicemix/trunk/servicemix-assembly/src/main/release/examples/soap-binding/client.html Fri Feb 3 07:26:04 2006
@@ -25,6 +25,7 @@
/* on essaie de créer l'objet si ce n'est pas déjà fait */
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
try {
+ netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead UniversalBrowserWrite");
xmlhttp = new XMLHttpRequest();
} catch (e) {
xmlhttp = false;
@@ -45,16 +46,18 @@
function send() {
var xmlhttp = getHTTPObject();
+ if (!xmlhttp) {
+ alert('cound not create XMLHttpRequest object');
+ return;
+ }
var request = document.getElementById("request");
- //alert(request.value);
var response = document.getElementById("response");
- //alert(xmlhttp);
- xmlhttp.open("POST", "http://localhost:8192/Service/", true);
- //alert('sending');
- //xmlhttp.setRequestHeader("")
+ try {
+ xmlhttp.open("POST", "http://localhost:8192/Service/", true);
+ } catch (e) {
+ alert('error opening');
+ }
xmlhttp.send(request.value);
- //alert(response.value);
- //response.value = xmlhttp.responseText;
}
</script>