Author |
Message
|
masteringmq |
Posted: Fri Mar 20, 2009 10:59 pm Post subject: SOAP |
|
|
Master
Joined: 20 Oct 2008 Posts: 200
|
SOAP stands for Simple Object Access Protocol and it's a XML based protocol used to exchange information between applications. It is said to be language independent and platform independent. Usually HTTP transport is used to exchange SOAP messages between applications. Since HTTP only supports synchonous messaging therefore it is considered to be a limitation. To overcome this limitation, WMQ can be used as the transport layer because it supports asynchronous messaging. This ensures that the applications are loosely coupled. Now if I were to preview a SOAP message using the q tool will I be able to see the MQMD header?
Last edited by masteringmq on Sat Mar 21, 2009 2:06 am; edited 1 time in total |
|
Back to top |
|
 |
Vitor |
Posted: Fri Mar 20, 2009 11:25 pm Post subject: Re: SOAP |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
masteringmq wrote: |
Now if I were to preview a SOAP message will I be able to see the MQMD header? |
Have you tried it?
Given that WMQ is blind to the content of any message sent over it, what could possibly lead you to even consider this question?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
masteringmq |
Posted: Fri Mar 20, 2009 11:35 pm Post subject: |
|
|
Master
Joined: 20 Oct 2008 Posts: 200
|
I was reading the IBM redbook and came up with this question. Also in an IBM website it is mentioned that there is an API which can be used to include MQMD in a SOAP message. So could it be possible that .net services does not support SOAP messages with MQMD header. However I do know that a SOAP message consist of zero or more SOAP header and one SOAP body wrapped in a SOAP envelope. |
|
Back to top |
|
 |
Vitor |
Posted: Sat Mar 21, 2009 12:34 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
masteringmq wrote: |
I was reading the IBM redbook |
The IBM redbook? There's only one?
masteringmq wrote: |
an IBM website |
An IBM website? There's more than one? Post the link.
masteringmq wrote: |
So could it be possible that .net services does not support SOAP messages with MQMD header. |
Where did .NET enter this post? When did you mention that before? Are you not in fact talking about a SOAP message being transported over WMQ but a WMQ message with SOAP content being processed by a .NET application, and how the content appears within the application?? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
masteringmq |
Posted: Sat Mar 21, 2009 2:00 am Post subject: |
|
|
Master
Joined: 20 Oct 2008 Posts: 200
|
Redbook - WebSphere MQ Solutions in a Microsoft .NET Environment
Im only trying to understand the message structure/format. Does a SOAP message include the MQMD header?. How does a SOAP message differ from the MQ message? From what I understand the content of the SOAP message is represented in XML. When MQMD header is added into the SOAP message then I would be able to preview information about the SOAP message such as the putdate, puttime and so on. So this would mean that the MQ message is in SOAP format. Or in other words the SOAP message is encapsulated in a MQ message. So if I were to preview MQ message in SOAP format using Rfhutilc then I would see every details represented in XML. |
|
Back to top |
|
 |
mqjeff |
Posted: Sat Mar 21, 2009 4:02 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Please don't use this forum as a training resource.
What happens when you try it? What problem are you trying to solve? |
|
Back to top |
|
 |
WMBDEV1 |
Posted: Sat Mar 21, 2009 7:27 am Post subject: Re: SOAP |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
masteringmq wrote: |
SOAP stands for Simple Object Access Protocol |
As of SOAP 1.2, it doesnt stand for anything any more! |
|
Back to top |
|
 |
bruce2359 |
Posted: Sat Mar 21, 2009 7:41 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
I did a quick search on Mr. Google for soap+mqmd and found 1300+ hits. The first few I looked at seem to answer your questions. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
masteringmq |
Posted: Sat Mar 21, 2009 6:34 pm Post subject: |
|
|
Master
Joined: 20 Oct 2008 Posts: 200
|
A generic code to send a soap message to a well defined queue:
MQQueueManager mananger= new MQQueueManager(QueueManagerName...);
MQQueue soapqueue = mananger.AccessQueue(QueueName..., 0x10, QueueManagerName..., null, null);
MQMessage soapmessage = new MQMessage();
soapmessage.ReplyToQueueName = ResponseQueueName...;
soapmessage.Persistence = 1;
soapmessage.Priority = 0;
soapmessage.CharacterSet= 1208;
soapmessage.Encoding= 546;
byte[] serialisedContext= Encoding.UTF8.GetBytes(SoapMessage...);
soapmessage.Write(serialisedContext, 0, serialisedContext.GetLength(0));
soapqueue.Put(soapmessage, new MQPutMessageOptions());
soapqueue.Close();
So the assumption is the MQ message in SOAP format includes the MQMD header. This is because a WebSphere MQ message usually contains a message descriptor (messageid, correlationid...), one or more message headers (MQRFH2), and a message payload (data). The message payload (data) is in SOAP format.
Last edited by masteringmq on Sat Mar 21, 2009 6:47 pm; edited 3 times in total |
|
Back to top |
|
 |
bruce2359 |
Posted: Sat Mar 21, 2009 6:41 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
So the assumption is the MQ message in SOAP format includes the MQMD header. |
No, it's more basic than that, namely: every WMQ message contains an MQMD. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
Vitor |
Posted: Sun Mar 22, 2009 7:54 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
masteringmq wrote: |
So the assumption is the MQ message in SOAP format includes the MQMD header. This is because a WebSphere MQ message usually contains a message descriptor (messageid, correlationid...), one or more message headers (MQRFH2), and a message payload (data). The message payload (data) is in SOAP format. |
This statement, made by someone who purports to spend a lot of time reading redbooks and documentation, demonstrates 2 possibly connected points:
1) Your total lack of understanding of WMQ despite your reading. To spend any time around WMQ and then say that WMQ messages usually contain a message descriptor betrays a basic lack of understanding that beggers belief
2) Your ability to make obvious statements and not actually post questions. I'm undecided if you do this just to annoy or if you really are as dim as you sound.
Charitably I'll assume you seriously need training and are attempting to obtain it free from us. This will now stop. One way or another. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Sun Mar 22, 2009 8:32 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
I, too, find it somewhat annoying to be asked technically advanced questions by someone who doesn't demonstrate mastery of the basics. But, I'll be even more charitable.
Please download and read one of the most thorough and understandable Redbooks from IBM: WebSphere MQ V6 Fundamentals.
Go here http://www.redbooks.ibm.com/abstracts/sg247128.html _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
Vitor |
Posted: Sun Mar 22, 2009 11:57 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Moved to this forum as an example of how not to post. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|