on 04-24-2012 7:22 PM
Hello,
When I attempt to submit my request within a iOS app to the SAP web service to delete a task I get a soap exception. The fault string I am receiving is "CX_ST_MATCH_ELEMENT:XSLT exception.System expected the end of the element 'IT_CATS_IN'"
Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:rfc:functions">
<soapenv:Header/>
<soapenv:Body>
<urn:Z_BAPI_CATIMESHEETMGR_DELETR>
<IT_CATS_IN>(
"<ZCB_TR_WS_INTERFACE_S>
<COUNTER>000000000114</COUNTER>
<WORKDATE>2012-03-14</WORKDATE><WBS_ELEMENT>00000000000000000082TTO</WBS_ELEMENT>
<CATSHOURS>0.25</CATSHOURS>
<LONGTEXT>Restart</LONGTEXT>
<ZREISEZEIT>0</ZREISEZEIT>
<ACTTYPE>ZUNF</ACTTYPE>
<STATUS>20</STATUS>
<PRART>TN</PRART>
<ZZSTANDORT>HO</ZZSTANDORT>
<ZZALIASPNR>00000000</ZZALIASPNR>
<ZZALIASDAT>00000000</ZZALIASDAT>
<ZZBEGINN>07:45</ZZBEGINN>
<ZZENDE>08:00</ZZENDE>
<ZZFAKTPOSID>00017-007</ZZFAKTPOSID>
<ZZTASKLG>COMbridge AG->MA Verwaltungsaufgaben->Hard-/Softwareprobleme</ZZTASKLG></ZCB_TR_WS_INTERFACE_S>"
)</IT_CATS_IN>
<IV_EDAT>2012-03-14</IV_EDAT>
<IV_SDAT>2012-03-14</IV_SDAT>
<I_TESTRUN></I_TESTRUN>
</urn:Z_BAPI_CATIMESHEETMGR_DELETR></soapenv:Body></soapenv:Envelope>
Does someone know how to solve this problem?
Thanks, Vanessa
I agree with Inaki. If your intention is not XML Parser to interpret the quoted string inside XML use CDATA structure and in your case as follows...
<![CDATA[
<ZCB_TR_WS_INTERFACE_S>
<COUNTER>000000000114</COUNTER>
<WORKDATE>2012-03-14</WORKDATE><WBS_ELEMENT>00000000000000000082TTO</WBS_ELEMENT>
<CATSHOURS>0.25</CATSHOURS>
<LONGTEXT>Restart</LONGTEXT>
<ZREISEZEIT>0</ZREISEZEIT>
<ACTTYPE>ZUNF</ACTTYPE>
<STATUS>20</STATUS>
<PRART>TN</PRART>
<ZZSTANDORT>HO</ZZSTANDORT>
<ZZALIASPNR>00000000</ZZALIASPNR>
<ZZALIASDAT>00000000</ZZALIASDAT>
<ZZBEGINN>07:45</ZZBEGINN>
<ZZENDE>08:00</ZZENDE>
<ZZFAKTPOSID>00017-007</ZZFAKTPOSID>
<ZZTASKLG>COMbridge AG->MA Verwaltungsaufgaben->Hard-/Softwareprobleme</ZZTASKLG></ZCB_TR_WS_INTERFACE_S>
]]>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vanessa,
You are using an XSL or ABAP-XSL mapping, if you share your xsl mapping we could help you better.
I guess that the problem could be in the field <IT_CATS_IN> because you are using the symbols (" and XML tag inside:
("<ZCB_TR_WS_INTERFACE_S>
If you want to have between XML tags some XML tags is better to use a CDATA structure http://en.wikipedia.org/wiki/CDATA in order the runtime enviroment doesn't interpret the inside tags like XML tags.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.