Hi experts,
I need your help with this XML ---> XSD generation to use it in my integration flow :
I tested the xml above with SOAP UI and it's working fine, now I need to create an XSD structure and pass the same values in the mapping in my integration flow,
(This is code in case you want to copy it for your reply...)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com" xmlns:urn1="urn:sobject.enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<urn:update>
<urn:sObjects xsi:type="urn1:Account">
<urn1:Id>001b0000006mKKqAAM</urn1:Id>
<!--You may enter ANY elements at this point-->
<AnnualRevenue>9988</AnnualRevenue>
<Name>Farell Instruments WYNSYS</Name>
</urn:sObjects>
</urn:update>
</soapenv:Body>
</soapenv:Envelope>
I created this XSD format :
(This is code in case you want to copy it for your reply...)
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="urn:enterprise.soap.sforce.com" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="update">
<xs:complexType>
<xs:sequence>
<xs:element name="sObjects">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:string" name="Id"/>
<xs:element type="xs:string" name="Name"/>
</xs:sequence>
<xs:attribute type="xs:string" name="type"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
At this point everything seems alright, but after the deploy I get an error because the type is invalid, so I went back to SOAP UI and deleted the attribute : <urn:sObjects xsi:type="urn1:Account"> and kept only <urn:sObjects>, and I got the same error from HCI !
My requirement now is to pass an attribute with the type Account just like this : <urn:sObjects xsi:type="urn1:Account"> but using XSD, I am total lost I tried several formats but still dont get the right one.
Any idea please ?
Thanks.
BR,
Mohamed Amine.