Unanswered question

howto avoid < turns to &lt; in soap, using cdata?

I'm using CDATA in a soaprequest, eg:
<soap:Body>
<cais:SendMessage>
<!--Optional:-->
<cais:message><![CDATA[
<msg:RetrieveHumanResourceWorkAssignmentSchedulesRequest xsi:schemaLocation="http://schema.bpost.be/services/resource/workforce/WMPOpe... WMPOperationalPlanningCNSMessages_v001.1.xsd"
xmlns:humanresource2="http://schema.bpost.be/entities/humanresource/humanresour...; xmlns:workassignment="http://schema.bpost.be/entities/humanresource/workassignm...;
xmlns:msg="http://schema.bpost.be/services/resource/workforce/WMPOpe...;
xmlns:typehumanresourcecommon="http://schema.bpost.be/types/humanresource/humanresourcec...;
xmlns:typehumanresourcesearchcriteria="http://schema.bpost.be/types/humanresource/humanresources...; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">;

<typehumanresourcesearchcriteria:RetrieveHumanResourceWorkAssignmentSchedulesSearchCriteria>
<typehumanresourcesearchcriteria:HumanResourceIdList>
<humanresource2:HumanResourceId>501470</humanresource2:HumanResourceId>
</typehumanresourcesearchcriteria:HumanResourceIdList>
<typehumanresourcesearchcriteria:WorkAssignmentDateSearchCriteria>
<typehumanresourcecommon:from>2016-05-22</typehumanresourcecommon:from>
<typehumanresourcecommon:to>2016-05-28</typehumanresourcecommon:to>
</typehumanresourcesearchcriteria:WorkAssignmentDateSearchCriteria>
<typehumanresourcesearchcriteria:PublishStateSearchCriteria>
<workassignment:PublishState>PUBLISHED</workassignment:PublishState>
</typehumanresourcesearchcriteria:PublishStateSearchCriteria>
</typehumanresourcesearchcriteria:RetrieveHumanResourceWorkAssignmentSchedulesSearchCriteria>
</msg:RetrieveHumanResourceWorkAssignmentSchedulesRequest>
]]>
</cais:message>
<!--Optional:-->
<cais:commandName>AtHome</cais:commandName>
</cais:SendMessage>

</soap:Body>

When I run it, it turns into:

<soapenv:Body>
<SendMessage xmlns="http://www.ortec.com/CAIS">;
<message>&lt;![CDATA[
&lt;msg:RetrieveHumanResourceWorkAssignmentSchedulesRequest xsi:schemaLocation=&quot;http://schema.bpost.be/services/resource/workforce/WMPOpe... WMPOperationalPlanningCNSMessages_v001.1.xsd&quot;
xmlns:humanresource2=&quot;http://schema.bpost.be/entities/humanresource/humanresour...; xmlns:workassignment=&quot;http://schema.bpost.be/entities/humanresource/workassignm...;
xmlns:msg=&quot;http://schema.bpost.be/services/resource/workforce/WMPOpe...;
xmlns:typehumanresourcecommon=&quot;http://schema.bpost.be/types/humanresource/humanresourcec...;
xmlns:typehumanresourcesearchcriteria=&quot;http://schema.bpost.be/types/humanresource/humanresources...; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;

&lt;typehumanresourcesearchcriteria:RetrieveHumanResourceWorkAssignmentSchedulesSearchCriteria&gt;
&lt;typehumanresourcesearchcriteria:HumanResourceIdList&gt;
&lt;humanresource2:HumanResourceId&gt;501470&lt;/humanresource2:HumanResourceId&gt;
&lt;/typehumanresourcesearchcriteria:HumanResourceIdList&gt;
&lt;typehumanresourcesearchcriteria:WorkAssignmentDateSearchCriteria&gt;
&lt;typehumanresourcecommon:from&gt;2016-05-22&lt;/typehumanresourcecommon:from&gt;
&lt;typehumanresourcecommon:to&gt;2016-05-28&lt;/typehumanresourcecommon:to&gt;
&lt;/typehumanresourcesearchcriteria:WorkAssignmentDateSearchCriteria&gt;
&lt;typehumanresourcesearchcriteria:PublishStateSearchCriteria&gt;
&lt;workassignment:PublishState&gt;PUBLISHED&lt;/workassignment:PublishState&gt;
&lt;/typehumanresourcesearchcriteria:PublishStateSearchCriteria&gt;
&lt;/typehumanresourcesearchcriteria:RetrieveHumanResourceWorkAssignmentSchedulesSearchCriteria&gt;
&lt;/msg:RetrieveHumanResourceWorkAssignmentSchedulesRequest&gt;
]]&gt;</message>
<commandName></commandName>
</SendMessage>
</soapenv:Body>

How can I avoid that < turns into &lt;
(in SoapUI, it just works fine...)

Jos T.
Jos T.

Jos T.

Level
0
5 / 100
points

No answers