« Back to Serviceability XML Questions

SOAP Request GetServerInfo (example frm Cisco Unified Communication) Issue

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi all,

I am getting Internal server error , when using the Serviceability XML.

The SOAP request is as shown bellow .

POST /perfmonservice/services/PerfmonPort HTTP/1.1
Accept: application/soap+xml, application/dime, multipart/related, text/*
user-agent: ccmadministrator
Host:172.160.200.1:8443
Authorization: Basic Yxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Content-Type: text/xml;
SOAPAction: "http://schemas.cisco.com/ast/soap/action/#PerfmonPort#GetServerInfo"
Content-Length: 566

<?xml version="1.0" encoding="utf-8" ?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:getServerInfo soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"xmlns:ns1="http://schemas.cisco.com/ast/soap/"><Hosts xsi:type="soapenc:Array" soapenc:arrayType="xsd:string[1]"xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><item>172.160.200.1</item></Hosts></ns1:getServerInfo></soapenv:Body></soapenv:Envelope>

My Response from the server is :
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONIDSSO=0E2E7827CE9D43712C5787F20C174B40; Path=/
Set-Cookie: JSESSIONID=4293A196F685C0D86678C8B1CE304665; Path=/perfmonservice; Secure
Set-Cookie: SoapSession.id=354746298382568683
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Fri, 07 Nov 2008 11:45:26 GMT
Connection: close
274
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>org.xml.sax.SAXParseException: Element type "soapenv:Envelope" must be followed by either attribute specifications, ">" or "/>".</faultstring><detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">cucm-call</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>

This is an example from Cisco Unified Communications Manager Developers Guide.
Please let me know any system parameters I need to set or any error in my request.

Regards,
Naveen.P

Edited by: Naveen Sankar on Nov 7, 2008 7:36 AM

Hey Naveen,

Looks like you are submitting that query to the perfmon service. Try submitting it to the real-time information service.

https://<server>:8443/realtimeservice/services/RisPort

Good Luck,

Michael