perfsonar-dev - Re: [pS-dev] hierarchy of URL eventTypes
Subject: perfsonar development work
List archive
- From: michael <>
- To: Antoine Delvaux <>
- Cc: "Jeff W. Boote" <>, perfSONAR developers <>, Piotr Pikusa <>, Slawomir Trzaszczka <>, Szymon Trocha <>, "" <>
- Subject: Re: [pS-dev] hierarchy of URL eventTypes
- Date: Tue, 10 Nov 2009 14:23:20 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=cIVLSB7mX4rDd/jpaLdflWLlBizDZyyej2rW7u0p787KMWG+++17KVVHMIRL5cbMK0 CjlhkyHarvLS+Q138pzRndTcd+slFdTUkael6YZ81f2vsDuEQu4u+5KzMN/SJp2KRRSB WOEhrqohR5EhsmKk0SOHMQ7EK83sqvx430KmU=
Hello all,
Antoine, while I'm all for avoiding duplication I'm not sure I'm a fan of coupling either.
While current usage is all soap-over-http it doesn't mean there might not be a future
use-case where the option of using an other transport protocol for SOAP is preferred.
By using the http status codes you tie/(tightly) couple the protocol to http.
From a practical point of view it might also not be the way to go as developers at the
moment are insulated from having to bother with the http layer
SOAP itself also has 'status' part, which probably triggers similar reservations.
Best regards,
Michael
Antoine Delvaux wrote:
Hi Slawomir, Jeff, All,
Yes, this is good we discuss all that, thanks for initiating discussion Slawek.
Jeff, I like your view about making things as simple as possible for the client, this will make the protocol simpler, I guess this is all what we want to achieve. I also like your idea to mimic HTTP status messages.
However, I don't understand why we need another layer on top of the existing HTTP status messages, but maybe it's because I'm not that familiar with pS protocol, bear with me then. Couldn't we use HTTP status messages and add to it more description to the result code. A full response (including HTTP headers) would then be something like:
_Success example_:
HTTP/1.1 200 Ok
Content-Type:"text/xml"; Charset="utf-8"
Content-Length: nnnn
<nmwg:message type="EchoResponse">
<nmwg:metadata id="resultCodeMetadata">
<nmwg:eventType>echo</nmwg:eventType>
</nmwg:metadata>
<nmwg:data metadataIdRef="resultCodeMetadata">
<nmwgr:datum>This is the echo response from the service.</ nmwgr:datum>
</nmwg:data>
</nmwg:message>
_Error example_:
HTTP/1.1 500 Internal Server Error
Content-Type: "text/xml"; Charset="utf-8"
Content-Length: nnnn
<nmwg:message type="EchoResponse">
<nmwg:metadata id="resultCodeMetadata">
<nmwg:eventType>not implemented</nmwg:eventType>
</nmwg:metadata>
<nmwg:data metadataIdRef="resultCodeMetadata">
<nmwgr:datum>EchoResponse command doesn't exist.</nmwgr:datum>
</nmwg:data>
</nmwg:message>
On a side note, except for the sake of coherence between requests and answers, I don't see the need to use URL in eventType naming. IMHO, it seems to me that URN would be more suited in this situation. Or is there some convention in OGF that it's best to use URL?
Best regards,
Antoine.
Le 8 nov. 2009 à 08:36, Jeff W. Boote a écrit :
- Re: [pS-dev] hierarchy of URL eventTypes, Slawomir Trzaszczka, 11/05/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Piotr Pikusa, 11/05/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Jeff W. Boote, 11/08/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Slawomir Trzaszczka, 11/09/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Piotr Pikusa, 11/09/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Roman Lapacz, 11/09/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Nina Jeliazkova, 11/09/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Roman Lapacz, 11/09/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Nina Jeliazkova, 11/09/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Antoine Delvaux, 11/09/2009
- Re: [pS-dev] hierarchy of URL eventTypes, michael, 11/10/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Antoine Delvaux, 11/11/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Piotr Pikusa, 11/12/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Slawomir Trzaszczka, 11/12/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Piotr Pikusa, 11/12/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Antoine Delvaux, 11/11/2009
- Re: [pS-dev] hierarchy of URL eventTypes, michael, 11/10/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Jason Zurawski, 11/09/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Roman Lapacz, 11/10/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Jeff W . Boote, 11/13/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Roman Lapacz, 11/16/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Jeff W . Boote, 11/13/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Roman Lapacz, 11/10/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Jeff W. Boote, 11/08/2009
- Re: [pS-dev] hierarchy of URL eventTypes, Piotr Pikusa, 11/05/2009
Archive powered by MHonArc 2.6.16.