Author |
Message
|
mbtech |
Posted: Tue Jan 15, 2013 1:55 am Post subject: Diff b/n HTTP and SOAP Nodes? |
|
|
Apprentice
Joined: 18 Jul 2012 Posts: 36
|
Diff b/n SOAP and Http and advantages of one over the other? |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jan 15, 2013 2:10 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
HTTP is a transport.
SOAP is a messaging standard.
SOAP uses HTTP, or other transports (JMS notably).
It's like asking the difference between a road and an automobile. |
|
Back to top |
|
 |
rekarm01 |
Posted: Tue Jan 15, 2013 2:39 am Post subject: Re: Diff b/n HTTP and SOAP Nodes? |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
It's easy to miss, but the OP asked a different question in the subject line, about the difference between the SOAP and HTTP nodes ...
Real briefly, SOAP nodes are better for handling SOAP messages, and HTTP nodes are better for handling non-SOAP messages. HTTP nodes can handle SOAP messages, but may require additional coding. SOAP nodes can't really handle non-SOAP messages. |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Jan 15, 2013 2:46 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
In general this is correct however there have been some posts in the past few months where the SOAP Nodes could not be used due to some of the html stuff that is wrapped around the SOAP Body.
If you can, use SOAP nodes for SOAP messages. It will make your life a lot simpler in the end. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jan 15, 2013 3:19 am Post subject: Re: Diff b/n HTTP and SOAP Nodes? |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
rekarm01 wrote: |
It's easy to miss, but the OP asked a different question in the subject line, about the difference between the SOAP and HTTP nodes ... |
I agree it's easy to miss.
In afterthought, comparing HTTP and SOAP to a road and an automobile is not a very direct analogy.
One is a lorry, one is a sports car.
It's hard to carry 100 tons of freight in a sports car, but it's easy to carry more than one sports car in a lorry. |
|
Back to top |
|
 |
kimbert |
Posted: Tue Jan 15, 2013 3:28 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
It's hard to carry 100 tons of freight in a sports car, but it's easy to carry more than one sports car in a lorry. |
Could you rephrase that in terms of hamburgers, please. I find they're easier to understand. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jan 15, 2013 3:53 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
kimbert wrote: |
Quote: |
It's hard to carry 100 tons of freight in a sports car, but it's easy to carry more than one sports car in a lorry. |
Could you rephrase that in terms of hamburgers, please. I find they're easier to understand. |
Yes. If one is comparing HTTP and SOAP, one should in fact eat more chicken. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jan 15, 2013 5:41 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kimbert wrote: |
Quote: |
It's hard to carry 100 tons of freight in a sports car, but it's easy to carry more than one sports car in a lorry. |
Could you rephrase that in terms of hamburgers, please. I find they're easier to understand. |
With SOAP there's a contract controlling how many hamburgers you have & their toppings.
With HTTP I'll gladly pay you Tuesday for a hamburger today..... _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Jan 15, 2013 5:52 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
kimbert wrote: |
Quote: |
It's hard to carry 100 tons of freight in a sports car, but it's easy to carry more than one sports car in a lorry. |
Could you rephrase that in terms of hamburgers, please. I find they're easier to understand. |
Cooked, never frozen. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
kash3338 |
Posted: Tue Jan 15, 2013 7:45 am Post subject: Re: Diff b/n HTTP and SOAP Nodes? |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
rekarm01 wrote: |
SOAP nodes can't really handle non-SOAP messages. |
I don't think this statement is 100% correct. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jan 15, 2013 7:53 am Post subject: Re: Diff b/n HTTP and SOAP Nodes? |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kash3338 wrote: |
rekarm01 wrote: |
SOAP nodes can't really handle non-SOAP messages. |
I don't think this statement is 100% correct. |
Which part of it do you think is incorrect? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Jan 15, 2013 7:54 am Post subject: Re: Diff b/n HTTP and SOAP Nodes? |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
kash3338 wrote: |
rekarm01 wrote: |
SOAP nodes can't really handle non-SOAP messages. |
I don't think this statement is 100% correct. |
1. SOAPInput node validation on, the call to SOAPInput will fail based on validation not passing.
2. With validation off, a call to a SOAPInput with non-Soap payload will result in a null message tree being propagated.
Therefore, rekarm's statement is true. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
kash3338 |
Posted: Tue Jan 15, 2013 8:02 am Post subject: Re: Diff b/n HTTP and SOAP Nodes? |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
lancelotlinc wrote: |
1. SOAPInput node validation on, the call to SOAPInput will fail based on validation not passing.
2. With validation off, a call to a SOAPInput with non-Soap payload will result in a null message tree being propagated.
Therefore, rekarm's statement is true. |
I agree on the above, but that is only for SOAPInput node. Her statement was in general for all SOAP nodes, which I do not think is 100% correct. Because SOAPReply node can handle non-SOAP message as it wraps the required headers itself. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Jan 15, 2013 8:04 am Post subject: Re: Diff b/n HTTP and SOAP Nodes? |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
kash3338 wrote: |
lancelotlinc wrote: |
1. SOAPInput node validation on, the call to SOAPInput will fail based on validation not passing.
2. With validation off, a call to a SOAPInput with non-Soap payload will result in a null message tree being propagated.
Therefore, rekarm's statement is true. |
I agree on the above, but that is only for SOAPInput node. Her statement was in general for all SOAP nodes, which I do not think is 100% correct. Because SOAPReply node can handle non-SOAP message as it wraps the required headers itself. |
What good are SOAP headers with a null SOAP body? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
kash3338 |
Posted: Tue Jan 15, 2013 8:11 am Post subject: Re: Diff b/n HTTP and SOAP Nodes? |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
lancelotlinc wrote: |
What good are SOAP headers with a null SOAP body? |
Again, a NULL SOAP body comes into picture only when you consider the SOAPInput scenario. Once you get the SOAP headers extracted and do some transformations, the message is no more a SOAP message. It is just a XML, then send it to SOAPReply and it takes care of adding the required headers. The statement made by reka was generic for all SOAP nodes.
For your reference,
Quote: |
The SOAP nodes do not require the SOAPEnvelope node, because they can directly handle non-SOAP messages, but the SOAPEnvelope node is still required for the HTTP nodes. |
|
|
Back to top |
|
 |
|