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)