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 » Webservice Cannot process because charset=ibm-437'

Post new topic  Reply to topic
 Webservice Cannot process because charset=ibm-437' « View previous topic :: View next topic » 
Author Message
CuriCAT
PostPosted: Thu May 19, 2011 9:07 pm    Post subject: Webservice Cannot process because charset=ibm-437' Reply with quote

Voyager

Joined: 26 Sep 2006
Posts: 82

Can some one please clarify my doubt, I am creating a webservice request using HTTPRequest node. The service is responding with below error. I tried all the option to explicitly set CCSID, but didn't work. Am I doing something really wrong here..

Response from the external service :

HTTP/1.1 415 Cannot process the message because the content type 'text/xml; char
set=ibm-437' was not the expected type 'text/xml; charset=utf-8'.[x0D]
Cache-Control: private[x0D]
Server: Microsoft-IIS/7.0[x0D]
X-AspNet-Version: 2.0.50727[x0D]
X-Powered-By: ASP.NET[x0D]
Date: Fri, 20 May 2011 04:48:38 GMT[x0D]
Connection: close[x0D]
Content-Length: 0[x0D]
[x0D]

Flolw:
FileInput ---> HTTPRequest ---> MQ

No errors at broker, only external service is sending good response.

My request header:

( ['GENERICROOT' : 0x337416e0]
(0x01000000:Name ):Properties = ( ['MQPROPERTYPARSER' : 0x33741930]
(0x03000000:NameValue):MessageSet = 'CaseLOBMsgSet' (CHARACTER)
(0x03000000:NameValue):MessageType = '' (CHARACTER)
(0x03000000:NameValue):MessageFormat = '' (CHARACTER)
(0x03000000:NameValue):Encoding = 1208 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 437 (INTEGER)
(0x03000000:NameValue):Transactional = FALSE (BOOLEAN)
(0x03000000:NameValue):Persistence = FALSE (BOOLEAN)
(0x03000000:NameValue):CreationTime = GMTTIMESTAMP '2011-05-20 04:59:54.390371' (GMTTIMESTAMP)
(0x03000000:NameValue):ExpirationTime = -1 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):ReplyIdentifier = X'' (BLOB)
(0x03000000:NameValue):ReplyProtocol = '' (CHARACTER)
(0x03000000:NameValue):Topic = NULL
(0x03000000:NameValue):ContentType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceToken = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourcePassword = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceIssuedBy = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedType = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedToken = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedPassword = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedIssuedBy = '' (CHARACTER)
)
(0x01000000:Name ):HTTPRequestHeader = ( ['MQPROPERTYPARSER' : 0x33741930]
(0x03000000:NameValue):Encoding = 'UTF-8' (CHARACTER)
)
(0x01000000:Folder):XMLNSC = ( ['xmlnsc' : 0x33742180]
(0x01000400:NamespaceDecl):XmlDeclaration = (
(0x03000100:Attribute):Version = '1.0' (CHARACTER)
(0x03000100:Attribute):Encoding = 'UTF-8' (CHARACTER)
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
rekarm01
PostPosted: Thu May 19, 2011 10:13 pm    Post subject: Re: Webservice Cannot process because charset=ibm-437' Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

CuriCAT wrote:
My request header:
Code:
( ['GENERICROOT' : 0x337416e0]
  (0x01000000:Name  ):Properties        = ( ['MQPROPERTYPARSER' : 0x33741930]
    (0x03000000:NameValue):Encoding               = 1208 (INTEGER)
    (0x03000000:NameValue):CodedCharSetId         = 437 (INTEGER)
...

Properties.Encoding=546 is the correct value for Windows platforms. Properties.Encoding=1208 is wrong for any platform.

Properties.CodedCharSetId=1208 is the correct value for UTF-8.

CuriCAT wrote:
Flow:
FileInput ---> HTTPRequest ---> MQ

The InputProperties.CodedCharSetId (set in the FileInput node) needs to match the file contents.

If the InputProperties.CodedCharSetId is not 1208, then the OutputProperties.CodedCharSetId needs to be set to 1208, before the HTTPRequest node.

The HTTP header parser and XMLNSC parser will automatically set the HTTP Content-Type and XML Encoding fields, using OutputProperties.CodedCharSetId.
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 » Webservice Cannot process because charset=ibm-437'
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.