Hi Willem,

thanks for your reply. Find below my camel-config.xml: 

<beans xmlns="http://www.springframework.org/schema/beans"; 
  ...

<cxf:cxfEndpoint id="KraftfahrtService_2.5.0.1.1"
                address="/KraftfahrtService_2.5.0.1.1"
        
wsdlURL="BiPRO_2.5.0.1.1/KraftfahrtService/KraftfahrtService_2.5.0.1.1.wsdl">
        <cxf:features>
                  <p:policies enabled="true" />
                  <p:policies ignoreUnknownAssertions="false"/>
                </cxf:features>
                <cxf:properties>
                        <entry key="dataFormat" value="CXF_MESSAGE" />
                        <entry key="schema-validation-enabled" value="true" />
                </cxf:properties>
        </cxf:cxfEndpoint>

        
        <bean id="copyStrategy"
class="de.noname.services.bipro.sach.taa.CopyAggregationStrategy" />

        <camelContext xmlns="http://camel.apache.org/schema/spring";>

                <propertyPlaceholder id="properties"
location="classpath:kraft.properties"/>

                
                <endpoint id="tarifrechnerAufrufen"
                        
uri="{{tarifrechnerURL}}?soapAction=berechneEinzelTarifbeitrag" />

                <route>
                        <from uri="cxf:bean:KraftfahrtService_2.5.0.1.1" />
                        <to uri="log:BiPRORequest" />

                        <multicast strategyRef="copyStrategy">
                                <to uri="direct:copyRequest" />
                                <to uri="direct:normalRoute" />
                        </multicast>

                        <to uri="log:aggregated" />

                        <choice>
                                <when>
                        
<xpath>/soapenv:Envelope/soapenv:Body/biproTarif:getQuoteResponse</xpath>
                                        
                                <to 
uri="xslt://transformation/FilterResponse.xsl" />
                                <to uri="log:xslt" />
                                </when>

                                <camel:otherwise>
                                  <to
uri="xslt://transformation/TR_0.0.1_to_BiPRO_2.5.0.1.1/transformation.xsl"
/>
                                  <to uri="log:xslt" />
                                </camel:otherwise>
                        </choice>

                        <convertBodyTo type="javax.xml.transform.Source" />
                </route>

                <route>
                        <from uri="direct:copyRequest" />
                        <convertBodyTo type="java.lang.String" />
                        <to uri="log:requestCopy"/>
                </route>

                <route>
                        <from uri="direct:normalRoute" />
                        <to
                        
uri="xslt://transformation/BiPRO_2.5.0.1.1_to_TR_0.0.1/transformation.xsl"
/>
                        <to uri="log:xslt?showAll=true&amp;multiline=true" />

                        <to 
uri="xslt://transformation/ValidierungsFehlerHandling.xsl" />
                        <to uri="log:xslt?showAll=true&amp;multiline=true" />

                        <choice>
                                <when>
                                
<xpath>/soapenv:Envelope/soapenv:Body/biproTarif:getQuoteResponse</xpath>
                                        <to uri="log:xslt" />
                                </when>

                                <camel:otherwise>
                                        <to ref="tarifrechnerAufrufen" />
                                        <to uri="log:TRresponse" />
                                </camel:otherwise>
                        </choice>
                </route>
        </camelContext>
</beans>



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-CXF-and-WS-Policies-tp5757558p5757581.html
Sent from the Camel Development mailing list archive at Nabble.com.

Reply via email to