Working with Message Headers

Steps on how to use WCF message headers using WCFStorm.

  1. Define the types that will be used by the message headers. Right-click the method in the service tree and and select "Define Message Headers Type".  This will bring up a form where you can specify the message header types.  The types can be chosen from Primitive and DataContract types.

    Defined message header types
     
  2. Ensure that the "Direction" matches the headers coming from and going into the wcf service.  For example, in the screenshot below the type Composite type is sent from WCFStorm (Outgoing), received by the WCF service and gets sent back (Incoming)

    Define message header types to match the WCF service

    Note: header name and namespace combination must be unique.
     
  3. Once the headers types have been defined, invoke the service.  The screenshot below shows the output of the types defined in step #2.

    Message Headers Request/Response

 


Site Map | Printable View | © 2008 - 2024 WCFStorm Solutions

Powered by mojoPortal | XHTML 1.0 | CSS | Design by styleshout