|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQSIPUTC works but vb.net MQ library put doesn't??? |
« View previous topic :: View next topic » |
Author |
Message
|
klabran |
Posted: Thu Mar 11, 2004 1:43 pm Post subject: MQSIPUTC works but vb.net MQ library put doesn't??? |
|
|
 Master
Joined: 19 Feb 2004 Posts: 259 Location: Flagstaff AZ
|
I have some sample XML data that when using MQSIPUTC works fine for my flow but when I try to use the VB.Net MQ library (support pak ma7p) put call for the same data I get an error saying the message has an invalid document structure....
I have copied the encoding, charset, messagetype,etc... that is in the MQSIPUTC header info but can't seem to fix it.
Here's my VB.Net code....
mqMsg = New MQMessage
mqMsg.WriteString(Msg)
'mqMsg.MessageType = 1 'new added for xml message...
'mqMsg.Encoding = 273 'new added for xml message...
'mqMsg.CharacterSet = 437 'new added for xml message...
'mqMsg.ReplyToQueueManagerName = "TEST"
'mqMsg.ReplyToQueueName = "TEST"
mqMsg.Format = MQC.MQFMT_STRING
mqPutMsgOpts = New MQPutMessageOptions
Try
mqQueue.Put(mqMsg, mqPutMsgOpts)
Catch mqe As MQException
'* report the error
Console.WriteLine("MQQueue::Put ended with {0}", mqe.Message)
End Try
Here's my MQSIPUTC header info...
#
# Add the MQMD
#
MQMD
STRUCID MD
VERSION 2
REPORT 0
MSGTYPE 1
EXPIRY -1
FEEDBACK 0
ENCODING 273
CODEDCHARSETID 437
FORMAT MQSTR
PRIORITY 0
PERSISTENCE 1
BACKOUTCOUNT 0
REPLYTOQ MQREPLY
REPLYTOQMGR MYQM
USERIDENTIFIER userid
PUTAPPLTYPE B
Any Ideas?
Thanks Kevin... |
|
Back to top |
|
 |
klabran |
Posted: Thu Mar 11, 2004 1:51 pm Post subject: |
|
|
 Master
Joined: 19 Feb 2004 Posts: 259 Location: Flagstaff AZ
|
In looking at the message in my Dead Queue the message put from my VB.Net app appears to be embedding || (bar) characters?
Any ideas on why and how to fix this?
Last edited by klabran on Thu Mar 11, 2004 1:59 pm; edited 1 time in total |
|
Back to top |
|
 |
klabran |
Posted: Thu Mar 11, 2004 1:59 pm Post subject: |
|
|
 Master
Joined: 19 Feb 2004 Posts: 259 Location: Flagstaff AZ
|
removing those embedded char's doesn't seem to change the error??? |
|
Back to top |
|
 |
klabran |
Posted: Thu Mar 11, 2004 2:50 pm Post subject: |
|
|
 Master
Joined: 19 Feb 2004 Posts: 259 Location: Flagstaff AZ
|
I've even tried pasting the XML message into the sample vb.net exe supplied in the support pak and still I recieve invalid document structure?
Am I supposed to do something else to the message in vb.net since it is XML?
Kevin |
|
Back to top |
|
 |
kirani |
Posted: Thu Mar 11, 2004 11:24 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Moved to API support forum. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|