You are on page 1of 6

xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" ... <wsp:Policy> <wsp:Exactly ne> <wsse:!ec"rity#o$en> <wsse:#o$en#ype> wsse:%er&eros'(#)# </wsse:#o$en#ype> </wsse:!ec"rity#o$en> <wsse:!ec"rity#o$en> <wsse:#o$en#ype> wsse:*(09'+ </wsse:#o$en#ype> </wsse:!

ec"rity#o$en> </wsp:Exactly ne> </wsp:Policy>

Listing 1 A sample WS Policy.


<wsp:Policy ... > <wsp:Exactly ne> ,<wsp:-ll> , <assertion ...>... </assertion>./ </wsp:-ll> ./ </wsp:Exactly ne> </wsp:Policy>

Listing 2 Syntax for normal policy form.


<wsp:Policy> <wsp:Exactly ne> <wsp:-ll> <wsse:!ec"rity#o$en> <wsse:#o$en#ype> wsse:%er&eros'(#)# </wsse:#o$en#ype> </wsse:!ec"rity#o$en> <wsse:-lgorithm #ype ="wsse:-lg!ignat"re" 012="http://www.w+.org/2000/09/xmlenc3aes"/> </wsp:-ll> <wsp:-ll> <wsse:!ec"rity#o$en> <wsse:#o$en#ype> wsse:*(09'+ </wsse:#o$en#ype> </wsse:!ec"rity#o$en> <wsse:-lgorithm #ype ="wsse:-lgEncryption" 012="http://www.w+.org/2004/04/xmlenc3+5es6c&c"/> </wsp:-ll> </wsp:Exactly ne> </wsp:Policy>

Listing 3 Normal form of policy in Listing 1.


<wsp:Policy xml:&ase="http://www.plastics7s"pply.com/policies" ws":25="!ec"rity#o$ens" > <wsse:!ec"rity#o$en> <wsse:#o$en#ype> wsse:%er&eros'(#)# </wsse:#o$en#ype> </wsse:!ec"rity#o$en> <wsse:2ntegrity> <wsse:-lgorithm #ype="wsse:-lg!ignat"re" 012="http://www.w+.org/2000/09/xml5sig3rsa6sha4" /> </wsse:2ntegrity> </wsp:Policy>

Listing 4 Associating a policy expression with a U !.

<wsp:Policy> <wsse:!ec"rity#o$en wsp: ptional="tr"e" > <wsse:#o$en#ype> wsse:*(09'+ </wsse:#o$en#ype> </wsse:!ec"rity#o$en> </wsp:Policy>

Listing " #ompact policy expression $sing the %optional& attri'$te.


<wsp:Policy ws":25="to$ens" xmlns:wsp="..." xmlns:wsse="..."> <wsp:Exactly ne wsp:0sage="1e8"ire5"> <wsse:!ec"rity#o$en> <wsse:#o$en#ype> wsse:0sername#o$en </wsse:#o$en#ype> </wsse:!ec"rity#o$en> <wsse:!ec"rity#o$en> <wsse:#o$en#ype>wsse:x(09'+</wsse:#o$en#ype> </wsse:!ec"rity#o$en> <wsse:!ec"rity#o$en> <wsse:#o$en#ype>wsse:%er&eros'(!#</wsse:#o$en#ype> </wsse:!ec"rity#o$en> </wsp:Exactly ne> </wsp:Policy> <wsp:Policy ws":25="to$ens9ith!ignat"re" xmlns:wsp="..." xmlns:wsse="..."> <wsp:Policy1e:erence 012="3to$ens" /> <wsse:2ntegrity wsp:0sage="wsp:1e8"ire5"> ... </wsse:2ntegrity> </wsp:Policy> <wsp:Policy ws":25="to$ens9ithEncryption" xmlns:wsp="..." xmlns:wsse="..."> <wsp:Policy1e:erence 012="3to$ens" /> <wsse:;on:i5entiality wsp:0sage="1e8"ire5"> ... </wsse:;on:i5entiality> </wsp:Policy>

Listing ( eferencing policies.


<wsp:Policy xmlns:wsp="..." xmlns:wsse="..."> <wsse:!ec"rity#o$en wsp:0sage="wsp:1e8"ire5"> <wsse:#o$en#ype>wsse:%er&eros'(!#</wsse:#o$en#ype> </wsse:!ec"rity#o$en> <wsse:2ntegrity wsp:0sage="wsp:1e8"ire5"> <wsse:-lgorithm #ype="wsse:-lg!ignat"re" 012="http://www.w+.org/2000/09/xmlenc3aes" /> </wsse:2ntegrity> </wsp:Policy>

Listing ) An example $sing the % e*$ire+& $sage *$alifier.


