Need to insert a A-xml into B-XML
Below XMLto be inserted at node <RequiredAttendees> in main XML
<RequiredAttendees>
<Attendee>
<Mailbox>
<EmailAddress>[email protected]</EmailAddress>
</Mailbox>
</Attendee>
<Attendee>
<Mailbox>
<EmailAddress>[email protected]</EmailAddress>
</Mailbox>
</Attendee>
</RequiredAttendees>
Main XML:
<request-data>
<soap-rpc-request>
<username>domain.nl\webservicetest</username>
<password>#Remedy4Sahil</password>
<ntlm-authentication>true</ntlm-authentication>
<use-ssl-certificate></use-ssl-certificate>
<install-certificate></install-certificate>
<allow-unsigned-certificate>false</allow-unsigned-certificate>
<truststore-file></truststore-file>
<passphrase></passphrase>
<keystore-file></keystore-file>
<keystore-passphrase></keystore-passphrase>
<client-alias />
<http-connection-properties>
<SoapAction>http://schemas.microsoft.com/exchange/services/2006/messages/CreateItem</SoapAction>
</http-connection-properties>
<transport>http-rpc</transport>
<soap-url>https://mailman.domain.nl/EWS/Exchange.asmx</soap-url>
<character-set />
<download-attachments>false</download-attachments>
<soap-message>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<CreateItem
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
SendMeetingInvitations="SendToAllAndSaveCopy" >
<SavedItemFolderId>
<t:DistinguishedFolderId Id="calendar"/>
</SavedItemFolderId>
<Items>
<t:CalendarItem
xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
<Subject>TestPlanning Meeting</Subject>
<Body BodyType="Text">Test Plan the agenda for next week's
meeting.</Body>
<ReminderIsSet>true</ReminderIsSet>
<ReminderMinutesBeforeStart>60</ReminderMinutesBeforeStart>
<Start>2013-11-02T14:00:00</Start>
<End>2013-11-02T15:00:00</End>
<IsAllDayEvent>false</IsAllDayEvent>
<LegacyFreeBusyStatus>Busy</LegacyFreeBusyStatus>
<Location>Conference Room 721</Location>
<RequiredAttendees> <!-- Small xml comes here--!>
<Attendee>
<Mailbox>
<EmailAddress></EmailAddress>
</Mailbox>
</Attendee>
</RequiredAttendees>
</t:CalendarItem>
</Items>
</CreateItem>
</soap:Body>
</soap:Envelope>
</soap-message>
</soap-rpc-request>
</request-data>
I tried two ways:
1. store small xml in context item
> copy complete XML as (XML or String) in input and add context item in the
> xml, but at run time it is not replacing.
> it add only if the context item is a string not XML..
2 Copy the big XML and the use XSLT:
match template= //RequiredAttendees
> Add element
> small XML token. Not worked.
3 I tried to use token as escape type but it did not work.
If I use a simple xml, it works fine with it , but this XML is not identifying
template match=requiredattendees node.
4 The above XML work fine if I provide a static XML to adapter.
regards
sahil
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"