Skip to Content
0
Former Member
Jun 13, 2006 at 03:22 PM

XML format Issue with Webservice

18 Views

Hi,

Currently when I generate the XML payload in XI, it is generating as below one. But the 3rd party webservice is expecting everything in on elong big string. How can I do this in XI to convert my XML data after mapping to one long string before calling the webservice.

Current XML Data

-


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

- http://test.com/SMIWebService/">

- <XMLString>

- <Contracts>

- <Control>

<createdWhen>2006-06-13T06:27:12</createdWhen>

<destinationAddress />

<documentGUID>e4a14426-9d02-4e2e-8a91-68fc81f1a672</documentGUID>

<operation staticValue="Change" />

<schemaVersion>31N</schemaVersion>

<sourceAddress>Global</sourceAddress>

<version>3.00</version>

</Control>

- <Contract>

<contractAmount>2050.00</contractAmount>

<contractBillingType staticValue="Per Contract" />

<contractCurrency staticValue="United Kingdom - Pound">Constant</contractCurrency>

<contractDataSource dynamicValue="SAP">Constant</contractDataSource>

<contractEffectiveDate>2007-01-01</contractEffectiveDate>

<contractExpirationDate>2007-12-31</contractExpirationDate>

<contractIdentifier>ff27ab1e-3187-4d37-9122-24769d246c9d</contractIdentifier>

<contractIncludeLaborIndicator>1</contractIncludeLaborIndicator>

<contractIncludeLaborIndicatorForOther>0</contractIncludeLaborIndicatorForOther>

<contractIncludeMaterialIndicator>1</contractIncludeMaterialIndicator>

<contractIncludeMaterialIndicatorForOther>0</contractIncludeMaterialIndicatorForOther>

<contractLaborDuration>0</contractLaborDuration>

<contractLastRenewalDate>2007-11-01</contractLastRenewalDate>

<contractMaterialDuration>0</contractMaterialDuration>

<contractNotificationDate>2007-11-01</contractNotificationDate>

<contractNumber>0040000189</contractNumber>

<contractReconciliationStatus staticValue="Reconciled" />

<contractStartDate>2007-01-01</contractStartDate>

<contractStatus staticValue="Active" />

- <Customer>

<customerIdentifier>fe3ccebc-6f64-4849-95d5-0b3b84c204d6</customerIdentifier>

</Customer>

- <contractBusinessUnit dynamicValue="UK">

<businessUnitDescription>United Kingdom</businessUnitDescription>

</contractBusinessUnit>

</Contract>

</Contracts>

</XMLString>

</ns1:PutXMLDocument>

3rd Part Expectation

-


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

- http://test.com/SMWebService/">

<ns1:XMLString><Contracts><Control><createdWhen>2006-06-08T07:03:55</createdWhen><destinationAddress></destinationAddress><documentGUID>A9A5107B-45A6-43A4-8218-D72C8115C9CB</documentGUID><operation staticValue="Change"/><schemaVersion>31N</schemaVersion><sourceAddress>Global</sourceAddress><version>3.00</version></Control><Contract><contractAmount>2050.00</contractAmount><contractBillingType staticValue="Per Contract"/><contractCurrency staticValue="United Kingdom - Pound"/><contractDataSource dynamicValue="SAP"/><contractEffectiveDate>2007-01-01</contractEffectiveDate><contractExpirationDate>2007-12-31</contractExpirationDate><contractIdentifier>ADBBF61C-8188-4614-B38E-C66853BD18DF</contractIdentifier><contractIncludeLaborIndicator>1</contractIncludeLaborIndicator><contractIncludeLaborIndicatorForOther>0</contractIncludeLaborIndicatorForOther><contractIncludeMaterialIndicator>1</contractIncludeMaterialIndicator><contractIncludeMaterialIndicatorForOther>0</contractIncludeMaterialIndicatorForOther><contractLaborDuration>0</contractLaborDuration><contractLastRenewalDate>2007-11-01</contractLastRenewalDate><contractMaterialDuration>0</contractMaterialDuration><contractNotificationDate>2007-11-01</contractNotificationDate><contractNumber>0049900189</contractNumber><contractReconciliationStatus staticValue="Reconciled"/><contractStartDate>2007-01-01</contractStartDate><contractStatus staticValue="Active"/><Customer><customerIdentifier>FE3CCEBC-6F64-4849-95D5-0B3B84C204D6</customerIdentifier></Customer><contractBusinessUnit dynamicValue="UK"><businessUnitDescription>United Kingdom</businessUnitDescription></contractBusinessUnit></Contract></Contracts></ns1:XMLString>

</ns1:PutXMLDocument>

Thanks in advance for the help.

Thanks

Sri