CUC Forums

« Back to CUMI Questions

CUMI Message without attachment Receiving 400

Combination View Flat View Tree View
Threads [ Previous | Next ]
Posted XML message here and the headers that are set . Not able to find logs with RTMT.  Looked Tomcat logs under System. Nothing in there except access log says there is incoming request. Enabled macro traces for VMREST. Please point where I can find logs.
 
Also let me know what is wrong with the following . Receiving 400.
 
Regards,
Murali
---------------------


 
https://10.10.210.4/vmrest/messages
 
 
httpCon.setRequestMethod("POST"); 
                 
httpCon.setRequestProperty("Content-Type", "multipart/form-data;
boundary="+ boundary);
 
httpCon.setRequestProperty("Accept","application/xml");
httpCon.setRequestProperty("User-Agent","GAT");
httpCon.setRequestProperty("Connection","keep-alive");
httpCon.setRequestProperty
("Authorization", "Basic
" + encoding);
httpCon.setRequestProperty("Keep-Alive","true");
                 
--1351c6f18a3
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Messages><Message> <Subject>GAT Message</Subject><ArrivalTime>0</ArrivalTime><F
romSub>false</FromSub><From><Type>SUBSCRIBER</Type><SmtpAddress>vpim1@cuc8</Smtp
Address></From></Message></Messages>
--1351c6f18a3
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Recipients total="1"><Recipient><Type>TO</Type><Address><Type>SUBSCRIBER</Type>
<SmtpAddress>vpim2@cuc8</SmtpAddress></Address></Recipient></Recipients>
--1351c6f18a3--

Hi Muralidhar,

A 400 error usually has content along with the HTTP header that gives more detail on the error. If that doesn't provide enough information, I would suggest setting the VMREST micro traces to debug, reproduce the error and take a look at the connection tomcat diagnostic logs.

Thanks,
Adrienne

The VMREST micro traces are written to the Tomcat diagnostic files. These files can be identified by their name, which starts with diag_Tomcat. If root access is available and you would rather not use RTMT to retrieve the logs, they can be found in /var/opt/cisco/connection/log.