New Composer User

Hi all,

i need to implement new HTTP request throw composer, i use Web Request Component and configure it as below:

<!-- This is the WebRequest block -->
<form id="WebRequest1">
  <block>
	<script>
	    var requestObj = new Object();
		requestObj['WebUrl'] = [b]'http://IP:port/serviceName?';[/b]
		requestObj['Protocol'] = 'get';
		requestObj['Enctype'] = 'application/x-www-form-urlencoded';
		requestObj['VerifyJSON'] = true;
		requestObj['AuthenAccess'] = false;
	
		var parameters = new Object();
		[b]parameters['ChannelID'] = 'str';
		parameters['IdentifierNumber'] = 'MSISDN';
		parameters['IdentifierType'] = '1';
		parameters['RetrieveAggregatedUsageFlag'] = '0';
		parameters['RetrieveGrantedUsageFlag'] = '0';[/b]
		requestObj['Parameters'] = parameters;
        requestObj['Timeout'] = '15000';
        
    
		requestObj['enableProxy']=false;
		requestObj['proxyHost']='';
		requestObj['proxyPort']=80;
		requestObj['proxyUserName']='';
		requestObj['proxyPassword']='';
	</script>
	<data name="WebRequest1Response" enctype="application/json" 
		gvp:contentexpr="requestObj" method="post"
		src="../include/getWebRequestData.jsp" />
	<if cond="typeof WebRequest1Response.errorMsg == 'undefined'">			
	    <assign name="AppState.CustomerResult" expr="WebRequest1Response" />	    
	    <goto next="#Reminder_Menu" />
	<else/>
    	<throw event="error.com.genesyslab.composer.servererror" messageexpr="WebRequest1Response.errorMsg" />
    </if>
   </block>
		
</form>

i don’t know if this is the right way to define new HTTP request:

note request is so simple:

  • GET
  • response is XML
  • input parameter add to URL

finally when flow reach to this component it throw exception, and i don’t have access to logs.

Without logs is very tricky to help you :frowning:

Hi Kubig,

thanks for your reply.
but i need to confirm if i configure the web request component correctly or not.

Yes, the code seems good