on 04-02-2007 6:22 PM
Hi
I am encountering a very basic problem while trying to create this string variable in java - I get a syntax error - <b>"String literal is not properly closed by a double quote"</b>
pointing to my very first line
*******************************************************************************************
String soapXML = "<?xml version="\1.0\" encoding="\UTF-8\"?>
<ns0:LogToCentralMonitoring xmlns:ns0="\http://XXXXX.EI.CentralMonitoring\">
<ns0:MonitoringData>
<MON_EISLDCTLID>IN130.10</MON_EISLDCTLID>
<MON_ProgramID>IN130.10</MON_ProgramID>
<MON_ProcessID/>
<MON_ClientAlert>N</MON_ClientAlert>
<MON_MsgStartTimeStamp>03/30/2007 10:00:00</MON_MsgStartTimeStamp>
<MON_MsgEndTimeStamp>03/30/2007 10:00:00</MON_MsgEndTimeStamp>
<MON_MsgStatus>COMPLETED</MON_MsgStatus>
<MON_MsgStatusDescription/>
<MessageAttribute>
<Name/>
<Value/>
</MessageAttribute>
</ns0:MonitoringData>
</ns0:LogToCentralMonitoring>";
************************************************************************************
This is a call to a webservice method and got this xml string from the message mapping -test tab - source view - and wanted to use that to build the xml string
What am I missing syntactically here ?
Hi,
Here is the mistake:
String soapXML = "<?xml version=<b>\</b>"1.0\" encoding=<b>\</b>"UTF-8\"?>
<ns0:LogToCentralMonitoring xmlns:ns0=<b>\</b>"http://XXXXX.EI.CentralMonitoring\">
<ns0:MonitoringData>
<MON_EISLDCTLID>IN130.10</MON_EISLDCTLID>
<MON_ProgramID>IN130.10</MON_ProgramID>
<MON_ProcessID/>
<MON_ClientAlert>N</MON_ClientAlert>
<MON_MsgStartTimeStamp>03/30/2007 10:00:00</MON_MsgStartTimeStamp>
<MON_MsgEndTimeStamp>03/30/2007 10:00:00</MON_MsgEndTimeStamp>
<MON_MsgStatus>COMPLETED</MON_MsgStatus>
<MON_MsgStatusDescription/>
<MessageAttribute>
<Name/>
<Value/>
</MessageAttribute>
</ns0:MonitoringData>
</ns0:LogToCentralMonitoring>";
Regards,
Wojciech
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.