Creating a Java web service that generates and parses XML
You can create Java applications that parse and generate XML themselves. These applications are consistent with XML-aware applications written in other programming languages, but they benefit from using standard Java technologies for processing the XML.
Procedure
-
Create an XML-ONLY WEBSERVICE resource.
For more information, see Creating an XML-aware service requester application or Creating an XML-aware service provider application.
-
Write a
Java™
web
service that can parse and generate XML for the body of the SOAP message.
You can use various tools, such as the Java 6 Java Architecture for XML Binding (JAXB) library, to help you create a Java web service with these capabilities.
- Optional: If you are using a provider pipeline and you want to add the capability for a SOAP Fault message to be returned to the requester, use the JCICS SoapFault class to issue the EXEC CICS SOAPFAULT CREATE command.
- Optional: If you are using a requester pipeline, use the JCICS Service class to issue the EXEC CICS INVOKE SERVICE command.