Skip to main content

SwA from generated client for JAX-WS

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
rakeshjms
Offline
Joined: 2011-11-02

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.

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

<element minOccurs="0" name="DocContent"
type="cmmodel:swaRef">
</element>

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.