| Author | 
		  Message
		 | 
		
		  | ferquirino | 
		  
		    
			  
				 Posted: Thu Dec 19, 2013 10:11 am    Post subject: invalid character in header field - application/x-msdownload | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 05 May 2008 Posts: 34 Location: São Paulo, Brazil 
  | 
		  
		    
			  
				Hello,
 
 
I call a web service with SOAPRequest node.
 
A correct response a received, but the header HTTP is:
 
 
   
	| Code: | 
   
  
	application/x-msdownload: application/x-msdownload
 
MicrosoftOfficeWebServer: 5.0_Pub
 
X-Powered-By: ASP.NET
 
X-AspNet-Version: 2.0.50727
 
Cache-Control: private, max-age=0
 
Content-Type: text/xml; charset=utf-8
 
Content-Length: 1657 | 
   
 
 
 
And if header generates the following exception :
 
 
   
	| Quote: | 
   
  
	RecoverableException
 
                                                     File:CHARACTER:F:\build\S700_P\src\WebServices\WSLibrary\ImbWSRequest.cpp
 
                                                     Line:INTEGER:686
 
                                                     Function:CHARACTER:ImbWSRequest::makeWSRequest
 
                                                     Type:CHARACTER:
 
                                                     Name:CHARACTER:
 
                                                     Label:CHARACTER:
 
                                                     Catalog:CHARACTER:BIPmsgs
 
                                                     Severity:INTEGER:3
 
                                                     Number:INTEGER:3153
 
                                                     Text:CHARACTER:A Web Service request has detected an error occured whilst invoking a web service located at host &1, on port &2, on path &3.
 
                                                     Insert
 
                                                                 Type:INTEGER:5
 
                                                                 Text:CHARACTER:e-commerce01.serasa.intranet
 
                                                     Insert
 
 
                                                                 Type:INTEGER:2
 
                                                                 Text:CHARACTER:80
 
                                                     Insert
 
                                                                 Type:INTEGER:5
 
                                                                 Text:CHARACTER:/ecommercePagamento/Pagamento.asmx
 
                                                     RecoverableException
 
                                                                 File:CHARACTER:F:\build\S700_P\src\WebServices\WSLibrary\ImbWSRFC822HeaderParser.cpp
 
                                                                 Line:INTEGER:444
 
                                                                 Function:CHARACTER:ImbRFC822HeaderParser::parseLine
 
                                                                 Type:CHARACTER:
 
                                                                 Name:CHARACTER:
 
                                                                 Label:CHARACTER:
 
                                                                 Catalog:CHARACTER:BIPmsgs
 
                                                                 Severity:INTEGER:3
 
                                                                 Number:INTEGER:3156
 
                                                                 Text:CHARACTER:Empty or invalid header found at position: &1.
 
                                                                 Insert
 
                                                                            Type:INTEGER:2
 
                                                                             Text:CHARACTER:100
 
                                                                 Insert
 
                                                                            Type:INTEGER:14
 
                                                                             Text:CHARACTER:HTTP
 
                                                                 RecoverableException
 
                                                                             File:CHARACTER:F:\build\S700_P\src\WebServices\WSLibrary\ImbWSRFC822HeaderParser.cpp
 
                                                                            Line:INTEGER:705
 
                                                                             Function:CHARACTER:ImbWSRFC822HeaderParser::throwInvalidCharacterException
 
                                                                            Type:CHARACTER:
 
                                                                            Name:CHARACTER:
 
                                                                            Label:CHARACTER:
 
                                                                             Catalog:CHARACTER:BIPmsgs
 
                                                                             Severity:INTEGER:3
 
                                                                             Number:INTEGER:3168
 
                                                                             Text:CHARACTER:invalid character in header field
 
                                                                            Insert
 
                                                                                        Type:INTEGER:14
 
                                                                                        Text:CHARACTER:application/x-msdownload
 
                                                                            Insert
 
                                                                                        Type:INTEGER:2
 
                                                                                        Text:CHARACTER:47
 
                                                                            Insert
 
                                                                                        Type:INTEGER:2
 
                                                                                        Text:CHARACTER:12
 
                                                                            Insert
 
                                                                                        Type:INTEGER:14
 
                                                                                        Text:CHARACTER:HTTP | 
   
 
 
 
Has anyone had this error? I appreciate all the help.
 
Broker V7
 
 
Thanks | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | gs | 
		  
		    
			  
				 Posted: Thu Dec 19, 2013 11:31 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Master
 
 Joined: 31 May 2007 Posts: 254 Location: Sweden 
  | 
		  
		    
			  
				Looks like the server sends an invalid content type for the SOAP.
 
 
application/x-msdownload is used for windows binaries. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | ferquirino | 
		  
		    
			  
				 Posted: Thu Dec 19, 2013 1:17 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 05 May 2008 Posts: 34 Location: São Paulo, Brazil 
  | 
		  
		    
			  
				
   
	| gs wrote: | 
   
  
	Looks like the server sends an invalid content type for the SOAP.
 
 
application/x-msdownload is used for windows binaries. | 
   
 
 
 
Thanks, gs.
 
 
When calling the web service by soapUI, this application / x-msdownload is ignored (or other thing) and the answer is brought.
 
Is it possible configure SOAPRequest not to validate this header or that part of the header? Or do I have to talk to the the staff who did the service .NET don't send it? 
 
 
Tomorrow I will do the test with the HTTPRequest. Will I have the same problem? 
 
 
Thanks again. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | ferquirino | 
		  
		    
			  
				 Posted: Fri Dec 20, 2013 4:04 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 05 May 2008 Posts: 34 Location: São Paulo, Brazil 
  | 
		  
		    
			  
				HTTP Request node does a same validation to HTTP header.
 
 
I will try to negotiate with staff who made the web service. If I can't negotiate, the final possibility is Java node? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mgk | 
		  
		    
			  
				 Posted: Fri Dec 20, 2013 9:59 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Padawan
 
 Joined: 31 Jul 2003 Posts: 1647
  
  | 
		  
		    
			  
				The problem here is that this http header is malformed:
 
 
   
	| Code: | 
   
  
	| application/x-msdownload: application/x-msdownload  | 
   
 
 
 
The "/" character is not allowed is a header name according to RFC 2616 (section 2.2 Basic Rules). 
 
 
What application generated this message? 
 
 
Kind regards, _________________ MGK
 
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | ferquirino | 
		  
		    
			  
				 Posted: Tue Dec 24, 2013 12:08 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 05 May 2008 Posts: 34 Location: São Paulo, Brazil 
  | 
		  
		    
			  
				| This web service is in production for more than 6 months. It has been researched that only applications .NET consume the service. After several questions about it and be out of default, the web service has changed. As we now get a valid HTTP Header and we access via SOAP Request. The topic can be closed, thanks. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |