<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Problems using SOAP with CCM</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=3379408" />
  <subtitle>Problems using SOAP with CCM</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=3379408</id>
  <updated>2013-05-18T20:05:16Z</updated>
  <dc:date>2013-05-18T20:05:16Z</dc:date>
  <entry>
    <title>RE: Problems using SOAP with CCM</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11977309" />
    <author>
      <name>Geoffrey Carman</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11977309</id>
    <updated>2013-02-15T17:28:07Z</updated>
    <published>2013-02-15T17:28:07Z</published>
    <summary type="html">[quote=Victor Manuel Garcia Ternero]Hello, I am trying to use SOAP to modify call forward all in a DN. I am not sure if the scheme I have is the correct:

&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;

&lt;SOAP-ENV:Body&gt;
&lt;axl:getPhone xmlns:axl="http://www.cisco.com/AXL/1.0" xsi:schemaLocation="http://www.cisco.com/AXL/1.0 http://ccmserver/schema/axlsoap.xsd" sequence="1234"&gt;
&lt;phoneName&gt;SEP000000000001&lt;/phoneName&gt;
&lt;/axl:getPhone&gt;
&lt;/SOAP-ENV:Body&gt;
&lt;/SOAP-ENV:Envelope&gt;

I have saved it as .asp, .soap, .xml, .html... and it doesn't work, we receive an error in the first line. What is it wrong?

[/quote]
 
First, get SOAPUi from www.soapui.com (Free version is fine).  Then open the WSDL in it, find the getPhone API, set the Auth username and password, set the endpoint (URL) and test with that.
 
This is the getPhone API.  You want to updatePhone when you are ready and change the element you care about. </summary>
    <dc:creator>Geoffrey Carman</dc:creator>
    <dc:date>2013-02-15T17:28:07Z</dc:date>
  </entry>
  <entry>
    <title>RE: Problems using SOAP with CCM</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=3998417" />
    <author>
      <name>Aaron Graham</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=3998417</id>
    <updated>2011-06-03T08:48:26Z</updated>
    <published>2011-06-03T08:48:26Z</published>
    <summary type="html">You may have fallen for the same problem I had. In most of the examples in the XML developers guide, the same HTTPS header is used with the same content length (613). This content length actually depends on the size of the SOAP payload. The examples didn't reflect this. Here is what I used to generate the HTTPS header for a given soap payload string (note the GetLength() call):
/*****************************************************************************/
//
//	METHOD:GenerateAndAttachHTTPSHeader()
//
//	PURPOSE:  This method creates an HTTP header based on the current 
//  m_ManagementAddress and m_ManagementIPPort values, and the size of the given 
//  SOAP_RequestEnvelope text string. This header is placed at the beginning 
//  of the given SOAP_RequestEnvelope text and the collective text is returned
//  to the caller.
//  
//	Returns : CString
//
/*****************************************************************************/
CString SSL_ConnectionHandler::GenerateAndAttachHTTPSHeader(CString SOAP_RequestEnvelope)
{
	CString strHTTPHeader;
	CString hostLineDetails;
	CString ContentLengthLineDetails;
	hostLineDetails.Format("Host: %s:%d\n",(char*)(LPCSTR)m_ManagementAddress,m_ManagementIPPort);
	ContentLengthLineDetails.Format("Content-length: %d\n",[b]SOAP_RequestEnvelope.GetLength());[/b]
	strHTTPHeader = "POST /axl/ HTTP/1.1\n";
	strHTTPHeader += hostLineDetails;
	strHTTPHeader += "Accept: text/*\n";
	strHTTPHeader += "Authorization: Basic ";
 	strHTTPHeader += m_authorisationText.c_str();	// add authorisation text.
	strHTTPHeader += "\nContent-type: text/xml\n";
	strHTTPHeader += ContentLengthLineDetails; // add Content-Length test for current request
	strHTTPHeader += "Connection: Keep-Alive";
	strHTTPHeader += "\n\n";
	// put the HTTP header and SOAP XML together
	return strHTTPHeader + SOAP_RequestEnvelope;
}

