Graham Charters | 2 Jun 2008 15:19

Re: Methods Documentation in WSDL


Hi Silvano,

Sorry for not replying sooner and not replying to your original note.
I always had in mind to generate documentation in the WSDL from the
methods descriptions, so what you have done is exactly the right idea.

Thanks also for the patch.  I haven't taken a look at the moment.  The
SCA_SDO project has a CLA to cover contributions and so far as I'm
aware you've not signed, or been asked to sign it.  Is this something
you'd be willing and able to do?  I can give you more information in
needed.

Regards, Graham.

On 30 May, 17:05, "Silvano Girardi Jr" <silvan...@...> wrote:
> Since I got no comments, I made it only for methods and not optional.
>
> I've put the patch in the case.
>
> Silvano
>
> On Fri, Apr 25, 2008 at 1:06 PM, Silvano Girardi Jr <silvan...@...>
> wrote:
>
> > On Fri, Apr 25, 2008 at 12:28 PM, Caroline Maynard <c...@...> wrote:
>
> >> Silvano Girardi Jr wrote:
> >> > On Fri, Apr 25, 2008 at 5:38 AM, Caroline Maynard <c...@...> wrote:
>
(Continue reading)

Silvano Girardi Jr | 2 Jun 2008 17:53
Picon

Re: Methods Documentation in WSDL

Hi Graham,
I have that interest. Where do I start? :)

Thanks
Silvano

On Mon, Jun 2, 2008 at 10:19 AM, Graham Charters <gcharters-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:

Hi Silvano,

Sorry for not replying sooner and not replying to your original note.
I always had in mind to generate documentation in the WSDL from the
methods descriptions, so what you have done is exactly the right idea.

Thanks also for the patch.  I haven't taken a look at the moment.  The
SCA_SDO project has a CLA to cover contributions and so far as I'm
aware you've not signed, or been asked to sign it.  Is this something
you'd be willing and able to do?  I can give you more information in
needed.

Regards, Graham.

On 30 May, 17:05, "Silvano Girardi Jr" <silvan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Since I got no comments, I made it only for methods and not optional.
>
> I've put the patch in the case.
>
> Silvano
>
> On Fri, Apr 25, 2008 at 1:06 PM, Silvano Girardi Jr <silvan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> wrote:
>
> > On Fri, Apr 25, 2008 at 12:28 PM, Caroline Maynard <c...-GOAhiB59KME@public.gmane.org> wrote:
>
> >> Silvano Girardi Jr wrote:
> >> > On Fri, Apr 25, 2008 at 5:38 AM, Caroline Maynard <c...-GOAhiB59KME@public.gmane.org> wrote:
>
> >> >> Silvano Girardi Jr wrote:
>
> >> >>> is there any special reason for the SCA to do not generate the
> >> >>> <documentation></documentation> in the WSDL based on the method's
> >> >>> description in the doc block?
> >> >> Probably nobody thought to do it. Seems a good idea to me. Any
> >> volunteers?
>
> >> > I was checking how it works and it seems something I can handle in my
> >> spare
> >> > time.
>
> >> > I will need to be in touch with someone here to discuss how we are going
> >> to
> >> > do this.
> >> > Might be best in private and once we define the ways to do it we can put
> >> > here in the list for votes. (Just thoughts really... not sure how you
> >> guys
> >> > handle these things).
>
> >> > Anyway, I am a volunteer :)
>
> >> > Silvano
>
> >> Great :-)
> >> Suggest you raise a Feature/Change Request at
> >>http://pecl.php.net/bugs/report.php?package=SCA_SDO. Then when you have
> >> a proposed patch we can get the relevant committers to review it.
>
> > Ok I just did it:http://pecl.php.net/bugs/bug.php?id=13775
>
> > Need your thoughts here.
>
> > 1 - should it include the description of the service too (as I put in the
> > request above), or only for methods?
> > 2 - should it always happen or be optional? If optional, how to handle
> > this?
>
> > Silvano



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "phpsoa" group.
To post to this group, send email to phpsoa-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to phpsoa-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at http://groups.google.co.uk/group/phpsoa?hl=en
-~----------~----~----~----~------~----~------~--~---

