Web Services Explorer –
Headers Support Scenarios
Setup
- Install the HeaderTestEAR.ear application on a server.
- Open the wsdl URI for the
Header Test web service in WSE.
About
the Header Test web service
- The service simply adds the
values given in the header and returns the sum in the header. The same
is done with the values in the body element.
- A header not defined in the
wsdl is added to the response by this service. It should be ignored
by WSE.
- This service is not meant to be
WS-I compliant. For example, the Operand2 header part references a
type rather than an element and its serialized fragment is not namespace
qualified.
- Although the header test web
service understands the headers sent to it, it purposely leaves the
headers in the request after processing them. Therefore,
mustUnderstand faults can occur.
Scenarios
WSE_HEADER_01
– Basic Invocation (Weight 1 pt)
- Make sure the header and body
sections can be collapsed or expanded independently.
- Fill in values and invoke the
web service (leave the mustUnderstand and actor fields blank)
- Examine the results in both
form and source views and ensure they are correct.
WSE_HEADER_02
– Source View Invocation (Weight 2 pt)
- Fill in values in form view
(leave the mustUnderstand and actor fields blank)
- Flip the input form to source
view. Ensure the header fragments are serialized correctly in source
view (1 pt).
- Change some value in the header
and invoke the web service.
- Examine the results in both
form and source views and ensure they are correct (1 pt).
WSE_HEADER_03
– Form/Source view synchronization (Weight 3 pts)
- Fill in values in form view.
Check the mustUnderstand checkbox and fill in the actor field with
some URI for one of the header fragments.
- Flip the input form to source
view. Ensure the header fragments are serialized correctly in source
view. Look for the mustUnderstand and actor attributes (1 pt).
- Delete the mustUnderstand
attribute and put a space in the actor URI.
- Flip the input form back to
form view. The mustUnderstand checkbox should be uncheck, and the
actor attribute should be flagged as invalid (1 pt).
- Remove the space from the actor
URI and invoke the web service.
- Examine the results in both
form and source views and ensure they are correct (1 pt).
WSE_HEADER_04
– mustUnderstand and actor (Weight 1 pt)
- Fill in values in form view.
Check the mustUnderstand checkbox but leave the actor field blank
for one of the header fragments.
- Invoke the web service.
- There should be no
results. Flip to source view in the results pane to see that a
mustUnderstand fault has occurred.