0 Replies Latest reply on Jul 26, 2016 8:10 AM by 1273072

    Xml response wrapped in Cdata

    1273072

      Hi,

       

      I have been following the following process to expose a function as a webservice and although the response (data) is correct it is wrapping it in CDATA. I have created a schema for the reponse but it just seems to ignore it. Can anyone see what I am doing wrong with my schema?

       

      Working with PL/SQL Web Service in JDeveloper 12c

       

      My WSDL is modified to

       

      <xsd:complexType name="loadCamt052ClobReturnResponseType">

                       <xsd:sequence>

                           <xsd:element name="result">

                               <xsd:complexType>

                                   <xsd:sequence>

                                       <xsd:element ref="ns1:LoadCamt052Response"/>

                                   </xsd:sequence>

                               </xsd:complexType>

                           </xsd:element>

                       </xsd:sequence>

                   </xsd:complexType>

                   <xsd:complexType name="loadCamt052ClobReturnRequestType">

       

       

      My XSL

       

       

      <?xml version="1.0" encoding="UTF-8"?>

       

      <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

                  targetNamespace="http://project1/Project1_TopLinkPlSqlProviderService" elementFormDefault="qualified">

          <xsd:element name="LoadCamt052Response">

          <xsd:complexType>

              <xsd:sequence>

                  <xsd:element name="Id" type="xsd:integer"/>

                  <xsd:element name="DateProcessed" type="xsd:string"/>

              </xsd:sequence>

          </xsd:complexType>

          </xsd:element>

      </xsd:schema>

       

       

       

      SoapUI response

       

      ?

      1

      2

      3

      4

      5

      6

      7

      8

      9

      10

      11

       

      <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

       

         <env:Header/>

         <env:Body>

            <srvc:loadCamt052ClobReturnResponse xmlns:srvc="http://project1/Project1_TopLinkPlSqlProviderServiceService">

               <srvc:result><![CDATA[<LoadCamt052Response>

      <Id>404</Id>

      <DateProcessed>2016-07-20T14:49</DateProcessed>

      </LoadCamt052Response>]]></srvc:result>

            </srvc:loadCamt052ClobReturnResponse>

         </env:Body>

      </env:Envelope>

       

      Any help appreciated