| Author | 
		  Message
		 | 
		
		  | PRKUMAR | 
		  
		    
			  
				 Posted: Mon Nov 05, 2012 5:18 am    Post subject: Problem with HTTPRequest node | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 04 Sep 2012 Posts: 36
  
  | 
		  
		    
			  
				Hi,
 
I am designing a simple flow with following nodes:
 
mqinput -> compute -> httprequest -> compute -> mqoutput
 
 
I am getting the below exception when I executing the flow:
 
(0x01000000:Name     ):RecoverableException = (
 
        (0x03000000:NameValue):File            = 'F:\build\S610_P\src\WebServices\WSLibrary\ImbWSRequest.cpp' (CHARACTER)
 
        (0x03000000:NameValue):Line            = 536 (INTEGER)
 
        (0x03000000:NameValue):Function        = 'ImbWSRequest::makeWSRequest' (CHARACTER)
 
        (0x03000000:NameValue):Type            = '' (CHARACTER)
 
        (0x03000000:NameValue):Name            = '' (CHARACTER)
 
        (0x03000000:NameValue):Label           = '' (CHARACTER)
 
        (0x03000000:NameValue):Catalog         = 'BIPv610' (CHARACTER)
 
        (0x03000000:NameValue):Severity        = 3 (INTEGER)
 
        (0x03000000:NameValue):Number          = 3152 (INTEGER)
 
        (0x03000000:NameValue):Text            = 'A Web Service request has detected a SOCKET error whilst invoking a web service located at host &1, on port &2, on path &3.' (CHARACTER)
 
        (0x01000000:Name     ):Insert          = (
 
          (0x03000000:NameValue):Type = 5 (INTEGER)
 
          (0x03000000:NameValue):Text = 'localhost' (CHARACTER)
 
        )
 
        (0x01000000:Name     ):Insert          = (
 
          (0x03000000:NameValue):Type = 2 (INTEGER)
 
          (0x03000000:NameValue):Text = '7080' (CHARACTER)
 
        )
 
        (0x01000000:Name     ):Insert          = (
 
          (0x03000000:NameValue):Type = 5 (INTEGER)
 
          (0x03000000:NameValue):Text = '/testhttp' (CHARACTER)
 
        )
 
        (0x01000000:Name     ):SocketException = (
 
          (0x03000000:NameValue):File     = 'F:\build\S610_P\src\CommonServices\ImbBasicSocket.cpp' (CHARACTER)
 
          (0x03000000:NameValue):Line     = 476 (INTEGER)
 
          (0x03000000:NameValue):Function = 'ImbBasicSocket::connectTimeout' (CHARACTER)
 
          (0x03000000:NameValue):Type     = '' (CHARACTER)
 
          (0x03000000:NameValue):Name     = '' (CHARACTER)
 
          (0x03000000:NameValue):Label    = '' (CHARACTER)
 
          (0x03000000:NameValue):Catalog  = 'BIPv610' (CHARACTER)
 
          (0x03000000:NameValue):Severity = 3 (INTEGER)
 
          (0x03000000:NameValue):Number   = 3150 (INTEGER)
 
          (0x03000000:NameValue):Text     = 'An error occurred whilst performing a socket operation: getsockopt' (CHARACTER)
 
          (0x01000000:Name     ):Insert   = (
 
            (0x03000000:NameValue):Type = 5 (INTEGER)
 
            (0x03000000:NameValue):Text = '::connect::select()' (CHARACTER)
 
          )
 
          (0x01000000:Name     ):Insert   = (
 
            (0x03000000:NameValue):Type = 2 (INTEGER)
 
            (0x03000000:NameValue):Text = '10061' (CHARACTER)
 
          )
 
          (0x01000000:Name     ):Insert   = (
 
            (0x03000000:NameValue):Type = 14 (INTEGER)
 
            (0x03000000:NameValue):Text = 'No connection could be made because the target machine actively refused it.
 
' (CHARACTER)
 
          )
 
        )
 
      )
 
    )
 
 
The URL which I had given in httprequest node is: http://localhost:7080/testhttp | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | wbi_telecom | 
		  
		    
			  
				 Posted: Mon Nov 05, 2012 6:37 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Disciple
 
 Joined: 15 Feb 2006 Posts: 188 Location: Harrisburg, PA 
  | 
		  
		    
			  
				Your request is timing out. Do you have any serivce processing requests at the URL you have defined in your HTTPRequst node ? Is that service running? 
 
 
Cheers, | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | PRKUMAR | 
		  
		    
			  
				 Posted: Mon Nov 05, 2012 6:44 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 04 Sep 2012 Posts: 36
  
  | 
		  
		    
			  
				| service processing requests? can you please explain? I have set only the url property in httprequest node and remaining all are default values. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Mon Nov 05, 2012 6:47 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				You tried to make a request to the localhost machine.
 
 
The localhost machine said you can't make requests to that port. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | PRKUMAR | 
		  
		    
			  
				 Posted: Mon Nov 05, 2012 7:04 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 04 Sep 2012 Posts: 36
  
  | 
		  
		    
			  
				| so can we use mqsichangeproperties to change it to different port and try it again? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Mon Nov 05, 2012 7:12 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				
   
	| PRKUMAR wrote: | 
   
  
	| so can we use mqsichangeproperties to change it to different port and try it again? | 
   
 
 
 
