• Post Reply Bookmark Topic Watch Topic
  • New Topic

Attachments in Axis - java:MSG or java:RPC

 
Bill Bug
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I'm having trouble sorting out the pros & cons of sending a collection of large files via SwA within AXIS.
Is there a prefered message service style for this sort of thing - java:MSG vs. java:RPC. I think I want to go with java:MSG, because there'll be less processing of the attachments, but I'm not really certain of this since I'm an AXIS/SOAP newbie.
Any code example you can offer to illustrate your answer would be a huge help.
Many thanks.
Cheers,
Bill Bug
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The amount of processign of the the attachments is the same in any regard. It doesn't matter which one you use.
Kyle
 
Bill Bug
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kyle,
Thanks for the info.
I'm a little confused, still, however.
I thought between these 2 styles either:
a) attachments are not included as a part of the SOAP Body;
a) attachments were encoded differently.
In other words, do attachments both appear in the same location relative to the rest of the HTTP payload and get encoded the same way across these two service styles.
Is the encoding something you define in the AXIS WSDD?
Does this differ when using DIME as opposed to MIME?
Again, I'm a newbie to SOAP, Axis & MIME encoding, so please correct me, if I'm way off on any of this.
I appreciate any advice, references or code examples you can offer.
Cheers,
Bill Bug
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope, there is no difference between the use of RPC or Message-oriented services when you use SOAP with attachments. In both the attachments are encoded outside of the message as MIME or DIME attachments.
I STRONGLY suggest you download the IBM Web Services Developers Kit from alphaworks and look at the extended set of Axis examples we ship with it -- we show the use of all of the combinations with Axis. Run the examples and look at the results in the Axis message viewer (the name escapes me, but it's the tool that allows you to watch messages as they fly by...)
While not directly applicable to Axis, this article and the one on SOAP with attachments it references at least show you what the messages should look like over the wire.
Kyle
[ February 07, 2003: Message edited by: Kyle Brown ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!