ClientJWS.jws Sample
This topic inludes the source code for the ClientJWS.jws Sample.
Sample Location
This sample is located in the following directory in your WebLogic Workshop installation:
BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebServices/jms_xmlProtocol/
Sample Source Code
01 package jms_xmlProtocol;
02
03 import jms_xmlProtocol.ClientXML;
04
05 public class ClientJWS implements com.bea.jws.WebService
06 {
07 static final long serialVersionUID = 1L;
08
09 /**
10 * Enter a string value between the <name> and </name> tags.
11 * <p>This value is passed as a parameter to the ClientXML.java class.
12 * <p>ClientXML.java, in turn, constructs a SOAP message to invoke JMS_XMLProtocol.jws.
13 * See the server console window for the response.
14 *
15 * @common:operation
16 * @jws:protocol http-xml="true" form-get="false" form-post="false"
17 */
18 public void requestHello(String name) throws Exception
19 {
20 ClientXML client = new ClientXML();
21 String [] args ={"t3://localhost:7001", name};
22 client.main(args);
23 }
24 }
|