Kariboe | 3 Jun 2008 15:05
Picon
Favicon

Newbie question


Hi all,

Busy testing SCA package. I have a problem with a very simple
testscript. Running a local script client.php:

<?php

include 'SCA/SCA.php';

$wsdl = file_get_contents('http://barabas.hogent.be/kariboe/
helloworld.php?wsdl');
file_put_contents("helloworld.wsdl",$wsdl);
$helloservice = SCA::getService('helloworld.wsdl');

echo $helloservice->sayHello();
?>

And on my server:

<?php
include "SCA/SCA.php";
/**
 *  <at> service
 *  <at> binding.ws
 */
class helloworld
{
	/**
	 *  <at> return string Hello Message
	 */
	function sayHello(){
		return 'hello kariboe';
	}
}
?>

If I try to access the generated wsdl code I receive a blank page!
What am I doing wrong?

Server: Red Hat Enterprise Linux 4
PHP: 5.2.1
Apache: 2.2.3

Help is appreciated!

Regards,

Stefaan

Kariboe | 3 Jun 2008 10:10
Picon
Favicon

Re: Dokeos developers considering SCA


Hi!

I'm also working on Dokeos, the 2.0 version that is currently in
development. I heard about the package from Yannick (lead dev dokeos)
and I'm looking how we can integrate/use SCA/SDO in Dokeos.

Regards,

Stefaan Vanbillemont
E-learning Dept.
University College Ghent - Belgium

Graham Charters | 4 Jun 2008 21:26

Re: Methods Documentation in WSDL


Hi Silvano,

There's a text document called "CLA" in the distirbution (see
http://cvs.php.net/viewvc.cgi/pecl/sdo/CLA?revision=1.2&view=markup&pathrev=MAIN).
It describes what you need to do.  If you have any questions or
concerns, please let me know.

Regards, Graham.

On 2 Jun, 16:53, "Silvano Girardi Jr" <silvan...@...> wrote:
> Hi Graham,
> I have that interest. Where do I start? :)
>
> Thanks
> Silvano
>
> On Mon, Jun 2, 2008 at 10:19 AM, Graham Charters <gchart...@...>
> wrote:
>
>
>
> > Hi Silvano,
>
> > Sorry for not replying sooner and not replying to your original note.
> > I always had in mind to generate documentation in the WSDL from the
> > methods descriptions, so what you have done is exactly the right idea.
>
> > Thanks also for the patch.  I haven't taken a look at the moment.  The
> > SCA_SDO project has a CLA to cover contributions and so far as I'm
> > aware you've not signed, or been asked to sign it.  Is this something
> > you'd be willing and able to do?  I can give you more information in
> > needed.
>
> > Regards, Graham.
>
> > On 30 May, 17:05, "Silvano Girardi Jr" <silvan...@...> wrote:
> > > Since I got no comments, I made it only for methods and not optional.
>
> > > I've put the patch in the case.
>
> > > Silvano
>
> > > On Fri, Apr 25, 2008 at 1:06 PM, Silvano Girardi Jr <silvan...@...
>
> > > wrote:
>
> > > > On Fri, Apr 25, 2008 at 12:28 PM, Caroline Maynard <c...@...>
> > wrote:
>
> > > >> Silvano Girardi Jr wrote:
> > > >> > On Fri, Apr 25, 2008 at 5:38 AM, Caroline Maynard <c...@...>
> > wrote:
>
> > > >> >> Silvano Girardi Jr wrote:
>
> > > >> >>> is there any special reason for the SCA to do not generate the
> > > >> >>> <documentation></documentation> in the WSDL based on the method's
> > > >> >>> description in the doc block?
> > > >> >> Probably nobody thought to do it. Seems a good idea to me. Any
> > > >> volunteers?
>
> > > >> > I was checking how it works and it seems something I can handle in
> > my
> > > >> spare
> > > >> > time.
>
> > > >> > I will need to be in touch with someone here to discuss how we are
> > going
> > > >> to
> > > >> > do this.
> > > >> > Might be best in private and once we define the ways to do it we can
> > put
> > > >> > here in the list for votes. (Just thoughts really... not sure how
> > you
> > > >> guys
> > > >> > handle these things).
>
> > > >> > Anyway, I am a volunteer :)
>
> > > >> > Silvano
>
> > > >> Great :-)
> > > >> Suggest you raise a Feature/Change Request at
> > > >>http://pecl.php.net/bugs/report.php?package=SCA_SDO. Then when you
> > have
> > > >> a proposed patch we can get the relevant committers to review it.
>
> > > > Ok I just did it:http://pecl.php.net/bugs/bug.php?id=13775
>
> > > > Need your thoughts here.
>
> > > > 1 - should it include the description of the service too (as I put in
> > the
> > > > request above), or only for methods?
> > > > 2 - should it always happen or be optional? If optional, how to handle
> > > > this?
>
> > > > Silvano
Matthew Peters | 6 Jun 2008 11:34