<wsp:Policy xmlns:wsp="..." xmlns:wsse="..."> <wsse:!ec"rity#o$en wsp:0sage="wsp:1e<ecte5"> <wsse:#o$en#ype>wsse:%er&eros'(!#</wsse:#o$en#ype> </wsse:!ec"rity#o$en> <wsse:!ec"rity#o$en wsp:0sage="wsp:1e<ecte5"> <wsse:#o$en#ype>wsse:%er&eros'(#)#</wsse:#o$en#ype> </wsse:!ec"rity#o$en> </wsp:Policy>

Listing , An example $sing the % e-ecte+& $sage *$alifier.

<wsp:Policy xmlns:wsp="..." xmlns:wsse="..."> <wsse:!ec"rity#o$en wsp:0sage="wsp: ptional"> <wsse:#o$en#ype>wsse:0sername#o$en</wsse:#o$en#ype> </wsse:!ec"rity#o$en> <wsse:!ec"rity#o$en wsp:0sage="wsp: ptional"> <wsse:#o$en#ype>wsse:x(09'+</wsse:#o$en#ype> </wsse:!ec"rity#o$en> </wsp:Policy>

Listing . An example $sing the %/ptional& $sage *$alifier.


<wsp:Policy ws":i5="P4"...> <wsp:Exactly ne> <wsp:-ll> <!ec"rity-ssertion/> </wsp:-ll> <wsp:-ll> <1elia&le=essaging-ssertion/> </wsp:-ll> </wsp:Exactly ne> </wsp:Policy>

Listing 10 So$rce policy P1.

<wsp:Policy ws":i5="P2"...> <wsp:Exactly ne> <wsp:-ll> <#ransaction-ssertion/> </wsp:-ll> <wsp:-ll> <-"5it-ssertion/> </wsp:-ll> </wsp:Exactly ne> </wsp:Policy>

Listing 11 So$rce policy P2.

<wsp:Policy ws":25="P+"...> <wsp:Exactly ne> <wsp:-ll> <!ec"rity-ssertion/> <#ransaction-ssertion/> </wsp:-ll> <wsp:-ll> <!ec"rity-ssertion/> <-"5it-ssertion/> </wsp:-ll> <wsp:-ll> <1elia&le=essaging-ssertion/> <#ransaction-ssertion/> </wsp:-ll> <wsp:-ll> <1elia&le=essaging-ssertion/> <-"5it-ssertion/> </wsp:-ll> </wsp:Exactly ne> </wsp:Policy>

Listing 12 1erge+ policy P3.

<wsp:Policy ws":25="Pro'i5er7Policy"...> <wsp:Exactly ne> <wsp:-ll> <!ec"rity-ssertion le'el="high"/> <1elia&le=essaging-ssertion/> </wsp:-ll> <wsp:-ll> <ns!ec"rity-ssertion le'el="me5i"m"/> <ns#ransaction-ssertion/> </wsp:-ll> </wsp:Exactly ne> </wsp:Policy>

Listing 13 Ser2ice pro2i+er policy.


<wsp:Policy ws":25="1e8"estor7Policy"...> <wsp:Exactly ne> <wsp:-ll> <!ec"rity-ssertion/> <1elia&le=essaging-ssertion timeo"t="400" retries="+"/> </wsp:-ll> </wsp:Exactly ne> </wsp:Policy>

Listing 14 Ser2ice re*$estor policy.


<wsp:-ll> <!ec"rity-ssertion le'el="high/> <!ec"rity-ssertion/> <1elia&le=essaging-ssertion timeo"t="400" retries="+"/> <1elia&le=essaging-ssertion/> </wsp:-ll>

Listing 1" !ntersecte+ policy.


<>xml 'ersion="4.0">> <ws5l:5e:initions name="!hipment" target?amespace="http://shipco.com/shipment/shipment/&in5ing" xmlns:tns="http://shipco.com/shipment/shipment/&in5ing" xmlns:ship="http://shipco.com/shipment" xmlns:ws5l=http://schemas.xmlsoap.org/ws5l/ xmlns:rmp="http://schemas.xmlsoap.org/ws/200(/02/rm/policy" xmlns:sp="http://schemas.xmlsoap.org/ws/200(/0@/sec"ritypolicy" xmlns:ws5l="http://schemas.xmlsoap.org/ws5l/" xmlns:wsoap42="http://schemas.xmlsoap.org/ws5l/soap42/" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:ws"="http://5ocs.oasis6open.org/wss/2004/04/oasis62004046wsswssec"rity6 "tility64.0.xs5" > <wsp:Policy ws":25="1mPolicy" > <rmp:1=-ssertion> <rmp:2nacti'ity#imeo"t =illisecon5s="A00000" /> <rmp:Base1etransmission2nter'al =illisecon5s="+000" /> <rmp:ExponentialBac$o:: /> <rmp:-c$nowle5gement2nter'al =illisecon5s="200" /> </rmp:1=-ssertion> </wsp:Policy> <wsp:Policy ws":25="!ec"re=essagePolicy" > <sp:!igne5Parts> <sp:Bo5y /> </sp:!igne5Parts> <sp:Encrypte5Parts> <sp:Bo5y /> </sp:Encrypte5Parts> <ws5l:import namespace="http://shipco.com/shipment/shipment" location="http://shipco.com/shipment/shipment.ws5l" /> <ws5l:&in5ing name="!hipmentC"ote!oapBin5ing" type="ship:C"ote" > <wsoap42:&in5ing style="5oc"ment" transport="http://schemas.xmlsoap.org/soap/http" /> <wsp:Policy1e:erence 012="31mPolicy" ws5l:re8"ire5="tr"e" /> <ws5l:operation name=")et!hipmentPrice" >

