My Oracle Support Banner

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

Last updated on SEPTEMBER 04, 2018

Applies to:

Web Services - Version 10.1.3.0.0 and later
Information in this document applies to any platform.

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

To view full details, sign in with your My Oracle Support account.

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


In this Document
Goal
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.