Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Beginner needs help with SOAP with attachments

 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • 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.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • 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
  • 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: 42967
73
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic