Added: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/ws/policy/GreeterImpl.java URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/ws/policy/GreeterImpl.java?view=auto&rev=561065 ============================================================================== --- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/ws/policy/GreeterImpl.java (added) +++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/ws/policy/GreeterImpl.java Mon Jul 30 10:49:46 2007 @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.servicemix.cxfbc.ws.policy; + +import javax.jws.WebService; + +import org.apache.cxf.greeter_control.AbstractGreeterImpl; + +/** + * + */ + [EMAIL PROTECTED](serviceName = "BasicGreeterService", + portName = "GreeterPort", + endpointInterface = "org.apache.cxf.greeter_control.Greeter", + targetNamespace = "http://cxf.apache.org/greeter_control") +public class GreeterImpl extends AbstractGreeterImpl { +}
Added: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/ws/policy/addr-external.xml URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/ws/policy/addr-external.xml?view=auto&rev=561065 ============================================================================== --- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/ws/policy/addr-external.xml (added) +++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/ws/policy/addr-external.xml Mon Jul 30 10:49:46 2007 @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<attachments xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsa="http://www.w3.org/2005/08/addressing"> + <wsp:PolicyAttachment> + <wsp:AppliesTo> + <wsa:EndpointReference> + <wsa:Address>http://localhost:9020/SoapContext/GreeterPort</wsa:Address> + </wsa:EndpointReference> + </wsp:AppliesTo> + <wsp:Policy> + <wsam:Addressing xmlns:wsam="http://www.w3.org/2007/02/addressing/metadata"> + <wsp:Policy/> + </wsam:Addressing> + </wsp:Policy> + </wsp:PolicyAttachment> +</attachments> Added: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/ws/policy/addr.xml URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/ws/policy/addr.xml?view=auto&rev=561065 ============================================================================== --- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/ws/policy/addr.xml (added) +++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/ws/policy/addr.xml Mon Jul 30 10:49:46 2007 @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:http="http://cxf.apache.org/transports/http/configuration" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation=" +http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd +http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> + + <http:conduit name="{http://cxf.apache.org/greeter_control}GreeterPort.http-conduit"> + <http:client DecoupledEndpoint="http://localhost:9999/decoupled_endpoint"/> + </http:conduit> + + <bean id="org.apache.cxf.ws.policy.PolicyEngine" class="org.apache.cxf.ws.policy.spring.InitializingPolicyEngine"> + <property name="bus" ref="cxf"/> + <property name="enabled" value="true"/> + </bean> + + <bean class="org.apache.cxf.ws.policy.attachment.external.ExternalAttachmentProvider"> + <constructor-arg ref="cxf"/> + <property name="location" value="org/apache/servicemix/cxfbc/ws/policy/addr-external.xml"/> + </bean> + +</beans> Added: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/ws/policy/xbean.xml URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/ws/policy/xbean.xml?view=auto&rev=561065 ============================================================================== --- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/ws/policy/xbean.xml (added) +++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/ws/policy/xbean.xml Mon Jul 30 10:49:46 2007 @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<beans xmlns:sm="http://servicemix.apache.org/config/1.0" + xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0" + xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0" + xmlns:test="urn:test" + xmlns:greeter="http://cxf.apache.org/greeter_control"> + + <sm:container id="jbi" embedded="true"> + + <sm:endpoints> + <cxfse:endpoint> + <cxfse:pojo> + <bean class="org.apache.servicemix.cxfbc.ws.policy.GreeterImpl" /> + </cxfse:pojo> + <cxfse:inInterceptors> + <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/> + </cxfse:inInterceptors> + <cxfse:outInterceptors> + <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/> + </cxfse:outInterceptors> + <cxfse:inFaultInterceptors> + <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/> + </cxfse:inFaultInterceptors> + <cxfse:outFaultInterceptors> + <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/> + </cxfse:outFaultInterceptors> + </cxfse:endpoint> + <cxfbc:consumer wsdl="/wsdl/greeter_control.wsdl" + targetEndpoint="GreeterPort" + targetService="greeter:BasicGreeterService" + targetInterface="greeter:Greeter" + busCfg="org/apache/servicemix/cxfbc/ws/policy/addr.xml" + > + <cxfbc:inInterceptors> + <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/> + </cxfbc:inInterceptors> + <cxfbc:outInterceptors> + <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/> + </cxfbc:outInterceptors> + <cxfbc:inFaultInterceptors> + <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/> + </cxfbc:inFaultInterceptors> + <cxfbc:outFaultInterceptors> + <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/> + </cxfbc:outFaultInterceptors> + </cxfbc:consumer> + </sm:endpoints> + + </sm:container> + +</beans> Added: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/xbean.xml URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/xbean.xml?view=auto&rev=561065 ============================================================================== --- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/xbean.xml (added) +++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/xbean.xml Mon Jul 30 10:49:46 2007 @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<beans xmlns:sm="http://servicemix.apache.org/config/1.0" + xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0" + xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0" + xmlns:test="urn:test" + xmlns:calculator="http://apache.org/cxf/calculator"> + + <sm:container id="jbi" embedded="true"> + + <sm:endpoints> + <cxfse:endpoint> + <cxfse:pojo> + <bean class="org.apache.cxf.calculator.CalculatorImpl" /> + </cxfse:pojo> + <cxfse:inInterceptors> + <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/> + </cxfse:inInterceptors> + <cxfse:outInterceptors> + <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/> + </cxfse:outInterceptors> + <cxfse:inFaultInterceptors> + <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/> + </cxfse:inFaultInterceptors> + <cxfse:outFaultInterceptors> + <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/> + </cxfse:outFaultInterceptors> + </cxfse:endpoint> + <cxfbc:consumer wsdl="/wsdl/calculator.wsdl" + targetEndpoint="CalculatorPort" + targetService="calculator:CalculatorService" + targetInterface="calculator:CalculatorPortType" + > + <cxfbc:inInterceptors> + <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/> + </cxfbc:inInterceptors> + <cxfbc:outInterceptors> + <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/> + </cxfbc:outInterceptors> + <cxfbc:inFaultInterceptors> + <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/> + </cxfbc:inFaultInterceptors> + <cxfbc:outFaultInterceptors> + <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/> + </cxfbc:outFaultInterceptors> + </cxfbc:consumer> + </sm:endpoints> + + </sm:container> + +</beans>
