SimpleHTTP

 

Configuration and Testing. PAGEREF _Toc225253001 \h 2

Interaction Configurations. PAGEREF _Toc225253002 \h 2

Attributes. PAGEREF _Toc225253003 \h 2

Input Schema. PAGEREF _Toc225253004 \h 3

Functional Demonstration. PAGEREF _Toc225253005 \h 3

Scenario 1. PAGEREF _Toc225253006 \h 3

Scenario 2. PAGEREF _Toc225253007 \h 4

Useful Tips. PAGEREF _Toc225253008 \h 5

 

The Simple HTTP component enables the user to get content from an external HTTP Server (Web Server). The component directly accepts the certificates. If the Content element is present in the input message, then Post method is used else Get method is used.

Configuration and Testing

Interaction Configurations

Figure 3.6.483: Sample SimpleHTTP configuration

TOP

Attributes

Accept Server Certificate

When accessing https URLs, this property determines whether the server certificates should be accepted or not

Ignore Hostname Mismatch

Configuration shown in the Figure 3.6.483 can be tested within the CPS by clicking on Test button.

Figure 3.6.484: Sample SimpleHTTP input message

Figure 3.6.485: Sample SimpleHTTP output message

Figure: Input Port Schema Structure

TOP

Input Schema

 

Schema Element

Description

 

<URL>

URL from which content has to be fetched. If we set "Cleanup resources after each document" property to "no", then the attribute "CacheConnection" appears in this element (as shown in Figure Input Port Schema Structure). This attribute accepts two values "true" and "false". If "true" is set to "CacheConnection" attribute, then the connections created are cached and these cached connections will be used when required. If we set "CacheConnection" attribute to "false", then the component clears the connection after each request.

 

<Content>

Content to be posted (optional)

 

TOP

Functional Demonstration

Scenario 1

This scenario demonstrates a sending simple HTTP request to a server.

Configure the SimpleHTTP as described in Configuration and Testing section and use Feeder and Display component to send sample input and check the response respectively.

Figure 3.6.486: Demonstrating Scenario 1 with sample input and output

Sample Input

<ns1:HTTPRequest xmlns:ns1="http://www.fiorano.com/fesb/activity/SimpleHTTP1">

   <URL>http://www.google.co.in/advanced_search?hl=en</URL>

</ns1:HTTPRequest>

Sample Output

Figure 3.6.487:  HTML display of Output in Display Component.

TOP

Scenario 2

The scenario demonstrates how a SimpleHTTP component can be used to post some data onto a Web Server hosted by a HTTPReceive component. The HTTPReceive component is hosting on port 9999 on the localhost machine and is configured to receive post data as simple text and send it back to the client as simple text.

Figure 3.6.486: Demonstrates using SimpleHTTP component to post data

Configure the SimpleHTTP as described in Configuration and Testing section and use Feeder and Display component to send sample input given below.

Sample Input

<ns1:HTTPRequest xmlns:ns1="http://www.fiorano.com/fesb/activity/SimpleHTTP1">

   <URL>http://localhost:9999/index.html</URL>

   <Content>Sample Content</Content>

</ns1:HTTPRequest>

Sample Output

Sample Content

TOP

Useful Tips

TOP

Copyright © 1999-2008, Fiorano Software Technologies Pvt. Ltd. All rights reserved.

Copyright © 2008-2009, Fiorano Software Pty. Ltd. All rights reserved.

This software is the confidential and proprietary information of Fiorano Software ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only in accordance with the terms of the license agreement enclosed with this product or entered into with Fiorano.