• 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

How to access SwA from generated client for JAX-WS

 
Greenhorn
Posts: 6
Oracle Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Currently in our project we are trying to access a webservice where we need to send html documents as attachemnts in the SOAP (SwA).
We have the below definition in one of the xsd.

When i generate the client using RAD (wsimport functionality), it is generating below code for the above type.

Can any one tell how to send documents using SwA using above code? The document is stored in the DB in BLOB format.
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I would suggest the following strategy for adding attachment(s) to outgoing requests using generated client artifacts:
  • Insert something identifying one or more attachments in the MessageContext related to the client.
  • Implement a handler that examines the attachment identifiers in the MessageContext of an outgoing request, retrieves and attaches one or more attachments to the SOAP message.

  • Best wishes!
     
    reply
      Bookmark Topic Watch Topic
    • New Topic