Invalid Action(401)

appoolloo
2004-05-04
2004-05-19
  • appoolloo

    appoolloo - 2004-05-04

    Hi,

    I downloaded cyberlink and the sample control point recently. I was able to run it and discover my SMC 2804WBR wireless router. However when I go to any tree node and then click "Action" or "Query" button on the right pane, I got "Invalid action(401)". I wonder whether this is a problem of my router or cyberlink.

    Thank you.

    Cao

    ===================================
    Here is a sample output when I try to query the subnet mask:

    POST /control?LANHostConfigManagement HTTP/
    CONTENT-TYPE: text/xml; charset="utf-8"
    HOST: 192.168.2.1:80
    CONTENT-LENGTH: 320
    SOAPACTION: "urn:schemas-upnp-org:control-1-0#QueryStateVariable"

    <?xml version="1.0"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
        <s:Body>
            <u:QueryStateVariable xmlns:u="urn:schemas-upnp-org:control-1-0">
                <u:varName>SubnetMask</u:varName>
            </u:QueryStateVariable>
        </s:Body>
    </s:Envelope>

    HTTP/1.0 500
    CONTENT-TYPE: text/xml; charset="utf-8"
    SERVER: Custom/1.0 UPnP/1.0 Prod/Ver
    CONTENT-LENGTH: 400
    Date: Tue,  4 May 2004 12:10:28 GMT
    EXT:

    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>401</errorCode><errorDescription>Invalid Action</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>

     
    • Satoshi Konno

      Satoshi Konno - 2004-05-12

      Hi,

      I have uploaded the latest package, v1.4, and the new conotol point sample.

      Control Point Sample for v1.4
      http://sourceforge.net/project/showfiles.php?group_id=75638&package_id=76742&release_id=237635

      I added a command line option, -v, to be able to outout the SOAP messages to console. To use the debbuging option, please run as the following.

        java CtrlPoint -v

      Using the sample, you may fix the problem. Please check it :-)

       
    • appoolloo

      appoolloo - 2004-05-14

      I've downloaded the latest package and the sample. Unfortunately the result is the same. Do you see anything wrong with the soap message below?

      ========== output ============

      CyberGarage message : Debug.on
      CyberGarage message : accept ...
      M-SEARCH * HTTP/1.1
      ST: upnp:rootdevice
      MX: 3
      MAN: "ssdp:discover"
      HOST: 239.255.255.250:1900

      POST /control?WANIPConnection HTTP/1.0
      CONTENT-TYPE: text/xml; charset="utf-8"
      HOST: 192.168.2.1:80
      CONTENT-LENGTH: 341
      SOAPACTION: "urn:schemas-upnp-org:control-1-0#QueryStateVariable"

      <?xml version="1.0" encoding="utf-8"?>
      <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
          <s:Body>
              <u:QueryStateVariable xmlns:u="urn:schemas-upnp-org:control-1-0">
                  <u:varName>ConnectionType</u:varName>
              </u:QueryStateVariable>
          </s:Body>
      </s:Envelope>

      HTTP/1.0 500
      CONTENT-TYPE: text/xml; charset="utf-8"
      SERVER: Custom/1.0 UPnP/1.0 Prod/Ver
      CONTENT-LENGTH: 400
      Date: Fri, 14 May 2004 14:08:42 GMT
      EXT:

      <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>401</errorCode><errorDescription>Invalid Action</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>

       
    • appoolloo

      appoolloo - 2004-05-18

      After I switched to a new upnp enabled device, now I can invoke actions and retrieve state variable values. That might have proved that the  problem is due to the device(SMC wireless router 2804wbr) I used before didn't fully implement upnp device specification. And reasonably it was not listed on UPnP forum's certified product list.

       
      • Satoshi Konno

        Satoshi Konno - 2004-05-19

        Hi,

        I didn't know why you could query the state variable, because It seems that your query message is not wrong.

        I would like to check with more UPnP devices such as your router, but I couldn't buy some products in Japan.

        Thanks for your checking.

         

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks