PHP and NuSoap

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • James Kennedy

    PHP and NuSoap

    Hi,

    I've downloaded the NuSoap class files. I've put them onto my localhost/
    where I run my php scripts, just put the nusoap.php file in there. I've
    got loads of different scripts to try out (including the ones that come
    with soap) and I'm getting the same error for each of them:


    Fatal error: Cannot redeclare class soapclient in
    /opt/lampp/htdocs/Jims/Database/nusoap.php on line 6500


    Can anyone tell me why I would get this? BTW its the last line in
    nusoap.php.

    /opt/lampp/htdocs/Jims/Database/ is just my developent folder for php.#

    Thanks,
    Jim.
  • Aidan

    #2
    Re: PHP and NuSoap


    "James Kennedy" <jk018r0461@blu eyonder.co.uk> wrote in message
    news:tO2Zd.5953 6$y25.38218@fe3 .news.blueyonde r.co.uk...[color=blue]
    > Hi,
    >
    > I've downloaded the NuSoap class files. I've put them onto my localhost/
    > where I run my php scripts, just put the nusoap.php file in there. I've
    > got loads of different scripts to try out (including the ones that come
    > with soap) and I'm getting the same error for each of them:
    >
    >
    > Fatal error: Cannot redeclare class soapclient in
    > /opt/lampp/htdocs/Jims/Database/nusoap.php on line 6500
    >
    >
    > Can anyone tell me why I would get this? BTW its the last line in
    > nusoap.php.[/color]

    Not sure if it has anything to do with your problem, but when I have had
    'error on line xxx', where xxx is the last line of my file, it was generally
    because there were missing braces({}) in nested loops or function
    definitions.

    HTH


    Comment

    • James Kennedy

      #3
      Re: PHP and NuSoap

      Aidan wrote:

      [color=blue]
      > Not sure if it has anything to do with your problem, but when I have had
      > 'error on line xxx', where xxx is the last line of my file, it was generally
      > because there were missing braces({}) in nested loops or function
      > definitions.
      >
      > HTH
      >
      >[/color]

      Hi,

      No, this is generating an error in nusoap.php, as in the dowloaded class
      libraries, that, I would assume, is coplete and ready to go. I think the
      problem is that I have to set something up concerning nusoap, but I
      don't know what?

      Thanks Jim.

      Comment

      • Alex

        #4
        Re: PHP and NuSoap

        James Kennedy wrote:[color=blue]
        > Aidan wrote:
        >
        >[color=green]
        >> Not sure if it has anything to do with your problem, but when I have
        >> had 'error on line xxx', where xxx is the last line of my file, it was
        >> generally because there were missing braces({}) in nested loops or
        >> function definitions.
        >>
        >> HTH
        >>
        >>[/color]
        >
        > Hi,
        >
        > No, this is generating an error in nusoap.php, as in the dowloaded class
        > libraries, that, I would assume, is coplete and ready to go. I think the
        > problem is that I have to set something up concerning nusoap, but I
        > don't know what?
        >
        > Thanks Jim.[/color]

        If you are using php5 and have the built-in soap classes (i.e.
        SoapClient) enabled then it is going to think you are redeclaring the
        SoapClient class and throw this error. If you want to use NuSOAP then
        disable the built-in classes...

        Fast

        Comment

        Working...