Yes, you can.
 
 
But there's no reason to expect that will solve the problem.
 
 
You should determine *why* the localhost refused the connection. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | ganesh | 
		  
		    
			  
				 Posted: Mon Nov 05, 2012 7:28 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Master
 
 Joined: 18 Jul 2010 Posts: 294
  
  | 
		  
		    
			  
				
 
 
If it is an another webservice message flow (local to  your machine) you are trying to invoke make sure it is up and running. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | gunjand | 
		  
		    
			  
				 Posted: Mon Nov 05, 2012 3:45 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 21 May 2009 Posts: 23
  
  | 
		  
		    
			  
				| Check if service is running or try to invoke using soapui or any other htttp client. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | tip.1020 | 
		  
		    
			  
				 Posted: Tue Nov 06, 2012 1:35 am    Post subject: Re: Problem with HTTPRequest node | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 25 Oct 2012 Posts: 10
  
  | 
		  
		    
			  
				
   
	| PRKUMAR wrote: | 
   
  
	Hi,
 
I am designing a simple flow with following nodes:
 
mqinput -> compute -> httprequest -> compute -> mqoutput
 
 
I am getting the below exception when I executing the flow:
 
(0x01000000:Name     ):RecoverableException = (
 
        (0x03000000:NameValue):File            = 'F:\build\S610_P\src\WebServices\WSLibrary\ImbWSRequest.cpp' (CHARACTER)
 
        (0x03000000:NameValue):Line            = 536 (INTEGER)
 
        (0x03000000:NameValue):Function        = 'ImbWSRequest::makeWSRequest' (CHARACTER)
 
        (0x03000000:NameValue):Type            = '' (CHARACTER)
 
        (0x03000000:NameValue):Name            = '' (CHARACTER)
 
        (0x03000000:NameValue):Label           = '' (CHARACTER)
 
        (0x03000000:NameValue):Catalog         = 'BIPv610' (CHARACTER)
 
        (0x03000000:NameValue):Severity        = 3 (INTEGER)
 
        (0x03000000:NameValue):Number          = 3152 (INTEGER)
 
        (0x03000000:NameValue):Text            = 'A Web Service request has detected a SOCKET error whilst invoking a web service located at host &1, on port &2, on path &3.' (CHARACTER)
 
        (0x01000000:Name     ):Insert          = (
 
          (0x03000000:NameValue):Type = 5 (INTEGER)
 
          (0x03000000:NameValue):Text = 'localhost' (CHARACTER)
 
        )
 
        (0x01000000:Name     ):Insert          = (
 
          (0x03000000:NameValue):Type = 2 (INTEGER)
 
          (0x03000000:NameValue):Text = '7080' (CHARACTER)
 
        )
 
        (0x01000000:Name     ):Insert          = (
 
          (0x03000000:NameValue):Type = 5 (INTEGER)
 
          (0x03000000:NameValue):Text = '/testhttp' (CHARACTER)
 
        )
 
        (0x01000000:Name     ):SocketException = (
 
          (0x03000000:NameValue):File     = 'F:\build\S610_P\src\CommonServices\ImbBasicSocket.cpp' (CHARACTER)
 
          (0x03000000:NameValue):Line     = 476 (INTEGER)
 
          (0x03000000:NameValue):Function = 'ImbBasicSocket::connectTimeout' (CHARACTER)
 
          (0x03000000:NameValue):Type     = '' (CHARACTER)
 
          (0x03000000:NameValue):Name     = '' (CHARACTER)
 
          (0x03000000:NameValue):Label    = '' (CHARACTER)
 
          (0x03000000:NameValue):Catalog  = 'BIPv610' (CHARACTER)
 
          (0x03000000:NameValue):Severity = 3 (INTEGER)
 
          (0x03000000:NameValue):Number   = 3150 (INTEGER)
 
          (0x03000000:NameValue):Text     = 'An error occurred whilst performing a socket operation: getsockopt' (CHARACTER)
 
          (0x01000000:Name     ):Insert   = (
 
            (0x03000000:NameValue):Type = 5 (INTEGER)
 
            (0x03000000:NameValue):Text = '::connect::select()' (CHARACTER)
 
          )
 
          (0x01000000:Name     ):Insert   = (
 
            (0x03000000:NameValue):Type = 2 (INTEGER)
 
            (0x03000000:NameValue):Text = '10061' (CHARACTER)
 
          )
 
          (0x01000000:Name     ):Insert   = (
 
            (0x03000000:NameValue):Type = 14 (INTEGER)
 
            (0x03000000:NameValue):Text = 'No connection could be made because the target machine actively refused it.
 
' (CHARACTER)
 
          )
 
        )
 
      )
 
    )
 
 
The URL which I had given in httprequest node is: http://localhost:7080/testhttp | 
   
 
 
 
Have you tried using any other URL which you might have used before?
 
Also what is the response that you are expecting when you are posting to this url? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | nukalas2010 | 
		  
		    
			  
				 Posted: Tue Nov 06, 2012 10:44 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Master
 
 Joined: 04 Oct 2010 Posts: 220 Location: Somewhere in the World.... 
  | 
		  
		    
			  
				check the connection using telnet..
 
 
telnet localhost 7080
 
 
Regards, | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |