[Extension EnhancedWebReferences] Example usage of the EnhancedWebReferences extension to set and get SOAP headers

[Extension EnhancedWebReferences] Example usage of the EnhancedWebReferences extension to set and get SOAP headers

  
Forge Component
(4)
Published on 2011-03-10 by Engineering Team
4 votes
Published on 2011-03-10 by Engineering Team
Hi, I would like to share with you an example of the usage of the EnhancedWebReferences extension that I created recently.
 
Attached to this post you can find two eSpaces (in version 7.0): the SOAPHeader_Client.oml and SOAPHeader_Server.oml. These eSpaces exemplify how you can use this extension to set and get SOAP headers:
  • The SoapHeaders_Client sets the SOAP headers  <InputHeaders><InputHeader1>value1</InputHeader1><InputHeader2>pass</InputHeader2></InputHeaders>. See the HomePage / InvokeWebReference screen action;
  • The SoapHeaders_Server reads the SOAP headers sent by the client and sets the SOAP headers <OutputHeaders><OutputHeader1>value1</OutputHeader1><OutputHeader2>pass</OutputHeader2></OutputHeaders>. - See the ExampleService / ExampleMethod web service method;
If you publish the two eSpaces in your infrastructure, you can test the example by going to the homepage of the SoapHeaders_Client eSpace at http://<yourserver>/SoapHeaders_Client .

Note: Since version 6.0 the EnhancedWebReferences extension is included in the OutSystems System components that are installed when you setup the OutSystems platform, so you should no longer be download it from the OutSystems Community (it will be availalble in your environment once you install the platform).
 
Kind Regards,
 
Daniel Lourenço
Outsystems