Setting the Character Encoding For the Response SOAP Message

Invoking Web Services 6-19

6.8 Setting the Character Encoding For the Response SOAP Message

Use the weblogic.wsee.jaxrpc.WLStub.CHARACTER_SET_ENCODING WLStub property to set the character encoding of the response outbound SOAP message. You can set it to the following two values: ■ UTF-8 ■ UTF-16 The following code snippet from a client application shows how to set the character encoding to UTF-16: Simple port = service.getSimpleSoapPort; Stub port._setPropertyweblogic.wsee.jaxrpc.WLStub.CHARACTER_SET_ENCODING, UTF-16; port.invokeMethod; See weblogic.wsee.jaxrpc.WLStub in the Oracle Fusion Middleware Oracle WebLogic Server API Reference for additional WLStub properties you can set. weblogic.wsee.security.bst.serverEncryptCert Specifies the certificate that the client application uses to encrypt the request SOAP message sent to WebLogic Server. By default, the client application uses the public certificate published in the Web services WSDL; if this is not possible, then use this stub property to specify a different one. This stub property applies only to client applications that run inside of a WebLogic Server container, and not to stand-alone client applications. The value of the property is an object of data type java.security.cert.X509Certificate . weblogic.wsee.marshal.forceIncludeXsiType Specifies that the SOAP messages for a Web service operation invoke should include the XML Schema data type of each parameter. By default, the SOAP messages do not include the data type of each parameter. If you set this property to True, the elements in the SOAP messages that describe operation parameters will include an xsi:type attribute to specify the data type of the parameter, as shown in the following example: soapenv:Envelope ... maxResults xsi:type=xs:int10maxResults ... By default or if you set this property to False, the parameter element would look like the following example: soapenv:Envelope ... maxResults10maxResults ... Valid values for this property are True and False; default value is False. Table 6–5 Cont. Additional Stub Properties Stub Property Description 6-20 Getting Started With JAX-RPC Web Services for Oracle WebLogic Server 7 Administering Web Services 7-1 7 Administering Web Services The following sections describe how to administer WebLogic Web services: ■ Section 7.1, Overview of WebLogic Web Services Administration Tasks