表A.1に,ジョブ名,コピー部数及び両面片面の指定をもつPrint-Job要求の例を示す。
オクテット | シンボル値 | プロトコルフィールド |
0x0100 | 1.0 | version-number |
0x0002 | Print-Job | operation-id |
0x00000001 | 1 | request-id |
0x01 | start operation-attributes | operation-attributes-tag |
0x47 | charset type | value-tag |
0x0012 | name-length | |
attributes-charset | attributes-charset | name |
0x0008 | value-length | |
us-ascii | US-ASCII | value |
0x48 | natural-language type | value-tag |
0x001B | name-length | |
attributes-natural-language | attributes-natural-language | name |
0x0005 | value-length | |
en-us | en-US | value |
0x45 | uri type | value-tag |
0x000B | name-length | |
printer-uri | printer-uri | name |
0x001A | value-length | |
http://forest:631/pinetree | printer pinetree> | value |
0x42 | nameWithoutLanguage type | value-tag |
0x0008 | name-length | |
job-name | job-name | name |
0x0006> | value-length | |
foobar | foobar | value |
0x02 | start job-attributes | job-attributes-tag |
0x21 | integer type | value-tag |
0x0005 | name-length | |
copies | copies | name |
0x0004 | value-length | |
0x00000014 | 20 | value |
0x44 | keyword type | value-tag |
0x0005 | name-length | |
sides | sides | name |
0x0013 | value-length | |
two-sided-long-edge | two-sided-long-edge | value |
0x03 | end-of-attributes | end-of-attributes-tag |
%!PS... | <PostScript> | data |
表A.2に,Print-Job応答の成功した例を示す。
オクテット | シンボル値 | プロトコルフィールド |
0x0100 | 1.0 | version-number |
0x0000 | OK (successful) | status-code |
0x00000001 | 1 | request-id |
0x01 | start operation-attributes | operation-attributes-tag |
0x47 | charset type | value-tag |
0x0012 | name-length | |
attributes-charset | attributes-charset | name |
0x0008 | value-length | |
us-ascii | US-ASCII | value |
0x48 | natural-language type | value-tag |
0x001B | name-length | |
attributes-natural-language | attributes-natural-language | name |
0x0005 | value-length | |
en-us | en-US | value |
0x41 | textWithoutLanguage type | value-tag |
0x000E | name-length | |
status-message | status-message | name |
0x0002 | value-length | |
OK | OK | value |
0x02 | start job-attributes | job-attributes-tag |
0x21 | integer | value-tag |
0x0007 | name-length | |
job-id | job-id | name |
0x0004 | value-length | |
147 | 147 | value |
0x45 | uri type | value-tag |
0x0008 | name-length | |
job-uri | job-uri | name |
0x001E | value-length | |
http://forest:631/pinetree/123 | job 123 on pinetree | value |
0x25 | nameWithoutLanguage type | value-tag |
0x0008 | name-length | |
job-state | job-state | name |
0x0001 | value-length | |
0x03 | pending | value |
0x03 | end-of-attributes | end-of-attributes-tag |
表A.3に,Print-Job応答の失敗例を示す。この失敗は,プリンタが両面をサポートしてなく, コピー部数の値20をサポートしていないことによる。
オクテット | シンボル値 | プロトコルフィールド |
0x0100 | 1.0 | version-number |
0x0400 | client-error-bad-request | status-code |
0x00000001 | 1 | request-id |
0x01 | start operation-attributes | operation-attribute tag |
0x47 | charset type | value-tag |
0x0012 | name-length | |
attributes-charset | attributes-charset | name |
0x0008 | value-length | |
us-ascii | US-ASCII | value |
0x48 | natural-language type | value-tag |
0x001B | name-length | |
attributes-natural-language | attributes-natural-language | name |
0x0005 | value-length | |
en-us | en-US | value |
0x41 | textWithoutLanguage type | value-tag |
0x000E | name-length | |
status-message | status-message | name |
0x000D | value-length | |
bad-request | bad-request | value |
0x04 | start unsupported-attributes | unsupported-attributes tag |
0x21 | integer type | value-tag |
0x000C | name-length | |
job-k-octets | job-k-octets | name |
0x0004 | value-length | |
0x001000000 | 16777216 | value |
0x21 | integer type | value-tag |
0x0005 | name-length | |
copies | copies | name |
0x0004 | value-length | |
0x00000014 | 20 | value |
0x10 | unsupported (type) | value-tag |
0x0005 | name-length | |
sides | sides | name |
0x0000 | value-length | |
0x03 | end-of-attributes | end-of-attributes-tag |
表A.4に,コピー部数及びジョブ名のパラメタをもつPrint-URI要求の例を示す。
オクテット | シンボル値 | プロトコルフィールド |
0x0100 | 1.0 | version-number |
0x0003 | Print-URI | operation-id |
0x00000001 | 1 | request-id |
0x01 | start operation-attributes | operation-attributes-tag |
0x47 | charset type | value-tag |
0x0012 | name-length | |
attributes-charset | attributes-charset | name |
0x0008 | value-length | |
us-ascii | US-ASCII | value |
0x48 | natural-language type | value-tag |
0x001B | name-length | |
attributes-natural-language | attributes-natural-language | name |
0x0005 | value-length | |
en-us | en-US | value |
0x45 | uri type | value-tag |
0x000B | name-length | |
printer-uri | printer-uri | name |
0x001A | value-length | |
http://forest:631/pinetree | printer pinetree | value |
0x45 | uri type | value-tag |
0x000A | name-length | |
document-uri | document-uri | name |
0x11 | value-length | |
ftp://foo.com/foo | ftp://foo.com/foo | value |
0x42 | nameWithoutLanguage type | value-tag |
0x0008 | name-length | |
job-name | job-name | name |
0x0006 | value-length | |
foobar | foobar | value |
0x02 | start job-attributes | job-attributes-tag |
0x21 | integer type | value-tag |
0x0005 | name-length | |
copies | copies | name |
0x0004 | value-length | |
0x00000001 | 1 | value |
0x03 | end-of-attributes | end-of-attributes-tag |
表A.5に,パラメタも属性ももたないCreate-Job要求の例を示す。
オクテット | シンボル値 | プロトコルフィールド |
0x0100 | 1.0 | version-number |
0x0005 | Create-Job | operation-id |
0x00000001 | 1 | request-id |
0x01 | start operation-attributes | operation-attributes-tag |
0x47 | charset type | value-tag |
0x0012 | name-length | |
attributes-charset | attributes-charset | name |
0x0008 | value-length | |
us-ascii | US-ASCII | value |
0x48 | natural-language type | value-tag |
0x001B | name-length | |
attributes-natural-language | attributes-natural-language | name |
0x0005 | value-length | |
en-us | en-US | value |
0x45 | uri type | value-tag |
0x000B | name-length | |
printer-uri | printer-uri | name |
0x001A | value-length | |
http://forest:631/pinetree | printer pinetree | value |
0x03 | end-of-attributes | end-of-attributes-tag |
表A.6に,パラメタをもつが属性をもたないGet-Jobs要求の例を示す。
オクテット | シンボル値 | プロトコルフィールド |
0x0100 | 1.0 | version-number |
0x000A | Get-Jobs | operation-id |
0x00000123 | 0x123 | request-id |
0x01 | start operation-attributes | operation-attributes-tag |
0x47 | charset type | value-tag |
0x0012 | name-length | |
attributes-charset | attributes-charset | name |
0x0008 | value-length | |
us-ascii | US-ASCII | value |
0x48 | natural-language type | value-tag |
0x001B | name-length | |
attributes-natural-language | attributes-natural-language | name |
0x0005 | value-length | |
en-us | en-US | value |
0x45 | uri type | value-tag |
0x000B | name-length | |
printer-uri | printer-uri | name |
0x001A | value-length | |
http://forest:631/pinetree | printer pinetree | value |
0x21 | integer type | value-tag |
0x0005 | name-length | |
limit | limit | name |
0x0004 | value-length | |
0x00000032 | 50 | value |
0x44 | keyword type | value-tag |
0x0014 | name-length | |
requested-attributes | requested-attributes | name |
0x0006 | value-length | |
job-id | job-id | value |
0x44 | keyword type | value-tag |
0x0000> | additional value | name-length |
0x0008 | value-length | |
job-name | job-name | value |
0x44 | keyword type | value-tag |
0x0000 | additional value | name-length |
0x000F | value-length | |
document-format | document-format | value |
0x03 | end-of-attributes | end-of-attributes-tag |
表A.7に,三つのジョブをもつ要求からのGet-Jobs応答の例を示す。 プリンタは,2番目のジョブについて情報を返さない。
オクテット | シンボル値 | プロトコルフィールド |
0x0100 | 1.0 | version-number |
0x0000 | OK (successful) | status-code |
0x00000123 | 0x123 | request-id (echoed back) |
0x01 | start operation-attributes | operation-attribute-tag |
0x47 | charset type | value-tag |
0x0012 | name-length | |
attributes-charset | attributes-charset | name |
0x0008 | value-length | |
ISO-8859-1 | ISO-8859-1 | value |
0x48 | natural-language type | value-tag |
0x001B | name-length | |
attributes-natural-language | attributes-natural-language | name |
0x0005 |  : | value-length |
en-us | en-US | value |
0x41 | textWithoutLanguage type | value-tag |
0x000E | name-length | |
status-message | status-message | name |
0x0002 | value-length | |
OK | OK | value |
0x02 | start job-attributes (1st object) | job-attributes-tag |
0x48 | natural-language type | value-tag |
0x001B | name-length | |
attributes-natural-language | attributes-natural-language | name |
0x0005 | value-length | |
fr-CA | fr-CA | value |
0x21 | integer type | value-tag |
0x0006 | name-length | |
job-id | job-id | name |
0x0004 | value-length | |
147 | 147 | value |
0x42 | nameWithoutLanguage type | value-tag |
0x0008 | name-length | |
job-name | job-name | name |
0x0003 | name-length | |
fou | fou | name |
0x02 | start job-attributes (2nd object) | job-attributes-tag |
0x02 | start job-attributes (3rd object) | job-attributes-tag |
0x21 | integer type | value-tag |
0x0006 | name-length | |
job-id | job-id | name |
0x0004 | value-length | |
148 | 148 | value |
0x35 | nameWithLanguage | value-tag |
0x0008 |  : | name-length |
job-name | job-name | name |
0x0012 | value-length | |
0x0005 | sub-value-length | |
de-CH | de-CH | value |
0x0009 | sub-value-length | |
isch guet | isch guet | name |
0x03 | end-of-attributes | end-of-attributes-tag |