Skip to main content

SwA from generated client for JAX-WS

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2011-11-02


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.

<xsd:simpleType name="swaRef">
<xsd:restriction base="xsd:anyURI"/>

<element minOccurs="0" name="DocContent"

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

@XmlElement(name = "DocContent")
protected String docContent;
* Gets the value of the docContent property.
* @return
* possible object is
* {@link String }
public String getDocContent() {
return docContent;

* Sets the value of the docContent property.
* @param value
* allowed object is
* {@link String }
public void setDocContent(String value) {
this.docContent = value;

Can any one tell how to send documents using SwA using above code? The document is stored in the DB in BLOB format.