[AG-DEV] Using gSOAP in the AG

Andrew A Rowley Andrew.Rowley at manchester.ac.uk
Mon Oct 9 04:08:30 CDT 2006


Hi,

You can now find the PHP (PEAR SOAP) code from:
http://people.man.ac.uk/~zzalsar4/tcpbridge/index.php.src

with the actual page for this being at:
http://people.man.ac.uk/~zzalsar4/tcpbridge/index.php

This code connects to a venue server and lists all the venues.  Then when you select a venue, it gets the addresses and starts a new bridge I have been working on (this probably won't work just now as I think the server is down).

The java code is available at:
http://people.man.ac.uk/~zzalsar4/ag3java/

with the jar of the class files at:
http://people.man.ac.uk/~zzalsar4/ag3java/ag3.jar

This code is not complete, but is the starting of a Venue SOAP proxy in Java.  Currently, it will allow you to get the venue state, enter and exit a venue, negotiate capabilities, and send heartbeat updates.

The Java code is self contained in that it doesn't need axis or anything to work.  It contains its own SOAPSerializer and SOAPDeserialiser classes - look at the code to see how this works.  Extension of this to other methods should be easy - just copy the examples of the Venue methods.  You will also need to look at the Venue WSDL to get the correct SOAP variables in the classes.

Let me know if you have any questions.  Also, if anyone extends this code with more classes, I would appreciate it if you send me this in return!

Andrew :)

============================================
Access Grid Support Centre,
RSS Group,
Manchester Computing,
Kilburn Building,
University of Manchester,
Oxford Road,
Manchester, 
M13 9PL, 
UK
Tel: +44(0)161-275 0685
Email: Andrew.Rowley at manchester.ac.uk 

> -----Original Message-----
> From: Thomas D. Uram [mailto:turam at mcs.anl.gov]
> Sent: 06 October 2006 18:15
> To: Andrew.Rowley at manchester.ac.uk
> Cc: ag-dev at mcs.anl.gov
> Subject: Re: [AG-DEV] Using gSOAP in the AG
> 
> Andrew:
> 
> Could you make your example code available somewhere?  Being able to
> code AG-interoperable software in languages other than Python opens the
> door to a lot of new, interesting development.  It'd be great if people
> had these examples at their fingertips.
> 
> Tom
> 
> 
> On 10/6/06 3:27 AM, Andrew A Rowley wrote:
> > Hi,
> >
> > I also have some code that can call AG Toolkit v3 from PHP(v4) and Java
> if anyone is interested.  I believe that PHP v5 is almost compatible
> directly, but in PHP 4 I was using PEAR-SOAP and you have to do some extra
> things here.  In Java, I just wrote my own SOAP serializer and
> deserializer so if anyone wants these, let me know and I will see what I
> can do about packaging them.
> >
> > Andrew :)
> >
> > ============================================
> > Access Grid Support Centre,
> > RSS Group,
> > Manchester Computing,
> > Kilburn Building,
> > University of Manchester,
> > Oxford Road,
> > Manchester,
> > M13 9PL,
> > UK
> > Tel: +44(0)161-275 0685
> > Email: Andrew.Rowley at manchester.ac.uk
> >
> >
> >> -----Original Message-----
> >> From: owner-ag-dev at mcs.anl.gov [mailto:owner-ag-dev at mcs.anl.gov] On
> Behalf
> >> Of Rhys Hawkins
> >> Sent: 06 October 2006 06:54
> >> To: ag-dev at mcs.anl.gov
> >> Subject: [AG-DEV] Using gSOAP in the AG
> >>
> >>
> >> Hi,
> >>
> >> AG SOAP interopability came up in the Asia-Pacific Townhall this
> morning
> >> so for
> >> people who are interested, I've put up some sample code that shows how
> to
> >> call
> >> AccessGrid services from gSOAP here:
> >>
> >>   http://sheriff.anu.edu.au/~rhys/GSOAP/index.html
> >>
> >> The test program just calls GetState on a Venue passed in on the
> >> commandline and
> >> prints the state to stdout. The entire WSDL is parsed so this program
> >> could be
> >> used as a template to do a whole lot more. I've left the
> reimplementation
> >> of
> >> the VenueServer in gSOAP as an exercise for the reader.
> >>
> >> Tested on Gentoo and Fedora Core 5 with gSOAP version 2.7.8c in both
> >> cases.
> >> I had to patch gSOAP to compile with gcc4, patch is attached.
> >>
> >> Cheers,
> >>     Rhys
> >>
> >>
> >
> >
> >




More information about the ag-dev mailing list