Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<ns1:HTTPRequest xmlns:ns1="http://www.fiorano.com/fesb/activity/SimpleHTTP1">
   <URL>http://www.google.co.in/advanced_search?hl=en</URL>
</ns1:HTTPRequest>

...

Output


Figure 11: HTML display of Output in Display Component

...

Configure the SimpleHTTP as in Figure 9. Use the Feeder component to send sample input given below and Display component to display the output message.

Sample Input

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<ns1:HTTPRequest xmlns:ns1="http://www.fiorano.com/fesb/activity/SimpleHTTP1">
   <URL>http<URL CacheConnection="true">http://localhost:9999/index.html</URL>
   <Content>Sample Content</Content>
</ns1:HTTPRequest>

Sample Output

Sample Content gets displayed.

Points to note

  • For providing header properties like Content-Type or Content-Length, set the required properties in the input message with a prefix http_. Example http_Content-Type.
  • For providing parameters, set the required properties in the input message as properties with a prefix param_. Example param_myproperty.
  • To Post data, we need to provide the header property Content-Type by setting property http_Content-Type to appropriate value on the input message. For example, if we need to post simple text content then set the property http_Content-Type to text/plain.
  • When connecting to secured sites, the component accesses truststore from different locations in different launch modes -
    • Separate Process - %JAVA_HOME%\jre\lib\security\cacerts
    • In-memory - %FIORANO_HOME%\esb\server\profiles\certs\jssecacerts
      'jssecacerts' in %FIORANO_HOME% does not have trusted certificates required by most of the secured sites. Hence, to connect to secured sites, when component is launched in-memory, either the trusted certificates should be added to 'jssecacerts' or the property 'javax.net.ssl.trustStore' (in %FIORANO_HOME%\esb\server\bin\server.conf; if FPS is launched using server.bat/server.sh and %FIORANO_HOME%\esb\fps\bin\fps.conf, if FPS is launched using fps.bat/fps.sh) should be set to %JAVA_HOME%\jre\lib\security\cacerts.
Adaptavist ThemeBuilder EngineAtlassian Confluence