ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » invalid character in header field - application/x-msdownload

Post new topic  Reply to topic
 invalid character in header field - application/x-msdownload « View previous topic :: View next topic » 
Author Message
ferquirino
PostPosted: Thu Dec 19, 2013 10:11 am    Post subject: invalid character in header field - application/x-msdownload Reply with quote

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
View user's profile Send private message
gs
PostPosted: Thu Dec 19, 2013 11:31 am    Post subject: Reply with quote

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
View user's profile Send private message
ferquirino
PostPosted: Thu Dec 19, 2013 1:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
ferquirino
PostPosted: Fri Dec 20, 2013 4:04 am    Post subject: Reply with quote

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
View user's profile Send private message
mgk
PostPosted: Fri Dec 20, 2013 9:59 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

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
View user's profile Send private message
ferquirino
PostPosted: Tue Dec 24, 2013 12:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » invalid character in header field - application/x-msdownload
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.