You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Scott Finnie <sc...@gmail.com> on 2013/09/11 19:57:10 UTC

[newbie]: wrong service method being called?

Hello all

First time cxf user so apologies upfront if I've missed something obvious / done something stupid.

I've generated & built stock client & server using wsdl2java.  Server deploys in tomcat OK and can run client: however 
the wrong server methods are being invoked.  For example:

  - client log:
      [java] Testing searchForProperty...
      [java] searchForProperty.result=null
      [java] Testing retrieveProperty...
      [java] retrieveProperty.result=null

  - server log:
	11-Sep-2013 18:18:24 com.xx.FLWebInterfaceImpl retrieveMyCases
	INFO: Executing operation retrieveMyCases
	11-Sep-2013 18:18:24 com.xx.FLWebInterfaceImpl retrieveMyCases
	INFO: Executing operation retrieveMyCases

Don't understand why 'retrieveMyCases' is being called - it should be 'searchForProperty' and 'retrieveProperty' 
respectively.  Assume there's something screwed in marshalling/mapping but don't know where to start looking.

Haven't changed any of the core files, they are as generated by wsdl2java.  Only change I've made is to move 
FLWebInterfaceImpl.java & FLWebInterface_FL_Client.java into other dirs so they're separated from the other generated files.

Project is built from a modified version of the auto-generated ant build.xml, can post if that helps.

Env is cxf 2.7.6 on mac 10.7 / java 1.6.0_51 / tomcat 6.0.37.

Thanks for any help.

  - Scott.

Re: [newbie]: wrong service method being called?

Posted by Scott Finnie <sc...@gmail.com>.
Hi Freeman, thanks for the response.

I can't post the wsdl I'm afraid - it's a proprietary product and I don't have permission to put the wsdl into the 
public domain.

I had to get something delivered quickly so have resorted to a "no frills" approach, manually creating/sending/receiving 
the soap messages.  Not an elegant or sustainable solutiom - but one that's good enough for now.

Thanks anyway for your offer of help.

regards,
Scott.

On 12/09/2013 03:27, Freeman Fang wrote:
> Hi,
>
> Please post your wsdl here, it's possible that the wsdl is using bare mode and several operation actually share same arguments so CXF can't really tell the difference when handle the incoming request.
> -------------
> Freeman(Yue) Fang
>
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Web: http://fusesource.com | http://www.redhat.com/
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
> http://blog.sina.com.cn/u/1473905042
> weibo: @Freeman小屋
>
>
>
> On 2013-9-12, at 上午1:57, Scott Finnie wrote:
>
>> Hello all
>>
>> First time cxf user so apologies upfront if I've missed something obvious / done something stupid.
>>
>> I've generated & built stock client & server using wsdl2java.  Server deploys in tomcat OK and can run client: however the wrong server methods are being invoked.  For example:
>>
>> - client log:
>>      [java] Testing searchForProperty...
>>      [java] searchForProperty.result=null
>>      [java] Testing retrieveProperty...
>>      [java] retrieveProperty.result=null
>>
>> - server log:
>> 	11-Sep-2013 18:18:24 com.xx.FLWebInterfaceImpl retrieveMyCases
>> 	INFO: Executing operation retrieveMyCases
>> 	11-Sep-2013 18:18:24 com.xx.FLWebInterfaceImpl retrieveMyCases
>> 	INFO: Executing operation retrieveMyCases
>>
>> Don't understand why 'retrieveMyCases' is being called - it should be 'searchForProperty' and 'retrieveProperty' respectively.  Assume there's something screwed in marshalling/mapping but don't know where to start looking.
>>
>> Haven't changed any of the core files, they are as generated by wsdl2java.  Only change I've made is to move FLWebInterfaceImpl.java & FLWebInterface_FL_Client.java into other dirs so they're separated from the other generated files.
>>
>> Project is built from a modified version of the auto-generated ant build.xml, can post if that helps.
>>
>> Env is cxf 2.7.6 on mac 10.7 / java 1.6.0_51 / tomcat 6.0.37.
>>
>> Thanks for any help.
>>
>> - Scott.
>


Re: [newbie]: wrong service method being called?

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

Please post your wsdl here, it's possible that the wsdl is using bare mode and several operation actually share same arguments so CXF can't really tell the difference when handle the incoming request.
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋



On 2013-9-12, at 上午1:57, Scott Finnie wrote:

> Hello all
> 
> First time cxf user so apologies upfront if I've missed something obvious / done something stupid.
> 
> I've generated & built stock client & server using wsdl2java.  Server deploys in tomcat OK and can run client: however the wrong server methods are being invoked.  For example:
> 
> - client log:
>     [java] Testing searchForProperty...
>     [java] searchForProperty.result=null
>     [java] Testing retrieveProperty...
>     [java] retrieveProperty.result=null
> 
> - server log:
> 	11-Sep-2013 18:18:24 com.xx.FLWebInterfaceImpl retrieveMyCases
> 	INFO: Executing operation retrieveMyCases
> 	11-Sep-2013 18:18:24 com.xx.FLWebInterfaceImpl retrieveMyCases
> 	INFO: Executing operation retrieveMyCases
> 
> Don't understand why 'retrieveMyCases' is being called - it should be 'searchForProperty' and 'retrieveProperty' respectively.  Assume there's something screwed in marshalling/mapping but don't know where to start looking.
> 
> Haven't changed any of the core files, they are as generated by wsdl2java.  Only change I've made is to move FLWebInterfaceImpl.java & FLWebInterface_FL_Client.java into other dirs so they're separated from the other generated files.
> 
> Project is built from a modified version of the auto-generated ant build.xml, can post if that helps.
> 
> Env is cxf 2.7.6 on mac 10.7 / java 1.6.0_51 / tomcat 6.0.37.
> 
> Thanks for any help.
> 
> - Scott.