It is essential that we have a *perfect* implementation of APP here and that it is clearly documented and /matches the documentation/!

We have deliberately avoided the UDDI crowd here... so we can't afford to annoy the REST community by bodging APP :)

Paul

Glen Daniels wrote:
Hi Deepal, all:

Deepal Jayasinghe wrote:
Are we not using Abdera on the client side?
We do.

Yep - and upon further research into the code it looks like we haven't paid much attention to the protocol design we did earlier:

http://wso2.org/wiki/display/registry/Registry+Protocol

Not only do we have the non-APP-ish use of POST to non-existent URLs (in order to create them), but for instance to tag, we seem to do a PUT of an Atom entry representing the tag to the resource URL - shouldn't that be a POST to "...resource;tags"?

(Looks like we are given the user agent header.) So doesn't Abdera do
the right thing for this??

Abdera is apparently a little (too?) flexible about this kind of stuff.

Also, I noticed that in the code below we connect to the registry at
one URL but the base URL for the Atom stuff has "/atom" added to the
reg URL passed in. Is that right? Should we not say the base URL is
.../wso2registry/atom instead?
We can do that . But I intentionally implement the code to give the URL
of the registry not the URL of the ATOM. Because user does not want to
know whether we use APP or not , he just need a remote API to talk to a
registry.  So I personally do not like to provide /atom when we give the
url.

+1 to not providing /atom when we give the URL. But -1 to tacking it on in the first place. There is no need for the registry API to make any assumptions about the URL except that it's rooted wherever we're told. In other words - shouldn't I be able to say:

Registry R1 = new RemoteRegistry("http://myhost/regRoot";);
Registry R2 = new RemoteRegistry("http://myhost/regRoot/subDir";);

...and have both R1 and R2 work? Isn't this how we're expecting to use this for things like Synapse/Axis2 repositories?

new RemoteRegistry("http://registrySite/registry/finance/axis2repo";);

Thoughts?

--Glen

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev


--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

Office: +1 646 290 8050
Cell: +44 798 447 4618

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev

Reply via email to