Printer Services Mail Archive: PS> RE: Throwing exceptions
PS> RE: Throwing exceptions
From: Harry Lewis (
harryl@us.ibm.com)
Date: Thu Sep 19 2002 - 16:47:37 EDT
Next message: HALL,DAVID (HP-Vancouver,ex1): "PS> RE: Throwing exceptions"
OK, thanks for that clarification. Related question...
In the TargetDeviceSupportInterface the operation GetNextJob "throws and exception" if no job is available for the target device. I assume, then, this is a SOAP "fault"? If so, is this really what we want? The design is polling from target device to print service. In this case won't "no job available" be the more likely case? Or, are we suggesting (via the scenarios) that the target device isn't expected to poll unless having been asked to out of band by a client (implying there SHOULD be a job present... thus the "fault")?
----------------------------------------------
Harry Lewis
IBM Printing Systems
----------------------------------------------
| "HALL,DAVID (HP-Vancouver,ex1)" <dhall@hp.com>
09/19/2002 10:33 AM
|
To: Harry Lewis/Boulder/IBM@IBMUS, "HALL,DAVID (HP-Vancouver,ex1)" <dhall@hp.com>
cc: ps@pwg.org, "BERKEMA,ALAN C (HP-Roseville,ex1)" <alan_berkema@hp.com>
Subject: RE: Throwing exceptions
|
We are rapidly approaching a working PSI prototype that will be able to "throw exceptions" from the method calls. They are known as "soap faults"...
Our current methods don't "throw exceptions" in the XML string parameters that are returned, it was an unfortunate naming of the return paramater - "ExceptionAttributes" that is now named "UnsupportedAttributes". Returning "UnsupportedAttributes" does not mean that an error has occured, rather that some requested attributes are not supported by the service.
We will be throwing "faults" from the soap calls...
Hopefully this is clearer now..
:)
Dave
-----Original Message-----
From: Harry Lewis [mailto:harryl@us.ibm.com]
Sent: Thursday, September 19, 2002 9:22 AM
To: HALL,DAVID (HP-Vancouver,ex1)
Cc: ps@pwg.org; alan_berkema@hp.com
Subject: Throwing exceptions
How to throw an exception form a SOAP method.
I see this in the spec as a question ... "DHall - define exactly how to throw an exception from a SOAP method" section 5.3.1.
Our current definition packages exceptions as a multi XML string parm set in the return. Is this our conscious resolution to PSI exceptions? Have we considered throwing exceptions, independently, across the web services interface?
----------------------------------------------
Harry Lewis
IBM Printing Systems
----------------------------------------------
This archive was generated by hypermail 2b29
: Thu Sep 19 2002 - 16:47:49 EDT