• 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
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Beginner needs help with SOAP with attachments

 
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I would like for a ws client to retrieve an image from a ws endpoint. I am totally confused as to what encoding style to choose as well as how to implement it.

Here is the code for the client:




Here is the code for the endpoint:



Here is the wsdl:



Any help greatly appreciated.

Thanks in advance,

Julien.
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This SAAJ introduction has a section specifically about transferring images.
 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Ulf,
I knew of the documentation you indicated and unfortunately it only deals with standalone clients... Here as you may have noticed my WS client is a servlet and it does not have access to the soap message. Only a handler would have access to the soap message and I could easily retrieve the attachment with a handler but then how do I make the attachment available to the servlet??
Any other idea?
Julien.
 
Ulf Dittmer
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Whether a client is a standalone application or a web application makes no difference for the SOAP connection.

All WS implementations let you access the SOAP message in some way or other, at what point the SAAJ API can be used. If the objects you're working with don't provide that access, then it shouldn't be too hard to add that.
[ May 31, 2006: Message edited by: Ulf Dittmer ]
 
Nothing? Or something? Like this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic