...
CXF provides support for developing services using JavaScript and ECMAScript for XML(E4X). The pattern patterns used to develop these services are similar to JAX-WS Provider
implementations that handle their requests and responses (either SOAP messages or SOAP payloads) as DOM documents.
...
For example, if you deployed a JavaScript service using the command shown in Example 4, your service would be deployed at http://cxf.apache.org/goodnessImage Removed
.
Panel |
---|
title | Example 4:Deploying a Service at a Specified Address |
---|
|
java org.apache.cxf.js.rhino.ServerApp -a http://cxf.apache.org/goodnessImage Removed hello_world.jsx
|
To deploy a number of services using a common base URL you could use the command shown in Example 5. If the service defined by hello_world.jsx
had port name of helloWorld
, ServerApp
would publish it at http://cxf.apache.org/helloWorldImage Removed
. If the service defined by goodbye_moon.js
had a port name of blue
, ServerApp
would publish at http://cxf.apache.org/blueImage Removed
.
Panel |
---|
title | Example 5:Deploying a Group of Services to a Base Address |
---|
|
java org.apache.cxf.js.rhino.ServerApp -b http://cxf.apache.orgImage Removed hello_world.jsx goodbye_moon.js
|
You can also combine the arguments as shown in Example 6 and your service would be deployed at http://cxf.apache.org/goodnessImage Removed
. ServerApp
would publish three service endpoints:
- The service defined by
hello_world.jsx
at http://cxf.apache.org/helloWorldImage Removed
. - The service defined by
goodbye_moon.js
at http://cxf.apache.org/blueImage Removed
. - The service defined by
chocolate.jsx
at http://cxf.apache.org/goodnessImage Removed
.
Panel |
---|
title | Example 6:Combining the Command Line Arguments |
---|
|
java org.apache.cxf.js.rhino.ServerApp -b http://cxf.apache.org
|
...
...