ucar.soap
Class EchoMessageService
java.lang.Object
|
+--ucar.soap.EchoMessageService
- public class EchoMessageService
- extends java.lang.Object
Example of Apache SOAP messaging web service that simply sends back a message containing the original input SOAP message.
The service must be deployed to the Apache-SOAP middleware on the server with an appropriate deployment descriptor file
(see later), and it can then be invoked by sending the request message to a URL of the form
http://host:port/soap/servlet/messagerouter.
The request message (wrapped within the SOAP envelope) must have the form:
<echo xmlns="urn:echo-message" ........ />
- The root tag echo corresponds to the service method invoked
- The namespace urn:echo-message corresponds to the id assigned to the service at deployment time
The response message (not wrapped within the SOAP envelope) contains the extracted metadata in XML format
The deployment descriptor file for this service has the form:
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment" id="urn:echo-message" type="message">
<isd:provider type="java" scope="Application" methods="echo">
<isd:java class="ucar.soap.EchoMessageService"/>
</isd:provider>
<isd:faultListener>
org.apache.soap.server.DOMFaultListener
</isd:faultListener>
</isd:service>
|
Method Summary |
void |
echo(org.apache.soap.Envelope requestEnvelope,
org.apache.soap.rpc.SOAPContext requestContext,
org.apache.soap.rpc.SOAPContext responseContext)
This method will process xml documents with root tag "echo" |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EchoMessageService
public EchoMessageService()
echo
public void echo(org.apache.soap.Envelope requestEnvelope,
org.apache.soap.rpc.SOAPContext requestContext,
org.apache.soap.rpc.SOAPContext responseContext)
throws org.apache.soap.SOAPException
- This method will process xml documents with root tag "echo"
- Parameters:
requestEnvelope - required by Apache-SOAP message routing middlewarerequestContext - required by Apache-SOAP message routing middlewareresponseContext - required by Apache-SOAP message routing middleware
- Throws:
org.apache.soap.SOAPException