[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: "Uh, what do I need this for" (was RE: XML.COM: How I Learne d to L

  • From: Al Snell <alaric@a...>
  • To: Michael Brennan <Michael_Brennan@a...>
  • Date: Wed, 22 Aug 2001 10:06:59 +0100 (BST)

php corba
On Tue, 21 Aug 2001, Michael Brennan wrote:

> Developers still need to write business logic, and they need to get the
> information from the XML document into data structures better suited to
> supporting that business logic. All of the APIs in the XML world are
> unsuited for this. They force the developer to mold their logic to fit an
> API that is only suited for modeling a document structure, rather than
> letting the developer mold their data structures and APIs to align with
> business concepts and processes.

Of course, any RPC system will provide this already :-)

See http://uk.php.net/manual/en/ref.satellite.php

That's the API for a PHP CORBA interface. This is how complex CORBA is to
use...

Assuming we have an IDL interface file reading:

                        interface MyInterface {
                            void SetInfo (string info);
                            string GetInfo();

                            attribute int value;
                        }

When we've installed the Satellite CORBA client library, we can write PHP
to access something with that interface like this:

			<?php
                        $obj = new OrbitObject ($ior);

                        $obj->SetInfo ("A 2GooD object");

                        echo $obj->GetInfo();

                        $obj->value = 42;

                        echo $obj->value;
                        ?>

$ior is the object reference - think URL.

That will handle exceptions, too. SOAP is not unique in being able to
differentiate exceptions from valid method returns!

You need a *lot* of libraries to get to that level in XML, much more
complex code than an IIOP client stub (which this is). Sure you can
hand-code a particular interface direct at the DOM level or by outputting
prewritten XML markup with the data inserted at the relevant points, but
why bother when you can install a library and have it done for you? You'll
need a lot of library code to parse the reply to your SOAP call anyway :-)

ABS

-- 
                               Alaric B. Snell
 http://www.alaric-snell.com/  http://RFC.net/  http://www.warhead.org.uk/
   Any sufficiently advanced technology can be emulated in software


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.