ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ws-dev
ws-dev
Re: Design decision
by Paul Prescod other posts by this author
Nov 21 2001 5:02AM messages near this date
view in the new Beta List Site
Re: Design decision | Re: Design decision
Rich Salz wrote:
>  
> ...
>  It seems like it would be pretty trivial to layer one API on top of the
>  other.  Haven't I heard that phrase "there's more than one way to do it"
>  somewhere before?

Don't encourage them!

Gisle and I discussed it more and came up with an idea that I think is
okay.

$foo-> Ports  # list of ports
$foo-> Port(...) # find a port by name and namespace

They look similar but the big differences are:

 1. -> Ports is a list, not a single port
 2. -> Ports returns the ports in THIS WSDL. ->Port("...") finds a port
in any included or imported WSDL

Arguably Port(....) could be called findPort or resolvePort but the bare
name seemed clear enough.

 Paul Prescod
_______________________________________________
Ws-dev mailing list
Ws-dev@[...].com
http://listserv.ActiveState.com/mailman/listinfo/ws-dev
Thread:
Paul Prescod
Cameron Laird
Paul Prescod
Chris Radcliff
Rich Salz
Paul Prescod
Paul Kulchenko
Paul Prescod
Paul Prescod

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved