Hi !
Thanks a lot , i think i will try one more time with this. I agree on the
word weired, but i tried now with the wsdlfirst example. And it works like
this:
<bean id="debugInterceptor"
class="org.springframework.aop.interceptor.DebugInterceptor" />
<bean id="personProxy"
class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces">
<list>
<value>org.apache.servicemix.samples.wsdl_first.ServiceContext</value>
<value>
org.apache.servicemix.samples.wsdl_first.Person
</value>
</list>
</property>
<property name="target">
<ref bean="personService" />
</property>
<property name="interceptorNames">
<value>debugInterceptor</value>
</property>
</bean>
<bean id="personService"
class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
<jsr181:endpoint wsdlResource="classpath:person.wsdl"
pojo="#personProxy" style="document" annotations="jsr181"
typeMapping="jaxb2"
serviceInterface="org.apache.servicemix.samples.wsdl_first.Person" />
fordan wrote:
>
> Hi !
>
> I finally did like this, but i also created a subclass of ProxtFactoryBean
> with the required annotation and it works. But i want to verify first if i
> remove excplicits if still works or. I haved tried many different similiar
> solution. I am glad that it works now. Tanks a lot Daniel
>
> gnodet wrote:
>>
>> If you explicitly set the annotations, typeMapping
>> and serviceInterface class, the pojo class itself is not used,
>> so it work if you use a proxy.
>> Something like:
>>
>> <jsr181:endpoint pojo="#service"
>>
>> wsdlResource="classpath:org/apache/servicemix/itests/person.wsdl"
>> style="document"
>> annotations="java5"
>> typeMapping="jaxb2"
>>
>> serviceInterface="org.apache.servicemix.samples.wsdl_first.Person" />
>>
>>
>> On 12/18/06, Guillaume Nodet <[EMAIL PROTECTED]> wrote:
>>> Have you tried removing the proxyInterfaces property to
>>> force spring to use CGLIB proxy to proxy the class instead
>>> of using the standard java proxies ?
>>> I 'm not sure that it will even work, but it's worth the try.
>>>
>>> On 12/18/06, fordan <[EMAIL PROTECTED]> wrote:
>>> >
>>> > Hi !
>>> >
>>> > Can anyone help this. While debuging, i found out that the annotations
>>> is
>>> > reflected at all.
>>> > It must be something with the proxyhandling. I seems to something
>>> wrong the
>>> > way spring does.
>>> > Anyone tried to this before?
>>> >
>>> > Thanks a lot
>>> >
>>> >
>>> > fordan wrote:
>>> > >
>>> > > Hi !
>>> > >
>>> > > I got some problem , Can anyone Help ? Thanks Daniel
>>> > >
>>> > > when using an aop Proxy like this:
>>> > >
>>> > > Springbean.xml:
>>> > >
>>> > > <bean id="myService"
>>> > > class="org.springframework.aop.framework.ProxyFactoryBean">
>>> > > <property name="proxyInterfaces">
>>> > > <value>
>>> > > someinterface
>>> > > </value>
>>> > > </property>
>>> > > <property name="target">
>>> > > <ref bean="implClass" />
>>> > > </property>
>>> > > <property name="interceptorNames">
>>> > > <list>
>>> > > <value>someInterceptor1</value>
>>> > > <value>someInterceptor1</value>
>>> > > <value>someInterceptor1</value>
>>> > > <value>someInterceptor1</value>
>>> > > </list>
>>> > > </property>
>>> > > </bean>
>>> > >
>>> > > <bean id="implClass"
>>> > > class="my.implClass" >
>>> > > <property name="someProperty" value="someValue" />
>>> > > </bean>
>>> > >
>>> > > xbean :
>>> > >
>>> > > <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
>>> > > <import resource="classpath:Springbean.xml" />
>>> > > <jsr181:endpoint pojo="#myService"
>>> wsdlResource="classpath:some.wsdl"
>>> > > style="wrapped" />
>>> > > </beans>
>>> > >
>>> > > error while invoking service:
>>> > >
>>> > > INFO - DefaultFaultHandler - Fault occurred!
>>> > > org.codehaus.xfire.fault.XFireFault: Invalid operation:
>>> > > {http://www.my/ws/impl}GetSomething
>>> > > at
>>> > >
>>> org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:41)
>>> > > at
>>> > >
>>> org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
>>> > > at
>>> > >
>>> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
>>> > > at
>>> > >
>>> org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
>>> > > at
>>> > >
>>> org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
>>> > > at
>>> > >
>>> org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:109)
>>> > > at
>>> > >
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:490)
>>> > > at
>>> > >
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:442)
>>> > > at
>>> > >
>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>> > > at
>>> > >
>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>> > > at
>>> > >
>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
>>> > > at
>>> > >
>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
>>> > > at
>>> > >
>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>> > > at
>>> > >
>>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
>>> > > at
>>> > >
>>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
>>> > > at java.lang.Thread.run(Thread.java:595)
>>> > >
>>> > >
>>> >
>>> > --
>>> > View this message in context:
>>> http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7927539
>>> > Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>> >
>>> >
>>>
>>>
>>> --
>>> Cheers,
>>> Guillaume Nodet
>>>
>>
>>
>> --
>> Cheers,
>> Guillaume Nodet
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Invalid-operation-while-invoking-a-JSR181-endpoint-tf2822150s12049.html#a7986644
Sent from the ServiceMix - User mailing list archive at Nabble.com.