Of course, you should also make sure that:
1) You have enabled the All important AXL Service in the CUCM. (Without this you get a HTTP 404 error if I remember right).
2) The authorisationText in the header matches a valid CUCM End User whose User Group has the appropriate "Roll" associated for AXL access.</summary>
    <dc:creator>Aaron Graham</dc:creator>
    <dc:date>2011-06-03T08:48:26Z</dc:date>
  </entry>
  <entry>
    <title>RE: Problems using SOAP with CCM</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=3390137" />
    <author>
      <name>Victor Manuel Garcia Ternero</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=3390137</id>
    <updated>2011-03-31T10:57:53Z</updated>
    <published>2011-03-31T10:57:46Z</published>
    <summary type="html">Hi mate

May i ask you what is your logic to save it as .asp, soap, xml?
The sample code you provided which was a soap request which used to send a &lt;getPhone&gt; soap request to your CCM.
And i think you might need to send this request through your application.


 
Hello, as you can see I'm not a developer engineer, so I really unknow this scheme of work. I think what I need is a asp script in which I embbed the SOAP code and transfer it to the CCM via HTTP POST, is it correct? Do you have an example script to see how it works?
Thanks. 
Regards.</summary>
    <dc:creator>Victor Manuel Garcia Ternero</dc:creator>
    <dc:date>2011-03-31T10:57:46Z</dc:date>
  </entry>
  <entry>
    <title>RE: Problems using SOAP with CCM</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=3379530" />
    <author>
      <name>Bin L</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=3379530</id>
    <updated>2011-03-31T00:50:23Z</updated>
    <published>2011-03-31T00:50:23Z</published>
    <summary type="html">Hi mate

May i ask you what is your logic to save it as .asp, soap, xml?
The sample code you provided which was a soap request which used to send a &lt;getPhone&gt; soap request to your CCM.
And i think you might need to send this request through your application.</summary>
    <dc:creator>Bin L</dc:creator>
    <dc:date>2011-03-31T00:50:23Z</dc:date>
  </entry>
  <entry>
    <title>Problems using SOAP with CCM</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=3379407" />
    <author>
      <name>Victor Manuel Garcia Ternero</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=3379407</id>
    <updated>2011-03-31T00:37:58Z</updated>
    <published>2011-03-31T00:37:58Z</published>
    <summary type="html">Hello, I am trying to use SOAP to modify call forward all in a DN. I am not sure if the scheme I have is the correct:

Win2003 with IIS

CCM 6.1

I have created an example webpage with the follwing code:

POST: 8443/axl/
Host: 10.200.0.7:8443
Accept: text/*
Authorization: Basic bGFycnk6Y3VybHkgYW5kIG1vZQ==
Content-type: text/xml
SOAPAction: "CUCM:DB ver=6.1"
Content-length: 613

&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;

&lt;SOAP-ENV:Body&gt;
&lt;axl:getPhone xmlns:axl="http://www.cisco.com/AXL/1.0" xsi:schemaLocation="http://www.cisco.com/AXL/1.0 http://ccmserver/schema/axlsoap.xsd" sequence="1234"&gt;
&lt;phoneName&gt;SEP000000000001&lt;/phoneName&gt;
&lt;/axl:getPhone&gt;
&lt;/SOAP-ENV:Body&gt;

&lt;/SOAP-ENV:Envelope&gt;

I have saved it as .asp, .soap, .xml, .html... and it doesn't work, we receive an error in the first line. What is it wrong?

Thanks in advance.

Regards.</summary>
    <dc:creator>Victor Manuel Garcia Ternero</dc:creator>
    <dc:date>2011-03-31T00:37:58Z</dc:date>
  </entry>
</feed>

