• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

DIME, SOAP-RPC

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm looking at DIME to enscapulate the binary portion of a web service return value. The key element is I need to xfer a chunk (about 2Meg) of data and I do like the model of Soap-RPC architecturally.
Unfortunately, a webservice prototype to do this without DIME takes about 10 seconds each call. The data gets base64'ed or chunked into an array of a few hundred thousand int's.
In comparison, a 'direct' method with the client connecting via a URLConnection and DataStream performs the same work in under 2 seconds. But with out the nieceties of the SOAP-RPC

I've seen a DIME implementation in .Net which used SOAP Extensions and since I'm not clear on how Soap extensions work, I've got more questions now than ever.
  • What's the interaction of SOAP and Extensions?
  • Are there any examples of DIME for Java available?
  • Has anyone used DIME & Soap-RPC in a production environment? How did it work out?
  • Has anyone solved this sort of problem already, but in a different manner? How?


  • Thanks for the help.
    Sincerely,
    Lindsay Morsillo
     
    Author and all-around good cowpoke
    Posts: 13078
    6
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Yow - acronym overload - what is DIME?
    In SOAP or SOAP with attachments you can't get away from some form of encoding binary data so it is going to be slow.
    I would be tempted to have SOAP return information that could be used to retrieve the binary data rather than having SOAP include the data. That way you get the error reporting etc. capability of SOAP and the speed of a direct method.
    Bill
     
    author
    Posts: 3892
    5
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Axis supports both DIME and MIME encoding. Actually, MIME is probably your better bet for now -- not all SOAP engines support DIME yet. Take a look at the Axis documentation to learn about the MIME support in Axis.
    Kyle
     
    Your mind is under my control .... your will is now mine .... read this tiny ad
    Gift giving made easy with the permaculture playing cards
    https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
    reply
      Bookmark Topic Watch Topic
    • New Topic