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
-- 
View this message in context: 
http://www.nabble.com/%40webmethod-action---org.codehaus.xfire.XFireRuntimeException-tp25578251p25578251.html
Sent from the XFire - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to