How To Pass a XML Document as an Argument to a Web Service (Doc ID 467825.1)

Last updated on MARCH 23, 2017

Applies to:

Web Services - Version: 10.1.3.0.0 and later   [Release: and later ]
Information in this document applies to any platform.
***Checked for relevance on 20-Apr-2010***

Goal

This sample code explains how to use the XmlDocument as an argument for the Web Services.

In this example we will send the following xml document as a argument to the Web Services:

<?xml version="1.0" encoding="UTF-8" ?>
<addresses>
  <address category="home">
    <name>Ravi</name>
    <street>Jaya Nagar</street>
    <city>Bangalore</city>
    <state>KA</state>
    <zip>560078</zip>
  </address>
  <address category="office">
    <name>Oracle Software</name>
    <street>Bannerghata Road</street>
    <city>Bangalore</city>
    <state>KA</state>
    <zip>560032</zip>
  </address>
</addresses>

 

This Web Services returns the parsed contents of the above XML file as a String variable.


Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms