Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need a java sample for invoking a web service which supports DIME message

 
Ajayyy Guptaaa
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am trying to access a PHP based Web service from a Java application. The web service accepts a file as attachemnt but only when he SOAP message with attachement is in DIME format.

I tried serching for any sample web service client application in Java which sends DIME message but I couldn't see any sample available.

Can any body please provide me with a SA

which takeunserstands SOAP attachement
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

Java web services and DIME don't play well together unless you are using IBM WebSphere Process attachments using JAX-RPC handlers: Extend handlers to support both MIME and DIME.

Java web services have always preferred the MIME-based SOAP with Attachments (SwA) and then skipped DIME to go straight to the SOAP Message Transmission Optimization Mechanism (MTOM).

However there is a LGPL constrained Java DIME Library (Article).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic