xpath - How to specify the service instance in an external WS-policy attachment file? -


i trying create ws-policy attachment file in order attach policy activity of particular process instance. have read endpoint reference(epr) should included in appliesto element problem don't know how specify process instance. following code attaches policy invoke activity for instances of process myprocess.

<wsp:policyattachment>   xmlns:wsp="http://schemas.xmlsoap.org/ws/2002/12/policy"   xmlns:q4b="http://www.example.com/q4b"   xmlns:ns="http://www.example.com/processes" <wsp:appliesto>    <q4b:process name="ns:myprocess" expressionlanguage="xpath1.0">      /process/inovoke[2]    </q4b:process> </wsp:appliesto> <wsp:policyreference>   uri="http://www.example.com/policies/mypolicy"/> </wsp:policyattachment> 

the appliesto element defines policy subject. includes new defined xml-type called q4b:process specifies name of process , includes xpath expression select second invoke activity of process. policyreference element reference policy attached.

in ws-policy attachement specification there example uses endpoint reference explanation says apply policy interactions endpoint. not want since policy applied specified instance of process , specified activity. using apache ode workflow engine.

the following example illustrates use of mechanism endpointreference domain expression deployed endpoint defined in web services addressing [ws-addressing core]:

(01) <wsp:policyattachment> (02)   <wsp:appliesto> (03)     <wsa:endpointreference> (04)       <wsa:address>http://www.example.com/acct</wsa:address> (05)     </wsa:endpointreference> (06)   </wsp:appliesto> (07)   <wsp:policyreference (08)      uri="http://www.example.com/policies#rmpolicy" /> (09) </wsp:policyattachment> 

in example, policy expression @ applies interactions endpoint.

ws-policy attachment specifications

ws-addressing specifications

thank time , effort.

you shouldn't use interface (the wsdl) define internal behavior of processes, acting exposing implementation. interfaces meant hide / encapsulate implementation consumer point of view.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -