Matthew Peters | 3 Mar 2008 12:04

Re: Problems with message binding


Hi, sorry to hear you are having problems.

The Fatal error you are seeing looks odd: the _ms_ in the middle of
the name looks like something somewhere is looking for a binding.ms
rather than binding.message. I propose we try with an exaple that I
know works - I show below a simple example that I have just tried out
on my machine with ActiveMQ 5.0. I am running with the FULMAR branch
of SCA but I don't think that should make any difference.

As for the second error you report, the empty line, one reason for
that can be a blank line in the php script on the receiving end - the
one that is supposed to generate the wsdl. If there is a blank line
before the first <?php, it comes out in the wsdl. In fact if any of
the scripts that are involved in generating the wsdl emit anything
before the <?xml declaration we get trouble - but I hope that the SCA
scripts never do that.

Here is my working example. See if it works for you. It's three files
which for me are all in C:\Program Files\Apache Group\Apache2\htdocs
\Frankfurt\Message
where htdocs is of course the document root for my apache.

Of course you need to start ActiveMQ in one window and
ReceivingService.php in another. You'll see that the test client gets
the receiving service to generate the msd file and writes it out, then
makes a local call to the sending service which sends the magic
initials IBM on queue://receiver

I get a couple of annoying messages from the SAM extension but that is
(Continue reading)

jpuerta | 3 Mar 2008 17:06
Picon

Re: Problems with message binding


Hello Matthew...

Thank you very much for your help...
I tried the example you provided, but i was unable to get it to
work...
I still get the same error when I try this:

http://yummyphpprojjpuerta/services/activemqtest/ReceivingService.php?msd

Fatal error: Class 'SCA_Bindings_ms_ServiceDescriptionGenerator' not
found in /usr/local/php/lib/SCA_SDO-1.2.3/SCA/Bindings/message/
ServiceRequestHandler.php on line 49

I checked the line 49 in this file, and it looks like this:
SCA_Bindings_ms_ServiceDescriptionGenerator::generateMPD($service_description));

After that I browsed for the same file in the FULMAR branch you were
referring to (http://cvs.php.net/viewvc.cgi/pecl/sdo/SCA/Bindings/
message/ServiceRequestHandler.php?
hideattic=1&view=markup&pathrev=FULMAR), and found that the same line
looks different than the one in the SCA version we downloaded:

SCA_Bindings_message_ServiceDescriptionGenerator::generateMSD($service_description));

we downloaded the SCA_SDO stable version 1.2.3 from here:
http://pecl.php.net/package/SCA_SDO/

Again... thank you for your help
jpuerta
(Continue reading)

Matthew Peters | 4 Mar 2008 11:58

FULMAR released


I have built and released FULMAR as 1.2.4

The contents are:
# The ability to control the operations on a service interface through
a PHP interface
by specifying the PHP interface on the  <at> service annotation - e.g.
 <at> service MyServiceInterface
# PECL bug 11997 - don't remove xsi:type (except on top level soap
message or response)
# PECL bug 11996 - not showing LIBXML2 parse errors
# PECL bug 12193 - alphabetical order of namespaces causes failure
# PECL bug 12103 - saveString doesn't encode entities
# PECL bug 12443 - unable to access an XSD property containing a
hyphen (-)
# PECL bug 13101 - Repeated nill elements of extended type cause
"Parser found unknown element" exception
# Fix to add wsdl namespace prefix to element in WSDL, without which
it will not validate.
# Fix for Tuscany AccessViolation problem when serializing a DO
# Backward-compatible updates to SDO extension so that it will work
with PHP 5.3
# Backward-compatible updates to SCA so that it will work with PHP
5.3.
# Fix for failures that occur when using the soap extension - see
thread "SCA Webservice in WSDL mode"
# Substantial rework of the examples to illustrate more bindings - see
examples/SCA/index.html

Some of the regression tests are not working and I have made them
(Continue reading)

Matthew Peters | 4 Mar 2008 12:06

Re: Problems with message binding


Good, that sounds as if that has fixed the problem for you. How about
the second one - a blank line in the wsdl? Did you find the source of
the problem for that too?

You'll see I have just released 1.2.4, by the way.

Matthew

On Mar 3, 4:06 pm, jpuerta <jbpuer...@...> wrote:
> Hello Matthew...
>
> Thank you very much for your help...
> I tried the example you provided, but i was unable to get it to
> work...
> I still get the same error when I try this:
>
> http://yummyphpprojjpuerta/services/activemqtest/ReceivingService.php...
>
> Fatal error: Class 'SCA_Bindings_ms_ServiceDescriptionGenerator' not
> found in /usr/local/php/lib/SCA_SDO-1.2.3/SCA/Bindings/message/
> ServiceRequestHandler.php on line 49
>
> I checked the line 49 in this file, and it looks like this:
> SCA_Bindings_ms_ServiceDescriptionGenerator::generateMPD($service_description));
>
> After that I browsed for the same file in the FULMAR branch you were
> referring to (http://cvs.php.net/viewvc.cgi/pecl/sdo/SCA/Bindings/
> message/ServiceRequestHandler.php?
> hideattic=1&view=markup&pathrev=FULMAR), and found that the same line
(Continue reading)

Matthew Peters | 4 Mar 2008 17:54

And the new development branch is ...


... the UK's smallest songbird, GOLDCREST.

http://www.rspb.org.uk/wildlife/birdguide/name/g/goldcrest/index.asp
jpuerta | 5 Mar 2008 00:04
Picon

Re: Problems with message binding


Hi Matthew...

Unfortunately, we have still been unable to run a successful test with
the message binding...
The fatal error complaining about the class with "ms" in the name,
disappeared... creating the msd file works now, but trying with the
example you provided... we run the ReceivingService in one window, and
get the following output:

[root <at> was6testserver activemqtest]# /usr/local/php/bin/php
ReceivingService.php

Listener for queue://receiver has been started. To exit, press <Ctrl>
+ <C> ...

Activemq is running on another window...
But when we run the test client it still fails displaying the
following error:

Fatal error: Uncaught SCA_RuntimeException: Send Request Failed thrown
in /usr/local/php/lib/SCA_SDO/SCA/Bindings/message/Proxy.php on line
120

At this point we really don't know what we are doing wrong...
We installed activemq 5.0.0 on the localhost and on some other
server... but it made no difference

We are also still getting the blank line generating WSDLs and any
other XML file generated by sca, including the msd file... we still
(Continue reading)

Jack Zai | 5 Mar 2008 05:05
Picon
Favicon

Re: Problems with message binding


Hello,

The blank line in the WSDL may be caused by the carriage return at the
end of file 'php_sam.php' (PECL bug #11034).

In that case, i think you have used the current releases (1.1.0) of
SAM, and I am afeard this version does NOT support some features of
the message binding ( including the STOMP protocol ). Unfortunately,
i've no idea when the next release of SAM becomes available. in the
mean time, you may wish to try a patch file[1] and rebuild SAM
extension yourself. Good luck!

Jack

[1]  the patch file can be found at this link http://groups.google.co.uk/group/phpsam/files
(named sam_patch.txt), there is also a zip file contains the whole sam
folder with the latest sources code.

On 4 Mar, 23:04, jpuerta <jbpuer...@...> wrote:
> Hi Matthew...
>
> Unfortunately, we have still been unable to run a successful test with
> the message binding...
> The fatal error complaining about the class with "ms" in the name,
> disappeared... creating the msd file works now, but trying with the
> example you provided... we run the ReceivingService in one window, and
> get the following output:
>
> [root <at> was6testserver activemqtest]# /usr/local/php/bin/php
(Continue reading)

Matthew Peters | 6 Mar 2008 12:28

Re: Problems with message binding


Jack, thanks for this very timely and authoritative reposnse.

jp, if you want, I can try and build the version of the zip file that
Jack's posting refers to and make sure that our samples run with that
precise level. Or you can try it first. Let me know what you would
like. And...are you on Windows or Linux or something else?

Matthew

On Mar 5, 4:05 am, Jack Zai <za...@...> wrote:
> Hello,
>
> The blank line in the WSDL may be caused by the carriage return at the
> end of file 'php_sam.php' (PECL bug #11034).
>
> In that case, i think you have used the current releases (1.1.0) of
> SAM, and I am afeard this version does NOT support some features of
> the message binding ( including the STOMP protocol ). Unfortunately,
> i've no idea when the next release of SAM becomes available. in the
> mean time, you may wish to try a patch file[1] and rebuild SAM
> extension yourself. Good luck!
>
> Jack
>
> [1]  the patch file can be found at this linkhttp://groups.google.co.uk/group/phpsam/files
> (named sam_patch.txt), there is also a zip file contains the whole sam
> folder with the latest sources code.
>
> On 4 Mar, 23:04, jpuerta <jbpuer...@...> wrote:
(Continue reading)

Graham Charters | 6 Mar 2008 16:55

Re: FULMAR released


Rather tardy of me, but hopefully better late than never... Thanks for
doing this Matthew!

Regards, Graham.

On 4 Mar, 10:58, Matthew Peters <matthew.f.pet...@...>
wrote:
> I have built and released FULMAR as 1.2.4
>
> The contents are:
> # The ability to control the operations on a service interface through
> a PHP interface
> by specifying the PHP interface on the  <at> service annotation - e.g.
>  <at> service MyServiceInterface
> # PECL bug 11997 - don't remove xsi:type (except on top level soap
> message or response)
> # PECL bug 11996 - not showing LIBXML2 parse errors
> # PECL bug 12193 - alphabetical order of namespaces causes failure
> # PECL bug 12103 - saveString doesn't encode entities
> # PECL bug 12443 - unable to access an XSD property containing a
> hyphen (-)
> # PECL bug 13101 - Repeated nill elements of extended type cause
> "Parser found unknown element" exception
> # Fix to add wsdl namespace prefix to element in WSDL, without which
> it will not validate.
> # Fix for Tuscany AccessViolation problem when serializing a DO
> # Backward-compatible updates to SDO extension so that it will work
> with PHP 5.3
> # Backward-compatible updates to SCA so that it will work with PHP
(Continue reading)

jpuerta | 6 Mar 2008 19:16
Picon

Re: Problems with message binding


Hello Jack, Matthew...

I downloaded the zipfile, and successfully compiled Jack's version of
the sam extension...
But after loading the extension, php no longer works and we see a
segmentation fault in the logs, so I was unable to test the example...

I am testing all this on Linux...
We have
php 5.2.5
apache 2.2.6
activemq 5.0.0

Thanks
jpuerta

On 6 Mar, 07:28, Matthew Peters <matthew.f.pet...@...>
wrote:
> Jack, thanks for this very timely and authoritative reposnse.
>
> jp, if you want, I can try and build the version of the zip file that
> Jack's posting refers to and make sure that our samples run with that
> precise level. Or you can try it first. Let me know what you would
> like. And...are you on Windows or Linux or something else?
>
> Matthew
>
> On Mar 5, 4:05 am, Jack Zai <za...@...> wrote:
>
(Continue reading)


Gmane