POX Specific FeaturesJiBX/WS supports POX (Plain Old XML) services. The input and output messages consist solely of the XML payload without any additional data such as SOAP envelope. POX serverTo create a POX server, specify the protocol in the service definition to be POX. SOAP specific features of the service definition, such as SOAP header handlers and SOAP fault handlers, are not supported. All other features of the service definition are supported. Exception handlingBy default, a runtime exception of type UnhandledWsException will be thrown whenever the service class throws an exception, or an error occurs in the handling of the POX message (for example invalid message format). This behavior can be overridden by implementing a custom service exception handler. POX clientTo create a POX client, either use the PoxClient class directly, or via the PoxProtocol implementation of the Protocol.createClient() method. ExamplesThe POX Hello example demonstrates a basic POX client and server, using the The Seismic example demonstrates a more complete application that uses the factory method to select either a SOAP or POX client. |