[CUCM 8.5] Problem with Services attachment in addDeviceProfile

Version 1
    This document was generated from CDN thread

    Created by: Julien ESPIE on 24-11-2011 04:21:07 AM
    Hi,
     
    I'm encountering an issue with service attachment with addDeviceProfile method.
    I don't really understand the CallManager faultstring message, does someone here know what I'm doing wrong in my xml request ?
     
     
    Here is my XML:

     

    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://www.cisco.com/AXLAPIService/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
       <env:Body>
          <addDeviceProfile>
             <deviceProfile>
                <name>99997-7960</name>
                <description>UDP-test test</description>
                <product>Cisco 7960</product>
                <class>Device Profile</class>
                <protocol>SCCP</protocol>
                <mlppDomainId>-1</mlppDomainId>
                <mlppIndicationStatus>Default</mlppIndicationStatus>
                <preemption>Default</preemption>
                <loginUserId>99997</loginUserId>
                <lines>
                   <line>
                      <label>test test</label>
                      <display>test test</display>
                      <displayAscii>test test - 99997</displayAscii>
                      <dirn>
                         <index>1</index>
                         <pattern>99997</pattern>
                         <routePartitionName>P_AS_PH</routePartitionName>
                      </dirn>
                   </line>
                </lines>
                <associatedEndUsers>
                   <enduser>
                      <userId>99997</userId>
                   </enduser>
                </associatedEndUsers>
                <services>
                       <service>
                          <telecasterServiceName>Mobilite</telecasterServiceName>
                          <name>Mobilite</name>
                       </service>
                 </services>
             </deviceProfile>
          </addDeviceProfile>
       </env:Body>
    </env:Envelope>

     
    and here is the response:
     


    <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header/>
    <SOAP-ENV:Body>
       <SOAP-ENV:Fault>
          <faultcode>SOAP-ENV:Client</faultcode>
          <faultstring>schema_reference.4: Failed to read schema document '/usr/local/thirdparty/jakarta-tomcat/webapps/axl/schema/6.1/SoapEnvelope.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root elementof the document is not &lt;xsd:schema&gt;.</faultstring>
          <detail>
             <axl:Error xmlns:axl="http://www.cisco.com/AXL/API/1.0">
                <axl:code>5001</axl:code>
                <axl:message>schema_reference.4: Failed to read schema document '/usr/local/thirdparty/jakarta-tomcat/webapps/axl/schema/6.1/SoapEnvelope.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not &lt;xsd:schema&gt;.</axl:message>
                <request>addDeviceProfile</request>
             </axl:Error>
          </detail>
       </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

     
     
    Thanks by advance,
    Julien

    Subject: RE: [CUCM 8.5] Problem with Services attachment in addDeviceProfile
    Replied by: Julien ESPIE on 25-11-2011 09:02:29 AM
    The url parameter was missing in my request.
    But this parameter is optional in the documentation...finally, it is not optional.

    <services>
        <service>
           <telecasterServiceName>Mobilite</telecasterServiceName>
           <name>Mobilite</name>
           <url>http://...</url>
        </service>
    </services>