You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by li...@apache.org on 2008/07/08 23:39:36 UTC
svn commit: r674974 - in
/geronimo/samples/branches/2.1/samples/jaxws-calculator: README.txt
jaxws-calculator-war/src/main/webapp/WEB-INF/wsdl/CalculatorService.wsdl
Author: linsun
Date: Tue Jul 8 14:39:36 2008
New Revision: 674974
URL: http://svn.apache.org/viewvc?rev=674974&view=rev
Log:
More readme update - either install the plugin or war file
Modified:
geronimo/samples/branches/2.1/samples/jaxws-calculator/README.txt
geronimo/samples/branches/2.1/samples/jaxws-calculator/jaxws-calculator-war/src/main/webapp/WEB-INF/wsdl/CalculatorService.wsdl
Modified: geronimo/samples/branches/2.1/samples/jaxws-calculator/README.txt
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jaxws-calculator/README.txt?rev=674974&r1=674973&r2=674974&view=diff
==============================================================================
--- geronimo/samples/branches/2.1/samples/jaxws-calculator/README.txt (original)
+++ geronimo/samples/branches/2.1/samples/jaxws-calculator/README.txt Tue Jul 8 14:39:36 2008
@@ -6,30 +6,49 @@
mvn install
-2. Deploy
+2. Install the sample plugin. For example, Use command below if you
+want to install the jaxws-calculator tomcat plugin.
-After the build, A war file jaxws-calculator-war-{version}.war will be created under jaxws-calculator-war\target.
-Deploy this sample via the following command or admin console.
-
- deploy.[bat|sh] deploy %SAMPLE_HOME$\jaxws-calculator\jaxws-calculator-war\target\jaxws-calculator-war-{version}.war
-
+ deploy.[bat|sh] install-plugin %SAMPLE_HOME$\jaxws-calculator-tomcat\jaxws-calculator-tomcat\target\jaxws-calculator-tomcat-{version}.car
+ Alternatively, you can also use admin console or gshell to install the sample plugin.
+
3. Run
Use your favorite browser to open the following url:
- http://localhost:8080/jaxws-calculator-war-{version}
+ http://localhost:8080/jaxws-calculator
Enter 2 integers and select the "=" button to display the result.
To query wsdl, open the following url in your browser:
- http://localhost:8080/jaxws-calculator-war-{version}/calculator?wsdl
+ http://localhost:8080/jaxws-calculator/calculator?wsdl
4. Undeploy
Use Admin console to undeploy the module.
-Navigate to Applications --> Web App WARs to uninstall the jaxws-calculator-war module.
+Navigate to Applications --> Web App WARs to uninstall the jaxws-calculator module.
+
+
+Note:
+
+If you choose to deploy the jaxws-calculator-war\target\jaxws-calculator-war-{version}.war file
+instead of installing the car file, perform either steps below:
+
+Either
+
+Copy the geronimo-web.xml from jaxws-calculator-tomcat\target\resources\META-INF\plan.xml
+or jaxws-calculator-jetty\target\resources\META-INF\plan.xml into jaxws-calculator-war\src\main\webapp\WEB-INF
+
+Or
+
+Update the "soap:address location" value in the CalculatorService.wsdl accordingly, for example
+
+<soap:address location="http://localhost:8080/jaxws-calculator-war-{version}/calculator"/>
+
+
+Rebuild the sample and deploy the war.
\ No newline at end of file
Modified: geronimo/samples/branches/2.1/samples/jaxws-calculator/jaxws-calculator-war/src/main/webapp/WEB-INF/wsdl/CalculatorService.wsdl
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jaxws-calculator/jaxws-calculator-war/src/main/webapp/WEB-INF/wsdl/CalculatorService.wsdl?rev=674974&r1=674973&r2=674974&view=diff
==============================================================================
--- geronimo/samples/branches/2.1/samples/jaxws-calculator/jaxws-calculator-war/src/main/webapp/WEB-INF/wsdl/CalculatorService.wsdl (original)
+++ geronimo/samples/branches/2.1/samples/jaxws-calculator/jaxws-calculator-war/src/main/webapp/WEB-INF/wsdl/CalculatorService.wsdl Tue Jul 8 14:39:36 2008
@@ -82,7 +82,7 @@
<wsdl:service name="Calculator">
<wsdl:port name="CalculatorPort" binding="tns:CalculatorSoapBinding">
- <soap:address location="http://localhost:8080/jaxws-calculator-war-2.1-SNAPSHOT/calculator"/>
+ <soap:address location="http://localhost:8080/jaxws-calculator/calculator"/>
</wsdl:port>
</wsdl:service>