Hi..
I have created a soap request using the soap tools (soap create envelop and soap add rpc parameters), and have structure like this in my hSOAPEnvelope1 variable:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:cus="http://siebel.com/CustomUI">
<soapenv:Body>
<cus:RunServiceTelefon>
<cus:CustomerId></cus:CustomerId>
<cus:CellPhone>+479201669</cus:CellPhone>
</cus:RunServiceTelefon>
</soapenv:Body>
</soapenv:Envelope>
Regardless of what my xml look like as for now, I need it to look like this before sending the request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cus="http://siebel.com/CustomUI" xmlns:ap01="http://www.siebel.com/xml/AP01_ServiceTelefon_Input_External">
<soapenv:Header/>
<soapenv:Body>
<cus:RunServiceTelefon>
<SiebelMessage>
<ap01:customer>
<ap01:customerid></ap01:customerid>
<ap01:phone>+4795027908</ap01:phone>
</ap01:customer>
</SiebelMessage>
</cus:RunServiceTelefon>
</soapenv:Body>
</soapenv:Envelope>
In short, I need to add two levels her by wrapping <SiebelMessage> and <ap01:customer> around my existing tags.
I'm not that clever with xml (that's an understatement). Does anyone have the experience to guide meg through. I was thinking of the "XML Transform To Document" tool, but didn't get it right using 3 xsd files. I have also tried to create the start xml by using the xml tools (XML create document, XML get node info, XML select single node set value), but have trouble with setting an xml node value.
Can anyone please point me to the easiest way here for fixing the structure?
I appreciate any comments.
Regards Mari