• Post Reply Bookmark Topic Watch Topic
  • New Topic

SMTP

 
Joe Pardi
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is SMTP a viable protocol to exchange SOAP messages in a request/response scenario? It appears to be at first glance of the SMTP spec (http://www.freesoft.org/CIE/RFC/821/index.htm)
I'm not an expert on SMTP so forgive my negligence ...
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can certainly exchange SOAP messages with SMTP - the turn around time would not be as fast as HTTP but the exchange could be asynchronous.
Bill
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, SMTP provides you with an asynchronous protocol that the Internet is already equipped to handle. It's actually an excellent choice for some types of application-to-application scenarios in a B2B environment (think Order placements, or status queries).
Kyle
 
Joe Pardi
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the insight. I believe I can consider SMTP as the protocol to use for my web service. The scenario does relate well to an order submission. However, I have the responsibility of sending the full order information back to the caller, but I believe this can be asynchronous.
Assuming this, does SMTP guarantee that the sender will receive my reply? Or could it get lost?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a lot of things that can go wrong with SMTP - for example the mail server you send through, or the server the user receives from, could be down, or the address could have an error. You should always log the complete message in a form that allows it to be re-sent.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!