03-12-2008 12:29 PM - edited 03-13-2019 05:04 PM
I am current trying to use the AXL serviceability API to get phone IP
address information. I looked the developers guide and used the Java example to create a
SSL Socket connection to send the SOAP message to. The message I send is as follows:
POST: 8443/axl/ HTTP/1.0
Accept: application/soap+xml, application/dime, multipart/related, text/*
Host:localhost:8443
Authorization: Basic **************
Content-type: text/xml
SOAPAction: "http://schemas.cisco.com/ast/soap/action/#RisPort#SelectCmDevice"
Content-length: 610
<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<SelectCmDevice sequence="123456">
<CmSelectionCriteria>
<Class>Phone</Class>
<Model>255</Model>
<NodeName>10.248.140.11></NodeName>
<SelectBy>Name</SelectBy>
<MaxReturnedDevices>10</MaxReturnedDevices>
<SelectItems soapenc:arrayType="SelectItems[1]">
<Item>SEP001E4A3FAAAA</Item>
</SelectItems>
</CmSelectionCriteria>
</SelectCmDevice>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The response I get back after about 30 seconds is as follows:
HTTP/1.1 400 Invalid URI
Content-Length: 0
Date: Wed, 12 Mar 2008 19:28:43 GMT
Server: Apache-Coyote/1.1
Connection: close
Could someone point me in the right direction as to what is going wrong?
Thanks
Mitch
03-12-2008 05:35 PM
looks like the port number (8443) is a part of your URI. that doesn't look right ...
03-12-2008 06:50 PM
well, getting closer. Of course you were correct. After changing it, I now get an http 500 error after a lenghty timeout.
POST /axl/ HTTP/1.0
Accept: application/soap+xml, application/dime, multipart/related, text/*
Host:localhost:8443
Authorization: Basic ***********
Content-type: text/xml
SOAPAction: "http://schemas.cisco.com/ast/soap/action/#RisPort#SelectCmDevice"
Content-length: 610
HTTP/1.1 500 Internal Server Error
Content-Type: text/html;charset=utf-8
Content-Length: 4566
Date: Thu, 13 Mar 2008 02:15:53 GMT
Server: Apache-Coyote/1.1
Connection: close
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: