confused on python rpc with apache, is it possible?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • krishnakant Mane

    #1

    confused on python rpc with apache, is it possible?

    hello all.
    I will like to know if the following combination is possible.
    I have looked around on google and did not find any thing productive
    so bothering the list: sorry.
    I am developing a distributed application which will have 3 layers
    namely the thin client written in wxpython, an application layer on a
    server and a database server of course. database and application
    server will be on same physical machine.
    what I want to know is if I can use python as the base for developing
    the application layer as an rpc server and use apache server to
    handle http remote procedure requests from the client?
    if yes then what basic configuration settings I will need?
    I believe I must first have apache recognise python interpreter and
    then do some settings in apache so that it knows that what is
    happening is not a web page request but an xml-rpc application created
    in python.
    can some one guide me?
    thanks
    Krishnakant.
  • Diez B. Roggisch

    #2
    Re: confused on python rpc with apache, is it possible?

    krishnakant Mane wrote:
    hello all.
    I will like to know if the following combination is possible.
    I have looked around on google and did not find any thing productive
    so bothering the list: sorry.
    I am developing a distributed application which will have 3 layers
    namely the thin client written in wxpython, an application layer on a
    server and a database server of course. database and application
    server will be on same physical machine.
    what I want to know is if I can use python as the base for developing
    the application layer as an rpc server and use apache server to
    handle http remote procedure requests from the client?
    if yes then what basic configuration settings I will need?
    I believe I must first have apache recognise python interpreter and
    then do some settings in apache so that it knows that what is
    happening is not a web page request but an xml-rpc application created
    in python.
    can some one guide me?
    I'm unclear why you want the apache in there in the first place. Why don't
    you just create an e.g. twisted-based XMLRPC-server, and simply let that
    run? What is the apache intended for?

    Diez


    Comment

    • krishnakant Mane

      #3
      Re: confused on python rpc with apache, is it possible?

      On 19/01/07, Diez B. Roggisch <deets@nospam.w eb.dewrote:
      >
      I'm unclear why you want the apache in there in the first place. Why don't
      you just create an e.g. twisted-based XMLRPC-server, and simply let that
      run? What is the apache intended for?

      twisted-based? what is that? what is that.
      I am very new to xml-rpc so my questions may sound very basic.
      any ways apache is doing nothing in there but I thought that if some
      thing needs to be done in php in the future then apache better be
      there but as I said that is no need if pythone can do it on a stand
      alone basis.

      Comment

      • Ravi Teja

        #4
        Re: confused on python rpc with apache, is it possible?


        krishnakant Mane wrote:
        On 19/01/07, Diez B. Roggisch <deets@nospam.w eb.dewrote:

        I'm unclear why you want the apache in there in the first place. Why don't
        you just create an e.g. twisted-based XMLRPC-server, and simply let that
        run? What is the apache intended for?
        >
        >
        twisted-based? what is that? what is that.
        I am very new to xml-rpc so my questions may sound very basic.
        All you have to do is Google when you have very basic questions
        For example: twisted python xmlrpc
        any ways apache is doing nothing in there but I thought that if some
        thing needs to be done in php in the future then apache better be
        there but as I said that is no need if pythone can do it on a stand
        alone basis.
        Use mod_python with some xmlrpc handler. There is more than one around.
        Google for them. That way you can keep Apache for both Python and PHP.

        Ravi Teja.

        Comment

        • krishnakant Mane

          #5
          Re: confused on python rpc with apache, is it possible?

          Use mod_python with some xmlrpc handler. There is more than one around.
          Google for them. That way you can keep Apache for both Python and PHP.
          >
          I am confused.
          I have some documents on xml-rpc but none of them mentioned apache.
          Krishnakant.

          Comment

          • Diez B. Roggisch

            #6
            Re: confused on python rpc with apache, is it possible?

            krishnakant Mane schrieb:
            >Use mod_python with some xmlrpc handler. There is more than one around.
            >Google for them. That way you can keep Apache for both Python and PHP.
            >>
            I am confused.
            I have some documents on xml-rpc but none of them mentioned apache.
            There is nothing an apache will do for you - except from possibly
            proxing python.

            Go read up upon xmlrpc and python, possibly doing it with twisted, but
            there are other options.

            Don't bother with the apache.

            Diez

            Comment

            • krishnakant Mane

              #7
              Re: confused on python rpc with apache, is it possible?

              On 20/01/07, Diez B. Roggisch <deets@nospam.w eb.dewrote:
              >
              There is nothing an apache will do for you - except from possibly
              proxing python.
              >
              Go read up upon xmlrpc and python, possibly doing it with twisted, but
              there are other options.
              >
              Don't bother with the apache.
              well in that case I don't need apache.
              can I do xml-rpc using the default libraries that come with every
              python installer?
              is there some added advantage of using twisted?
              Krishnakant.

              Comment

              • Diez B. Roggisch

                #8
                Re: confused on python rpc with apache, is it possible?

                >
                well in that case I don't need apache.
                can I do xml-rpc using the default libraries that come with every
                python installer?
                Yes, and a simple look in the API docs would have convinced you of that.
                I suggest you start googling and reading.
                is there some added advantage of using twisted?
                Certainly, but it comes with added burden of using and understanding a
                complex framework. Here also applies: read the docs.

                Diez

                Comment

                • fumanchu

                  #9
                  Re: confused on python rpc with apache, is it possible?

                  krishnakant Mane wrote:
                  can I do xml-rpc using the default libraries that come with every
                  python installer?
                  You can, but others have packaged them up to make it easier. CherryPy
                  includes an xmlrpc tool (and has no dependencies other than standard
                  Python).

                  You can see an example of what your code would look like in the
                  "setup_serv er" portion of


                  Further resources on using CherryPy's xml-rpc are just a Google away.
                  Note that some of these may use different syntax as they target
                  different versions of CherryPy (but the basics are the same).



                  Robert Brewer
                  System Architect
                  Amor Ministries
                  fumanchu@amor.o rg

                  Comment

                  Working...