<wsoap42:operation soap-ction="="http://shipco.com/shipment/C"ote/)et!hipmentPrice1e8"est" /> <ws5l:inp"t> <wsoap42:&o5y "se="literal" /> <wsp:Policy1e:erence 012="3!ec"re=essagePolicy" ws5l:re8"ire5="tr"e" /> </ws5l:inp"t> <ws5l:o"tp"t> <wsoap42:&o5y "se="literal" /> <wsp:Policy1e:erence 012="3!ec"re=essagePolicy" ws5l:re8"ire5="tr"e" /> </ws5l:o"tp"t> </ws5l:operation> </ws5l:&in5ing> </ws5l:5e:initions>

Listing 1( WS3L +efinition referencing policies.


<wsp:Policy xmlns:sp="http://schemas.xmlsoap.org/ws/200(/0@/sec"ritypolicy" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:ws"="http://5ocs.oasis6open.org/wss/2004/04/oasis62004046wsswssec"rity6 "tility64.0.xs5" ws":25="!ec"re=essagePolicy" > <sp:!igne5Parts> <sp:Bo5y /> </sp:!igne5Parts> <sp:Encrypte5Parts> <sp:Bo5y /> </sp:Encrypte5Parts> </wsp:Policy>

Listing 1) 4ffecti2e policy for part of the WS3L +efinition in Listing 1(.
<wsp:Policy-ttachment xmlns:wsp=" http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/0D/a55ressing"> <wsp:-pplies#o> <wsa:En5point1e:erence xmlns:plastics="..." > <wsa:-55ress> http://plastics7s"pply.com/acct </wsa:-55ress> <wsa:Port#ype> plastics:2n'entoryPort#ype </wsa:Port#ype> <wsa:!er'ice?ame> plastics:2n'entory!er'ice </wsa:!er'ice?ame> </wsa:En5point1e:erence> </wsp:-pplies#o> <wsp:Policy1e:erence 012="http://plastics7s"pply.com/acct6policies.xml /> </wsp:Policy-ttachment>

Listing 1, Sample external policy attachment.

<wsag:-greement ::er -greement25=E)oo5s#ransportation;apacity42+E>

<wsag:?ame>!"pplemental-greementFollows2nGecem&er</wsag:?ame> <wsag:;ontext> <wsag:-greement2nitiator> http://www.logistics6c"stomer.com/ </wsag:-greement2nitiator> <wsag:-greement1espon5er> http://www.e6logistics7pro'i5er.com/ </wsag:-greement1espon5er> <wsag:!er'icePro'i5er>-greement1espon5er</wsag:!er'icePro'i5er> <wsag:Expiration#ime>200(6446+0#44:00:00.00060(:00</wsag:Expiration#ime> H </wsag:;ontext> <wsag:#erms> <wsag:-ll> <wsag:!er'iceGescription#erm name=E)oo5s#ransportation!er'ice2nter:aceE H > H </wsag:!er'iceGescription#erm> <wsag:!er'iceGescription#erm name=E H E H> H </wsag:!er'iceGescription#erm> <wsag:Exactly ne> <wsag:)"arantee#erm name=E)oo5s#ransportation1esponse#imeE H > H <wsag:C"ali:ying;on5ition> <exp:-n5> <#ransportation:B"sinessIo"rs/> <exp:Jess> <exp:Karia&le>1e8"est1ate</exp:Karia&le> <exp:Kal"e>20</exp:Karia&le> </exp:Jess> </exp:-n5> </wsag:C"ali:ying;on5ition> H </wsag:)"arantee#erm> <wsag:)"arantee#erm name=E H E H> H </wsag:)"arantee#erm> </wsag:Exactly ne> H </wsag:-ll> </wsag:#erms> </wsag:-greement ::er>

Listing 1. Str$ct$re of a WS5Agreement offer.

You might also like