Re: [xfire-user] @webmethod action - org.codehaus.xfire.XFireRuntimeException

2009-09-25 Thread Werner Lehmann

Hi Joe,

unfortunately this list is practically dead. Almost everyone seems to 
have moved on to CXF. As to your question... I don't know anything for 
sure but I would guess that XFire supports some/most/all of the JAX-WS 
annotations - but that does not necessarily mean that all attributes of 
those annotations are also supported.


Unless more helpful answers arrive here I would suggest that you either 
switch to another framework which supports what you need or use a 
wrapper class/interface which maps foo to foo1. This can easily be 
automated with a code generator (parse your service or use reflection, 
then generate the wrapper service with any of the template engines). It 
is not that hard... I am even generating the service interface in the 
first place in this way.


Werner

On 24.9.2009 21:01, joe robles wrote:

Hi all,

I am new to webservices.

I have successfully created a soap webservice on a business interface using
annotations, using spring and xfire 1.2.5 version. 


The business interface has a requirement that foo() must be shown in wsdl as
foo1. Thus I made use of the @webmethod and used action to tell that foo1 in
turn must call foo() on the interface. 


The business interface is as follows:


@WebService( serviceName = FooService )
public interface FooInterface
{
   @WebMethod( operationName = foo1, action = foo) 
String foo( @WebParam( name = inputData ) String inputData );


}


But when I run the xfire client test, I get the following error.

I am stumped here...Please let me know your valuable input. Your help is
highly appreciated.

Thanks in advance.

Error:

Caused by: org.codehaus.xfire.XFireRuntimeException: Could not find
operation foo1 in the service model.
at
org.codehaus.xfire.wsdl11.parser.WSDLServiceConfigurator.visit(WSDLServiceConfigurator.java:229)
at
org.codehaus.xfire.wsdl11.parser.WSDLServiceConfigurator.configure(WSDLServiceConfigurator.java:198)
at
org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:244)
at
org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:193)
at
org.codehaus.xfire.spring.remoting.XFireClientFactoryBean.makeClient(XFireClientFactoryBean.java:504)
at
org.codehaus.xfire.spring.remoting.XFireClientFactoryBean.createClient(XFireClientFactoryBean.java:412)
at
org.codehaus.xfire.spring.remoting.XFireClientFactoryBean.afterPropertiesSet(XFireClientFactoryBean.java:119)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 49 more


--

MINT MEDIA INTERACTIVE Software Systems GmbH
Science Park Kiel
Fraunhoferstr. 13
D-24118 Kiel, Germany
Phone: +49 (0)431 530215-0
Fax: +49 (0)431 5302090
Mail: lehm...@media-interactive.de
Web: www.media-interactive.de


Sitz der Gesellschaft / Corporate HQ:
Kiel
Reg.-eintragung / Registration:
Amtsgericht Kiel HRB 4860
Geschäftsführer / Managing Director:
Jörg Latteier



-
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Re: [xfire-user] @webmethod action - org.codehaus.xfire.XFireRuntimeException

2009-09-24 Thread joe robles

More details as follows:

I am using spring 2.5.

Excerpt from the servlet xml:


bean id=fooSoapExporterWS
class=org.codehaus.xfire.spring.remoting.XFireExporter
property name=style
valuerpc/value
/property
property name=use
valueliteral/value
/property
!-- property name=serviceFactory
ref bean=xfire.serviceFactory/
/property--
property name=serviceFactory
value=org.codehaus.xfire.annotations.AnnotationServiceFactory/

property name=xfire
ref bean=xfire/
/property
property name=serviceBean ref bean=foo/ /property
property name=serviceInterface value=com.xx.FooInterface/

/bean

Excerpt from web.xml:

context-param
param-namecontextConfigLocation/param-name
param-value
/WEB-INF/foo-servlet.xml
classpath:org/codehaus/xfire/spring/xfire.xml
/param-value
/context-param

listener

listener-classorg.springframework.web.context.ContextLoaderListener
/listener-class
/listener

Excerpt xfire client xml:

bean id=fooInterface

class=org.codehaus.xfire.spring.remoting.XFireClientFactoryBean
property name=serviceClass
value
gov.xx.fooInterface
/value
/property
property name=wsdlDocumentUrl
value/foo?wsdl/value
/property
/bean

The debug statements from xfire api:

0  2009-09-22 12:16:49,961 [   main] DEBUG
nsport.DefaultTransportManager  - Registered transport
org.codehaus.xfire.transport.local.localtransp...@1112ca9
0  2009-09-22 12:16:49,961 [   main] DEBUG
nsport.DefaultTransportManager  - Registered transport
org.codehaus.xfire.transport.dead.deadlettertransp...@c8ca96
0  2009-09-22 12:16:49,961 [   main] DEBUG
nsport.DefaultTransportManager  - Registered transport
org.codehaus.xfire.transport.http.soaphttptransp...@1b1f712
0  2009-09-22 12:16:49,961 [   main] DEBUG
nsport.DefaultTransportManager  - Registered transport
org.codehaus.xfire.transport.http.httptransp...@d3f3ed
Retrieving document at 'null'.
1252009-09-22 12:16:50,086 [   main] DEBUG
tation.XMLDocumentationBuilder  - Searching for FooInterface.doc.xml
config..
1252009-09-22 12:16:50,086 [   main] DEBUG
tation.XMLDocumentationBuilder  - Config FooInterface.doc.xml NOT found.
2192009-09-22 12:16:50,180 [   main] DEBUG
.aegis.XMLClassMetaInfoManager  - Mapping file :
/gov/xx/FooInterface.aegis.xml not found.

joe robles wrote:
 
 Hi all,
 
 I am new to webservices.
 
 I have successfully created a soap webservice on a business interface
 using annotations, using spring and xfire 1.2.5 version. 
 
 The business interface has a requirement that foo() must be shown in wsdl
 as foo1. Thus I made use of the @webmethod and used action to tell that
 foo1 in turn must call foo() on the interface. 
 
 The business interface is as follows:
 
 
 @WebService( serviceName = FooService )
 public interface FooInterface
 {
@WebMethod( operationName = foo1, action = foo) 
 String foo( @WebParam( name = inputData ) String inputData );
 
 }
 
 
 But when I run the xfire client test, I get the following error.
 
 I am stumped here...Please let me know your valuable input. Your help is
 highly appreciated.
 
 Thanks in advance.
 
 Error:
 
 Caused by: org.codehaus.xfire.XFireRuntimeException: Could not find
 operation foo1 in the service model.
   at
 org.codehaus.xfire.wsdl11.parser.WSDLServiceConfigurator.visit(WSDLServiceConfigurator.java:229)
   at
 org.codehaus.xfire.wsdl11.parser.WSDLServiceConfigurator.configure(WSDLServiceConfigurator.java:198)
   at
 org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:244)
   at
 org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:193)
   at
 org.codehaus.xfire.spring.remoting.XFireClientFactoryBean.makeClient(XFireClientFactoryBean.java:504)
   at
 org.codehaus.xfire.spring.remoting.XFireClientFactoryBean.createClient(XFireClientFactoryBean.java:412)
   at
 org.codehaus.xfire.spring.remoting.XFireClientFactoryBean.afterPropertiesSet(XFireClientFactoryBean.java:119)
   at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
   at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)