wsSOAPGetHeaderwsSOAPGetHeader
Get a header from a SOAP message
Home > Books > NetKernel API and Services Reference > Accessor Listing > SOAP Service Infrastructure > wsSOAPGetHeader

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


Module

urn:org:ten60:netkernel:mod:ws

The wsSOAPGetHeader accessor is exported by the urn:org:ten60:netkernel:mod:ws module. Import this module to gain access to the accessor.

Syntax

URI
active:wsSOAPGetHeader

ArgumentRulesDescription
messageMandatory the SOAP message
headerMandatory
the SOAP header to be retrieved from the message
namespaceOptional an optional namespace URI

Example Usage

DPML

<instr>
  <type>wsSOAPGetHeader</type>
  <message>var:SOAPmessage</message>
  <header>
    <MyHeader />
  </header>
  <namespace>http://my-namespace</namespace>
  <target>this:response</target>
</instr>

NetKernel Foundation API

req=context.createSubRequest("active:wsSOAPGetHeader");
req.addArgument("message", [resource representation, aspect, or URI] );
req.addArgument("header", [resource representation, aspect, or URI] );
result=context.issueSubRequest(req);

Purpose

The wsSOAPGetHeader accessor retrieves a Header from a SOAP 1.1 or 1.2 Message. The header argument must supply a template document with the same localName as the header element to be retrieved. If the namespace argument URI is supplied then the header part's namespace must also match with it. The header is returned as the result.

© 2003-2007, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.