Wiki example with curl error

Version 1
    This document was generated from CDN thread

    Created by: Nataraj Nayak on 21-02-2009 02:05:42 AM
    Hi
     
        I am trying to execute the example under the Wiki section of this community named "Testing AXL with CURL" as is- by only changing the IP address to our call manager's IP and the user name in the command line.  My CCM administrator says he has enabled AXL capabilities for this user.  Our call manager version is 5.1.3.
     
       I am getting the following error, while trying to execute the curl command (I have tried to scale down the error message):
     
    C:\Program Files\curl-7.19.3>curl -k -u ipphoneadminaxl -H 'Content-type: text/xml;' -H 'SOAPAction: "CUCMB ver=5.0"' -d @request.
    xml https://172.26.16.102:8443/axl/
    Enter host password for user 'ipphoneadminaxl':
    curl: (6) Could not resolve host: text; Host not found
    curl: (6) Could not resolve host: CUCMB ver=5.0'; No data record of requested type
    <html><head><title>Apache Tomcat/5.0 - Error report</title><style>....
    style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><b>type</b> Exception report<b>message</b> <
    u></u><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></
    p><b>exception</b> javax.servlet.ServletException: Unable to internalize message
            com.cisco.ccm.axl.AxlListener.doPost(AxlListener.java:263)
            javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
            javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    ....
           org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
            org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)
    <b>root cause</b> com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
            com.sun.xml.messaging.saaj.soap.MessageImpl.&lt;init&gt;(MessageImpl.java:194)
            com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.&lt;init&gt;(Message1_1Impl.java:43)
            ........
    <b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/5.0 logs.</u><HR size="1" n
    oshade="noshade"><h3>Apache Tomcat/5.0</h3></body></html>
     
       Can anyone help me in understanding what is wrong?
     
    Thanks
    Natraj

    Subject: RE: Wiki example with curl error
    Replied by: David Staudt on 21-02-2009 07:05:01 AM
    Looks like you are seeing a problem with the difference between how Linux and Windows handle quotes in the command line (the example was based on Linux.)  Since CM5 doesn't include the SOAPHeader versioning feature anyway, you can try something like this:
     
    C:\>curl -k -u ipphoneadminaxl -H "Content-type: text/xml;" -d @request.xml https://172.26.16.102:8443/axl/

    Subject: RE: Wiki example with curl error
    Replied by: Nataraj Nayak on 23-02-2009 08:18:29 AM
    Thanks David!  It works....