• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MTOM example

 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to run an example of sending the byte[] as attachment in webservice. To implement this, I used @MTOM(enabled=true). But when i use soapUI or java client to verify the attachments, i see the data coming as part of the xml rather than being a part of the attachment.

I also went through the MTOM example link and made changes in soap ui accordingly. But the response remained same. (I am using glassfish 3.1.2)

To create the java client I used



and verified the response using handler, but the received byte array was a part of the envelope rather than being a part of attachment.

If anyone has a running example then please forward me the same.

Thanks,
 
Poornima Sharma
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,

I am able to run it successfully in tomcat using Axis 2. But it is not working with glassfish.

Thanks,
reply
    Bookmark Topic Watch Topic
  • New Topic