Hi all,
CUCM 9.1
I am using SoapUI to validate the requests I send but I have a problem even with SoapUI
I send a request which I think is valid but the cucm answers with the following
HTTP/1.1 500 Internal Server Error
Set-Cookie: JSESSIONIDSSO=BB826706C518D24E79266716613307AC; Path=/; Secure; HttpOnly
Set-Cookie: JSESSIONID=F21D4361163FED25FB73E05DF5D20045; Path=/realtimeservice2/; Secure; HttpOnly
Set-Cookie: SoapSession.id=27222EF4C8E2DB5FA21413533658931
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 17 Oct 2014 08:14:17 GMT
Connection: close
Server:
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>unknown</faultstring><detail /></soapenv:Fault></soapenv:Body></soapenv:Envelope>
This is sent to the following URL
https://<cucm server>:8443/realtimeservice2/services/RISService70
I am not sure what is wrong with the request. Can somebody help me ?
Here it is
POST https://<cucm server>:8443/realtimeservice2/services/RISService70 HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "selectCmDevice"
Content-Length: 841
Host: <cucm server ip address>:8443
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Authorization: Basic Y2NtYWRtaW5pc3RyYXRvcjpVQzRRdWVudHIxJA==
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.cisco.com/ast/soap">
<soapenv:Header/>
<soapenv:Body>
<soap:selectCmDevice>
<soap:StateInfo></soap:StateInfo>
<soap:CmSelectionCriteria>
<soap:MaxReturnedDevices>10</soap:MaxReturnedDevices>
<soap:DeviceClass>Phone</soap:DeviceClass>
<soap:Model>255</soap:Model>
<soap:Status>Registered</soap:Status>
<soap:NodeName></soap:NodeName>
<soap:SelectBy>Name</soap:SelectBy>
<soap:SelectItems>
</soap:SelectItems>
<soap:Protocol></soap:Protocol>
<soap:DownloadStatus></soap:DownloadStatus>
</soap:CmSelectionCriteria>
</soap:selectCmDevice>
</soapenv:Body>
</soapenv:Envelope>
Thanks!
Christos
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I was too fast to post this time
Looks like I was missing some mandatory elements
Here is a working XML
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.cisco.com/ast/soap">
<soapenv:Header/>
<soapenv:Body>
<soap:selectCmDevice>
<soap:StateInfo></soap:StateInfo>
<soap:CmSelectionCriteria>
<soap:MaxReturnedDevices>10</soap:MaxReturnedDevices>
<soap:DeviceClass>Phone</soap:DeviceClass>
<soap:Model>255</soap:Model>
<soap:Status>Registered</soap:Status>
<soap:NodeName></soap:NodeName>
<soap:SelectBy>Name</soap:SelectBy>
<soap:SelectItems>
<soap:item>
<soap:Item></soap:Item>
</soap:item>
</soap:SelectItems>
<soap:Protocol>Any</soap:Protocol>
<soap:DownloadStatus>Any</soap:DownloadStatus>
</soap:CmSelectionCriteria>
</soap:selectCmDevice>
</soapenv:Body>
</soapenv:Envelope>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.