Example usage for javax.xml.soap SOAPPart setValue

List of usage examples for javax.xml.soap SOAPPart setValue

Introduction

In this page you can find the example usage for javax.xml.soap SOAPPart setValue.

Prototype

public void setValue(String value);

Source Link

Document

If this is a Text node then this method will set its value, otherwise it sets the value of the immediate (Text) child of this node.

Usage

From source file:com.googlecode.ddom.saaj.SOAPPartTest.java

@Validated
@Test(expected = IllegalStateException.class)
public void testSetValue() throws Exception {
    SOAPPart soapPart = factory.createMessage().getSOAPPart();
    soapPart.setValue("test");
}

From source file:com.googlecode.ddom.saaj.SOAPPartTest.java

@Validated
@Test(expected = IllegalStateException.class)
public void testSetValueNull() throws Exception {
    SOAPPart soapPart = factory.createMessage().getSOAPPart();
    soapPart.setValue(null);
}