« Back to Administration XML Questions

RisPort SelectCmDevice ParseException

Combination View Flat View Tree View
Threads [ Previous | Next ]
In trying to obtain device registration status using the example in the XML Developers guide as well as the sample posted by David in this thread , I always receive a SAXParseException: The element type "soap:SelectCmDevice" must be terminated by the matching end-tag "</soap:SelectCmDevice>"

I'm posting via https://publisherip:8443/realtimeservice/services/RisPort using SOAPAction: http://schemas.cisco.com/ast/soap/action/#RisPort#SelectCmDevice

This must be something silly, as the error smells like syntax. What am I missing?

CM 6.1.1.2000-3

Request:
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.cisco.com/ast/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<soapenv:Header>
<AstHeader xsi:type="soap:AstHeader">
<SessionId xsi:type="xsd:string">ses001</SessionId>
</AstHeader>
</soapenv:Header>
<soapenv:Body>
<soap:SelectCmDevice soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<CmSelectionCriteria xsi:type="soap:CmSelectionCriteria">
<MaxReturnedDevices xsi:type="xsd:unsignedInt">200</MaxReturnedDevices>
<Class xsi:type="xsd:string">Any</Class>
<Model xsi:type="xsd:unsignedInt">255</Model>
<Status xsi:type="xsd:string">Any</Status>
</CmSelectionCriteria>
</soap:SelectCmDevice>
</soapenv:Body>
</soapenv:Envelope>

Found it. Somehow I coded the calculation of the content length incorrectly, and the length was so short the entire request wasn't making it to the publisher.

Silly.