multipleHeaders.jws Sample

A web service that demonstrates how to build a SOAP envelope with mulitple headers using an xBean.

Concepts Demonstrated by this Sample

Location of Sample Files

This sample is located in the SoapHeaders folder of the WebServices project in the SamplesApp sample application. In the file system the location is:

BEA_HOME\weblogic81\samples\workshop\SamplesApp\WebServices\SoapHeaders\soapheaders\mutipleHeaders.jws

To Run the Sample

  1. Start WebLogic Server in the appropriate domain.
  2. Launch the service either by opening it in WebLogic Workshop and selecting the Start operation or by entering http://localhost:7001/WebServices/SoapHeaders/soapHeaders/multipleHeaders.jws in the address bar of your browser. If WebLogic Server is running in the appropriate domain on this machine and you have deployed the SamplesApp sample application, you may click here to run the sample.
  3. Navigate to the Test Form tab of Test View, if necessary.
  4. Invoke the myMethod method to create the headers.
  5. Click on the myServiceControl.GetHeader link in the Message Log. You will be able to see the headers that were created.
  6. Click on the GetHeader1 link in the Message Log. You will be able to see the headers that were retreived using the first way of traversing the node for the headers.
  7. Click on the GetHeader2 link in the Message Log. You will be able to see the headers that were retreived using the second way of traversing the node for the headers.

Related Topics

mySoap11Service.jws Sample

mySoap12Service.jws Sample

multipleHeaders.jws Sample

Building a JMS Client

JwsContext Interface

Interface Node

Test View