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 » Read First for All New to IBM MQ, Integration, Messaging, WebSphere - Only Moderators Post Here » SOAP

This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.
 SOAP « View previous topic :: View next topic » 
Author Message
masteringmq
PostPosted: Fri Mar 20, 2009 10:59 pm    Post subject: SOAP Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Fri Mar 20, 2009 11:25 pm    Post subject: Re: SOAP Reply with quote

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
View user's profile Send private message
masteringmq
PostPosted: Fri Mar 20, 2009 11:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Sat Mar 21, 2009 12:34 am    Post subject: Reply with quote

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
View user's profile Send private message
masteringmq
PostPosted: Sat Mar 21, 2009 2:00 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Sat Mar 21, 2009 4:02 am    Post subject: Reply with quote

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
View user's profile Send private message
WMBDEV1
PostPosted: Sat Mar 21, 2009 7:27 am    Post subject: Re: SOAP Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Sat Mar 21, 2009 7:41 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9392
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
View user's profile Send private message
masteringmq
PostPosted: Sat Mar 21, 2009 6:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Sat Mar 21, 2009 6:41 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9392
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
View user's profile Send private message
Vitor
PostPosted: Sun Mar 22, 2009 7:54 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Sun Mar 22, 2009 8:32 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9392
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
View user's profile Send private message
Vitor
PostPosted: Sun Mar 22, 2009 11:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies. Page 1 of 1

MQSeries.net Forum Index » Read First for All New to IBM MQ, Integration, Messaging, WebSphere - Only Moderators Post Here » SOAP
Jump to:  



You can post new topics in this forum
You can 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.