mySoap12Service.jws Sample

A simple web service that demonstrates how to build a SOAP 1.2 header 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\soapHeaderw\mySoap12Service.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/mySoap12Service.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 header. The service response shows the xml that includes the protocol that was returned by getThisProtocol
  5. Click on the myServiceControl.GetHeader link in the Message Log. You will be able to see the header that was created.
  6. Click on the GetHeader link in the Message Log. You will be able to see the header that was retreived.

Related Topics

mySoap11Service.jws Sample

multipleHeaders.jws Sample

Building a JMS Client

JwsContext Interface

Test View