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 » IBM MQ API Support » C# API MQSeries

Post new topic  Reply to topic
 C# API MQSeries « View previous topic :: View next topic » 
Author Message
jbinnig
PostPosted: Mon Mar 12, 2007 6:53 pm    Post subject: C# API MQSeries Reply with quote

Newbie

Joined: 12 Mar 2007
Posts: 4

doing a get against a Z/OS MQ Series.
Messages are put there by mainframe.
Windows C# gets.
I am getting error on ReadString.

UNSPECIFIED_INTERNAL_ERROR

Encoding is 546.
Character Ste is 437.
Format is MQSTR.

My Get options are:
Gmo.Options = MQC.MQGMO_FAIL_IF_QUIESCING | MQC.MQGMO_WAIT;
Gmo.MatchOptions = MQC.MQMO_MATCH_MSG_ID;
Gmo.WaitInterval = 15000;
Back to top
View user's profile Send private message
jbinnig
PostPosted: Mon Mar 12, 2007 6:54 pm    Post subject: Reply with quote

Newbie

Joined: 12 Mar 2007
Posts: 4

I tried get with Convert option and without Convert Option.

Same result.
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Mon Mar 12, 2007 7:02 pm    Post subject: Re: C# API MQSeries Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

jbinnig wrote:
doing a get against a Z/OS MQ Series.
Messages are put there by mainframe.
Windows C# gets.
I am getting error on ReadString.

UNSPECIFIED_INTERNAL_ERROR

Encoding is 546.
Character Ste is 437.
Format is MQSTR.

My Get options are:
Gmo.Options = MQC.MQGMO_FAIL_IF_QUIESCING | MQC.MQGMO_WAIT;
Gmo.MatchOptions = MQC.MQMO_MATCH_MSG_ID;
Gmo.WaitInterval = 15000;


I hope you have Client Attach Facility on z/OS or you are not going to get very far.

Are you connecting to to the z/OS queue manager or is the z/OS queue manger tranmiting the messages to a Windoze Qmgr?
Back to top
View user's profile Send private message
jbinnig
PostPosted: Mon Mar 12, 2007 7:16 pm    Post subject: Reply with quote

Newbie

Joined: 12 Mar 2007
Posts: 4

Queue is on mainframe.

I am able to put my own messages on the queue and get them and read them.

I am able to check the various properties on the queue and the message.

Just the msg.ReadString() method dies.

Here is the line that raises the MQException:
Logger.Log(MqsMsg.ReadString(MqsMsg.MessageLength));

Logger is part of our framework. String is the parameter.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Mar 12, 2007 8:49 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

jbinnig wrote:
Queue is on mainframe.

I am able to put my own messages on the queue and get them and read them.

I am able to check the various properties on the queue and the message.

Just the msg.ReadString() method dies.

Here is the line that raises the MQException:
Logger.Log(MqsMsg.ReadString(MqsMsg.MessageLength));

Logger is part of our framework. String is the parameter.


Well, have you considered all the possibilities including a null value?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jbinnig
PostPosted: Tue Mar 13, 2007 4:46 am    Post subject: Reply with quote

Newbie

Joined: 12 Mar 2007
Posts: 4

The length of the message is 1285.
DataLength = 1285.
MessageLength= 1285.
TotalMessageLength = 1285.

Tring different encoding, I get back garbled characters.

byte[] msgbytes = new byte[MqsMsg.MessageLength];
MqsMsg.ReadFully(ref msgbytes);
MsgContents = enc.GetString(msgbytes);
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 » IBM MQ API Support » C# API MQSeries
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.