RE: [PHP-SOAP-DEV] Object sample not working
| From: | Lay Peng | Date: | Fri, 02 Aug 2002 07:44:11 +0000 |
| Subject: | RE: [PHP-SOAP-DEV] Object sample not working | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-201@lists.php.net to get a copy of this message | ||
Thx Audrey. Will try it out.
Btw, how do I publish the services via UDDI once it is done ?
Thanks and regards,
Lay Peng
-----Original Message-----
From: Andrey Hristov [mailto:ahristov@icygen.com]
Sent: Thursday, August 01, 2002 4:00 PM
To: Lay Peng
Cc: soap@lists.php.net
Subject: Re: [PHP-SOAP-DEV] Object sample not working
Hi,
try using output buffering - so at the start of your methods do ob_start();.
At the end do $contents = ob_get_contents();. After then ob_end_clean().
If you return some stuff from you methods - find a way to returns $contents.
HTH
Regards,
Andrey
----- Original Message -----
From: "Lay Peng" <laypeng@tetium.com>
To: "Andrey Hristov" <ahristov@icygen.com>
Sent: Thursday, August 01, 2002 5:20 AM
Subject: RE: [PHP-SOAP-DEV] Object sample not working
> E.g. when the client request for a db query, the server
> will return the search result in a tabular format.
>
>
> -----Original Message-----
> From: Andrey Hristov [mailto:ahristov@icygen.com]
> Sent: Wednesday, July 31, 2002 5:22 PM
> To: Lay Peng
> Cc: soap@lists.php.net
> Subject: Re: [PHP-SOAP-DEV] Object sample not working
>
>
> What kind of presentation?
> Maybe there is way to workaround this limitations.
>
> Andrey
>
> ----- Original Message -----
> From: "Lay Peng" <laypeng@tetium.com>
> To: "Andrey Hristov" <ahristov@icygen.com>
> Cc: <soap@lists.php.net>
> Sent: Wednesday, July 31, 2002 12:08 PM
> Subject: RE: [PHP-SOAP-DEV] Object sample not working
>
>
> > okay, so long as one side is java (i.e. either java is as a
> > server object or client object), you need axis, even if the
> > server and client objects are in the same machine?
> >
> > Yeah, without the echo/print function in the server is a pain
> > for debugging and my existing php module (contains lots of
> > presentation stuff) cannot be re-used *sign*.
> >
> >
> > -----Original Message-----
> > From: Andrey Hristov [mailto:ahristov@icygen.com]
> > Sent: Wednesday, July 31, 2002 4:55 PM
> > To: Lay Peng
> > Cc: soap@lists.php.net
> > Subject: Re: [PHP-SOAP-DEV] Object sample not working
> >
> >
> > Sorry, I don't know whether you have to install Axis or not. But I
think
> it
> > is not needed, so if you have PHP installed with php-soap your "server"
> SOAP
> > objects are accessible without installing any other soap package as
axis.
> > But if you intend to use Java as client you have to have Axis installed
to
> > use the classes.
> > Unfortunately it is night in USA and Brad is into the bed.
> > I've used php-soap mostly in client and in the server part. I've also
done
> > some interoperability tests with python (python as server) and it works
> > well.
> > This is kind of problem with debugging the remote part. For this reason
I
> > built a small log lib that I use for logging this and that. Another
> solution
> > is the use of mail() for debugging instead of echo do
> > mail('someemail@example.com','Debug','Your message here');
> > your_message can be everything even you can use var_export to see the
> state
> > of variables.
> >
> > Regards,
> > Andrey
> >
> > ----- Original Message -----
> > From: "Lay Peng" <laypeng@tetium.com>
> > To: "Andrey Hristov" <ahristov@icygen.com>
> > Cc: <soap@lists.php.net>
> > Sent: Wednesday, July 31, 2002 11:36 AM
> > Subject: RE: [PHP-SOAP-DEV] Object sample not working
> >
> >
> > > Oops sorry, I mean I can't echo/print anything from the server.
> > > That is, taking the example of object. If I echo some string
> > > from the class function, it will not be displayed when the
> > > client is being called at the browser.
> > >
> > > Btw, do you know what is the diff b/w Axis and php-soap? Do
> > > we need to install Axis in order to run the soap objects?
> > >
> > > Thnks,
> > >
> > >
> > > -----Original Message-----
> > > From: Andrey Hristov [mailto:ahristov@icygen.com]
> > > Sent: Wednesday, July 31, 2002 3:42 PM
> > > To: Lay Peng
> > > Cc: soap@lists.php.net
> > > Subject: Re: [PHP-SOAP-DEV] Object sample not working
> > >
> > >
> > > I've problems with the examples but they are there only to show what
> can
> > be
> > > done.
> > > It is possible to echo/print() from client but this action in the
server
> > has
> > > not meaning. Brad uses output buffering to suppress the output of the
> > > server. Other wise ervery warning or any other stuff will break the
> > things.
> > > I am not sure whether this bug is fixed or not but I have experienced
> > > problems when using in scripts ob_strart() but have no ob_end*()
call -
> > Brad
> > > can you confirm this.
> > >
> > > Regards,
> > > Andrey
> > >
> > > ----- Original Message -----
> > > From: "Lay Peng" <laypeng@tetium.com>
> > > To: <phpsoaptoolkit-development@lists.sourceforge.net>
> > > Sent: Wednesday, July 31, 2002 5:55 AM
> > > Subject: [PHP-SOAP-DEV] Object sample not working
> > >
> > >
> > > > Hi,
> > > >
> > > > I am trying to learn more about interfacing php modules from
javabean,
> > > > and am currently playing around with php-soap.
> > > >
> > > > The object sample that you have on the site doesn;t seem to work. I
> got
> > > > either no display or the browser will said something like it has
> > received
> > > > unrecognise response/character. Is the sample tested working?
> > > >
> > > > I have also tried writing my own module and it works. The only thing
> is
> > > that
> > > > I can't display anything from my class function. Is that the way it
> > works
> > > > i.e.
> > > > you cannot use echo or print from the php soap client?
> > > >
> > > > Thanks and best regards,
> > > > Lay Peng
> > > >
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This sf.net email is sponsored by: Dice - The leading online job
board
> > > > for high-tech professionals. Search and apply for tech jobs today!
> > > > http://seeker.dice.com/seeker.epl?rel_code=31
> > > > _______________________________________________
> > > > Phpsoaptoolkit-development mailing list
> > > > Phpsoaptoolkit-development@lists.sourceforge.net
> > > >
>
> https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development
> > > >
> > >
> > >
> > >
> >
> >
>
>