0 Replies Latest reply on Feb 7, 2013 1:40 PM by Madhu D-Oracle

    Need to pass constructed XML to webservice using webservice proxy

    Madhu D-Oracle
      Hi,
      My requirement:

      i need to pass one payload XML from ADF screen to Webservice.XML is in string format.Webservice having one method and talking this XML as one input.but it has complex Type.

      i created webservice proxy and Webservice composite has complex type data type.

      i am following below process.
      I am parsing my XML and constructing input XML with proxy classes. is it the right procedure?

      i am getting very complexity parsing and constructing XML again to webservice method.is there any simple procedure is there for doing this.

      My XML is like:
      <FpML xmlns:ns3="http://www.fpml.org/2005/FpML-4-2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.fpml.org/2005/FpML-4-2" version="4-2" actualBuild="2" xsi:type="ns3:ContractCreated">
      <header>
      <messageId messageIdScheme="http://www.jpmorgan.com/codingscheme/messageid">AGT234089234</messageId>
      <sentBy partyIdScheme="http://www.jpmorgan.com/codingscheme/partyid">2902</sentBy>
      <creationTimestamp>2006-11-03T09:01:00</creationTimestamp>
      </header>
      <tradeReference>
      <partyTradeIdentifier>
      <partyReference href="JPM1"/>
      <tradeId tradeIdScheme="http://www.jpmorgan.com/codingscheme/tradeid">234SGS23</tradeId>
      </partyTradeIdentifier>
      <partyTradeIdentifier>
      <partyReference href="GS"/>
      <tradeId tradeIdScheme="http://www.goldmansachs.com/codingscheme/tradeid">90AT2902</tradeId>
      </partyTradeIdentifier>
      </tradeReference>
      <contract>
      <header>
      <identifier>
      <partyReference href="JPM"/>
      <versionedContractId>
      <contractId contractIdScheme="http://www.jpmorgan.com/codingscheme/contractid">CDI290204</contractId>
      <version>1</version>
      </versionedContractId>
      </identifier>
      <identifier>
      <partyReference href="partyA"/>
      <versionedContractId>
      <contractId contractIdScheme="http://www.partyA.com/codingscheme/contractid">1234B6</contractId>
      <version>1</version>
      </versionedContractId>
      </identifier>
      <contractDate>2006-11-03</contractDate>
      </header>
      <creditDefaultSwap>
      <generalTerms>
      <scheduledTerminationDate>
      <adjustableDate>
      <unadjustedDate>2010-03-20</unadjustedDate>
      </adjustableDate>
      </scheduledTerminationDate>
      <sellerPartyReference href="partyA"/>
      <buyerPartyReference href="JPM"/>
      <indexReferenceInformation>
      <indexName>Dow Jones iTraxx Europe Consumers Series 2 Version 1</indexName>
      <indexSeries>2</indexSeries>
      <indexAnnexVersion>1</indexAnnexVersion>
      <indexAnnexDate>2005-11-01</indexAnnexDate>
      <indexAnnexSource>Publisher</indexAnnexSource>
      <excludedReferenceEntity>
      <entityName>TESCO PLC</entityName>
      </excludedReferenceEntity>
      </indexReferenceInformation>
      </generalTerms>
      <feeLeg>
      <initialPayment>
      <payerPartyReference href="JPM"/>
      <receiverPartyReference href="partyA"/>
      <paymentAmount>
      <currency>EUR</currency>
      <amount>17000</amount>
      </paymentAmount>
      </initialPayment>
      </feeLeg>
      <protectionTerms>
      <calculationAmount>
      <currency>EUR</currency>
      <amount>25000000</amount>
      </calculationAmount>
      </protectionTerms>
      </creditDefaultSwap>
      <documentation>
      <masterAgreement>
      <masterAgreementType>ISDA1992</masterAgreementType>
      <masterAgreementDate>2000-01-01</masterAgreementDate>
      </masterAgreement>
      <contractualTermsSupplement>
      <type>iTraxxEuropeDealer</type>
      <publicationDate>2005-09-19</publicationDate>
      </contractualTermsSupplement>
      </documentation>
      </contract>
      <party id="GS">
      <partyId>PARTYGSBICXXX</partyId>
      <partyName>Goldman Sachs</partyName>
      </party>
      <party id="JPM">
      <partyId>PARTYJPMBICXXX</partyId>
      <partyName>JP Morgan</partyName>
      </party>
      <party id="partyA">
      <partyId>PARTYABICXXX</partyId>
      <partyName>Party A</partyName>
      </party>
      </FpML>

      I am using Jdev Version 11.1.1.5.0.

      Please help on this.

      Thanks & Regards,
      Madhu