kvasko
15 years agoNew Contributor
CDATA XML input seemingly being parsed incorrectly
I am using soapUI 4.0.0 Build dist-123-2011-06-14, Build Date 2011/06/14 09:52
I created a new project leaving the defaults selected. I type in the URL of the server providing the web service. I right click on the service and create a new request and this gets generated...
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:fix="http://10.6.1.21:8080/Consol/FIXED_NETWORK">
<soapenv:Header/>
<soapenv:Body>
<fix:system_status>
<!--Optional:-->
<fix:SysStatusXML>
</fix:SysStatusXML>
</fix:system_status>
</soapenv:Body>
</soapenv:Envelope>
The problem exists when I try to pass XML CDATA to the webservice as below. It seems that SoapUI is parsing the greater than symbol incorrectly. The bold portion below is highlighted in red but nothing after it is (i would expect it to be). With the below I get a "400 Bad Request"
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:fix="http://10.6.1.21:8080/Consol/FIXED_NETWORK">
<soapenv:Header/>
<soapenv:Body>
<fix:system_status>
<fix:SysStatusXML>
<![CDATA[<SystemStatus><StartDate>20110101</StartDate><EndDate>20110625</EndDate><SiteID>36801</SiteID></SystemStatus>]]
</fix:SysStatusXML>
</fix:system_status>
</soapenv:Body>
However using > and $lt; the webservice works correctly.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:fix="http://10.6.1.21:8080/Consol/FIXED_NETWORK">
<soapenv:Header/>
<soapenv:Body>
<fix:system_status>
<fix:SysStatusXML>
<SystemStatus><StartDate>20110101</StartDate><EndDate>20110625</EndDate><SiteID>36801</SiteID></SystemStatus>
</fix:SysStatusXML>
</fix:system_status>
</soapenv:Body>
</soapenv:Envelope
</soapenv:Envelope>
Is there something I am overlooking? I am trying to base my example off of the SoapUI examples given here. http://www.soapui.org/Functional-Testin ... cdata.html
I created a new project leaving the defaults selected. I type in the URL of the server providing the web service. I right click on the service and create a new request and this gets generated...
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:fix="http://10.6.1.21:8080/Consol/FIXED_NETWORK">
<soapenv:Header/>
<soapenv:Body>
<fix:system_status>
<!--Optional:-->
<fix:SysStatusXML>
</fix:SysStatusXML>
</fix:system_status>
</soapenv:Body>
</soapenv:Envelope>
The problem exists when I try to pass XML CDATA to the webservice as below. It seems that SoapUI is parsing the greater than symbol incorrectly. The bold portion below is highlighted in red but nothing after it is (i would expect it to be). With the below I get a "400 Bad Request"
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:fix="http://10.6.1.21:8080/Consol/FIXED_NETWORK">
<soapenv:Header/>
<soapenv:Body>
<fix:system_status>
<fix:SysStatusXML>
<![CDATA[<SystemStatus><StartDate>20110101</StartDate><EndDate>20110625</EndDate><SiteID>36801</SiteID></SystemStatus>]]
</fix:SysStatusXML>
</fix:system_status>
</soapenv:Body>
However using > and $lt; the webservice works correctly.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:fix="http://10.6.1.21:8080/Consol/FIXED_NETWORK">
<soapenv:Header/>
<soapenv:Body>
<fix:system_status>
<fix:SysStatusXML>
<SystemStatus><StartDate>20110101</StartDate><EndDate>20110625</EndDate><SiteID>36801</SiteID></SystemStatus>
</fix:SysStatusXML>
</fix:system_status>
</soapenv:Body>
</soapenv:Envelope
</soapenv:Envelope>
Is there something I am overlooking? I am trying to base my example off of the SoapUI examples given here. http://www.soapui.org/Functional-Testin ... cdata.html