aspose file tools*
The moose likes Web Services and the fly likes How to access SwA from generated client for JAX-WS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to access SwA from generated client for JAX-WS" Watch "How to access SwA from generated client for JAX-WS" New topic
Author

How to access SwA from generated client for JAX-WS

rakesh parida
Greenhorn

Joined: May 13, 2010
Posts: 6

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

Joined: Oct 04, 2006
Posts: 2198
    
    1
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!


    My free books and tutorials: http://www.slideshare.net/krizsan
     
    It is sorta covered in the JavaRanch Style Guide.
     
    subject: How to access SwA from generated client for JAX-WS