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: and later   [Release: and later ]
Information in this document applies to any platform.
***Checked for relevance on 20-Apr-2010***


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" ?>
  <address category="home">
    <street>Jaya Nagar</street>
  <address category="office">
    <name>Oracle Software</name>
    <street>Bannerghata Road</street>


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


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