Re: Newbie question


Hi Stefaan,
Sorry you had difficulties. The first place to look when there are
problems is the apache error log. I just cut and pasted your example
(I coiuld see nothing wrong with it :-)) and saw
Uncaught SCA_RuntimeException: No valid  <at> binding annotation found for
'helloworld.php'.\n....

Then I remembered ...

What has happened here is that the  <at> binding you want is  <at> binding.soap,
not  <at> binding.ws. We used to have   <at> binding.ws but changed it to
 <at> binding.soap a while ago. I hope we changed all the documentation to
match, but if you found  <at> binding.ws somewhere in the documentation do
let me know and I will fix it.

Good luck and let us know if you have more problems.

Matthew

On Jun 3, 2:05 pm, Kariboe <denbi...@...> wrote:
> Hi all,
>
> Busy testing SCA package. I have a problem with a very simple
> testscript. Running a local script client.php:
>
> <?php
>
> include 'SCA/SCA.php';
>
> $wsdl = file_get_contents('http://barabas.hogent.be/kariboe/
> helloworld.php?wsdl');
> file_put_contents("helloworld.wsdl",$wsdl);
> $helloservice = SCA::getService('helloworld.wsdl');
>
> echo $helloservice->sayHello();
> ?>
>
> And on my server:
>
> <?php
> include "SCA/SCA.php";
> /**
>  *  <at> service
>  *  <at> binding.ws
>  */
> class helloworld
> {
>         /**
>          *  <at> return string Hello Message
>          */
>         function sayHello(){
>                 return 'hello kariboe';
>         }}
>
> ?>
>
> If I try to access the generated wsdl code I receive a blank page!
> What am I doing wrong?
>
> Server: Red Hat Enterprise Linux 4
> PHP: 5.2.1
> Apache: 2.2.3
>
> Help is appreciated!
>
> Regards,
>
> Stefaan
Silvano Girardi Jr | 17 Jun 2008 01:59
Picon

Problem when using type DOUBLE in SOAP

Gentlemen,
there is a critical issue (at least for me) when dealing with double values
using SOAP.

Example: when returning 3210.8765, you get: 3211.

I reported it as a bug: http://pecl.php.net/bugs/bug.php?id=14155

FYI, when I try with REST-RPC or not using SCA at all (with SoapServer), it
works fine: returns the same double value.

I appreciate if someone could take a look on this asap.

Thanks,
Silvano Girardi Jr.

Matthew Peters | 17 Jun 2008 14:52

Re: Problem when using type DOUBLE in SOAP


Hi Silvano,
Indeed, this is not good. I picked up the sample from the defect that
you raised.

I added a couple of trigger_errors to Bindings/soap/Wrapper.php to
look at the return values.

If I show the return value before we mess with it, it looks fine:
[Tue Jun 17 13:45:20 2008] [error] [client 127.0.0.1] PHP Notice:
3210.8765 in C:\\php\\PEAR\\SCA\\Bindings\\soap\\Wrapper.php on
 line 99

but if I look at the $response_object, which is an SDO and print that
out, it has lost precision
[Tue Jun 17 13:45:20 2008] [error] [client 127.0.0.1] PHP Notice:
object(SDO_DataObject)#11 (1) {getDoubleReturn=>"3.211e+003"} i
n C:\\php\\PEAR\\SCA\\Bindings\\soap\\Wrapper.php on line 100

So, this is something to do with assigning the value into an SDO. I
will send a note to Caroline (although of course she will see this)
and see if she knows what might have happened here.

Matthew

On 17 Jun, 00:59, "Silvano Girardi Jr" <silvan...@...> wrote:
> Gentlemen,
> there is a critical issue (at least for me) when dealing with double values
> using SOAP.
>
> Example: when returning 3210.8765, you get: 3211.
>
> I reported it as a bug:http://pecl.php.net/bugs/bug.php?id=14155
>
> FYI, when I try with REST-RPC or not using SCA at all (with SoapServer), it
> works fine: returns the same double value.
>
> I appreciate if someone could take a look on this asap.
>
> Thanks,
> Silvano Girardi Jr.
Kariboe | 18 Jun 2008 10:23
Picon
Favicon

Re: Newbie question


Matthew,

Thanks for the response but my problem is not yet solved:

Fatal error: Uncaught SCA_RuntimeException: SDO_Exception in
setWSDLTypes : SDO_DAS_XML::create - Unable to parse the supplied xsd
file 2 parse error(s) occurred when parsing the file 'C:\wamp\www
\webservices\test_3\helloworld.wsdl': 1. Document is empty 2. Start
tag expected, '<' not found thrown in C:\wamp\www\webservices
\SCA_SDO-1.2.4\SCA\Bindings\soap\Proxy.php on line 104

When my client.php tries to read the wsdl  from my server script it
receives nothing. Maybe something on my server is missing? I copied
the SCA folder to my php install/include folder. I hope this is
enough?

I really hope to get this working before the summer so we can start
implementing webservices in Dokeos 2.0.

Regards,

Stefaan

Matthew Peters | 18 Jun 2008 10:52

Re: Newbie question


Hi Stefaan,
I see, you are presumably getting nothing back when you ask for the
wsdl with something like
$wsdl = file_get_contents('http://barabas.hogent.be/kariboe/
helloworld.php?wsdl');

What we need to know is what appears in the apache error log on the
server machine barabas.hogent.be (or whatever server you are using)
when you execute the file_get_contents? You can also just try to get
the wsdl using the url in a browser if you like.

I don't know if the SCA files are in the right place; I expect so
though. If include 'SCA/SCA.php' works on the server end that
everything else should work.

Matthew

On Jun 18, 9:23 am, Kariboe <denbi...@...> wrote:
> Matthew,
>
> Thanks for the response but my problem is not yet solved:
>
> Fatal error: Uncaught SCA_RuntimeException: SDO_Exception in
> setWSDLTypes : SDO_DAS_XML::create - Unable to parse the supplied xsd
> file 2 parse error(s) occurred when parsing the file 'C:\wamp\www
> \webservices\test_3\helloworld.wsdl': 1. Document is empty 2. Start
> tag expected, '<' not found thrown in C:\wamp\www\webservices
> \SCA_SDO-1.2.4\SCA\Bindings\soap\Proxy.php on line 104
>
> When my client.php tries to read the wsdl  from my server script it
> receives nothing. Maybe something on my server is missing? I copied
> the SCA folder to my php install/include folder. I hope this is
> enough?
>
> I really hope to get this working before the summer so we can start
> implementing webservices in Dokeos 2.0.
>
> Regards,
>
> Stefaan

Gmane