Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to access SwA from generated client for JAX-WS

 
rakesh parida
Greenhorn
Posts: 6
Java Oracle Spring
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • 0
  • Mark post as helpful
  • send pies
  • 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!
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic