Search in sources :

Example 1 with SerializationFeature

use of com.sun.xml.ws.developer.SerializationFeature in project metro-jax-ws by eclipse-ee4j.

the class EchoTest method testSerializationFeature.

public void testSerializationFeature() throws Exception {
    Echo echoPort = new EchoService().getEchoPort(new SerializationFeature());
    echoPort.echoString("utf-8");
    testCharset(echoPort, "utf-8");
}
Also used : SerializationFeature(com.sun.xml.ws.developer.SerializationFeature)

Example 2 with SerializationFeature

use of com.sun.xml.ws.developer.SerializationFeature in project metro-jax-ws by eclipse-ee4j.

the class EchoTest method testSerializationFeatureUtf8.

public void testSerializationFeatureUtf8() throws Exception {
    String encoding = "UTF-8";
    Echo echoPort = new EchoService().getEchoPort(new SerializationFeature(encoding));
    echoPort.echoString(encoding);
    testCharset(echoPort, encoding);
}
Also used : SerializationFeature(com.sun.xml.ws.developer.SerializationFeature)

Example 3 with SerializationFeature

use of com.sun.xml.ws.developer.SerializationFeature in project metro-jax-ws by eclipse-ee4j.

the class EchoTest method testSerializationFeatureUtf16.

public void testSerializationFeatureUtf16() throws Exception {
    String encoding = "UTF-16";
    Echo echoPort = new EchoService().getEchoPort(new SerializationFeature(encoding));
    echoPort.echoString(encoding);
    testCharset(echoPort, encoding);
}
Also used : SerializationFeature(com.sun.xml.ws.developer.SerializationFeature)

Example 4 with SerializationFeature

use of com.sun.xml.ws.developer.SerializationFeature in project metro-jax-ws by eclipse-ee4j.

the class EchoTest method testSerializationFeature.

public void testSerializationFeature() throws Exception {
    Echo echoPort = new EchoService().getEchoPort(new SerializationFeature());
    echoPort.echoString("utf-8");
    // Server sends responses encoded with UTF-16
    testCharset(echoPort, "utf-16");
}
Also used : SerializationFeature(com.sun.xml.ws.developer.SerializationFeature)

Example 5 with SerializationFeature

use of com.sun.xml.ws.developer.SerializationFeature in project metro-jax-ws by eclipse-ee4j.

the class EchoTest method testSerializationFeatureUtf8.

public void testSerializationFeatureUtf8() throws Exception {
    String encoding = "UTF-8";
    Echo echoPort = new EchoService().getEchoPort(new SerializationFeature(encoding));
    echoPort.echoString(encoding);
    // Server sends responses encoded with UTF-16
    testCharset(echoPort, "utf-16");
}
Also used : SerializationFeature(com.sun.xml.ws.developer.SerializationFeature)

Aggregations

SerializationFeature (com.sun.xml.ws.developer.SerializationFeature)13 WSBinding (com.sun.xml.ws.api.WSBinding)1 WSFeatureList (com.sun.xml.ws.api.WSFeatureList)1 Binding (jakarta.xml.ws.Binding)1 BindingProvider (jakarta.xml.ws.BindingProvider)1 HTTPBinding (jakarta.xml.ws.http.HTTPBinding)1