This is the first time I have tried XFire and I am having a pretty frustrating time of it right now... even though it seems straightforward enough.
I have set up XFire with Spring in a similar fashion to: http://xfire.codehaus.org/Spring+QuickStart+Guide When I go to: http://localhost/services it lists the web service I have attempted to set up: Available Services: * voteService [wsdl] But when I click the wsdl link (http://localhost:8080/services/voteService?wsdl) I get "Invalid SOAP Request". My set up is as follows: VoteService.java package com.xxx.webservices; import javax.jws.WebService; @WebService public interface VoteService { public String getVotes(long mediaid); } VoteServiceImpl.java package com.xxx.webservices; import javax.jws.WebService; @WebService( serviceName = "voteService", endpointInterface = "com.xxx.webservices.VoteService") public class VoteServiceImpl implements VoteService { public String getVotes(long mediaid) { return "this is a vote service message"; } } applicationContext.xml ... <import resource="classpath:org/codehaus/xfire/spring/xfire.xml"/> ... <bean id="webAnnotations" class="org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations"/> <bean id="handlerMapping" class="org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping"> <property name="typeMappingRegistry" ref="xfire.typeMappingRegistry" /> <property name="xfire" ref="xfire" /> <property name="webAnnotations" ref="webAnnotations" /> </bean> <bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> <property name="urlMap"> <map> <entry key="/"> <ref bean="handlerMapping"/> </entry> </map> </property> </bean> <bean id="voteService" class="com.hallpass.webservices.VoteServiceImpl" /> ... web.xml ... <servlet> <servlet-name>SOAPServlet</servlet-name> <servlet-class>org.codehaus.xfire.spring.XFireSpringServlet</servlet-class> </servlet> ... <servlet-mapping> <servlet-name>SOAPServlet</servlet-name> <url-pattern>/services/*</url-pattern> </servlet-mapping> I put my log4j level up to debug and I can't see any exceptions at startup or when I try to get the wsdl. Here are some exceprts from the logs: ... DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - Mapped URL path [/] onto handler [EMAIL PROTECTED] DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Invoking BeanPostProcessors after initialization of bean 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping' DEBUG [org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping] - Rejected bean 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping' since it has no WebService annotation DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'voteService' DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating instance of bean 'voteService' with merged definition [Root bean: class [com.xxx.webservices.VoteServiceImpl]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext.xml]] DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Invoking BeanPostProcessors before instantiation of bean 'voteService' DEBUG [org.springframework.beans.CachedIntrospectionResults] - Getting BeanInfo for class [com.xxx.webservices.VoteServiceImpl] DEBUG [org.springframework.beans.CachedIntrospectionResults] - Caching PropertyDescriptors for class [com.xxx.webservices.VoteServiceImpl] DEBUG [org.springframework.beans.CachedIntrospectionResults] - Found property 'class' of type [java.lang.Class] DEBUG [org.springframework.beans.CachedIntrospectionResults] - Found property 'mediaService' of type [com.xxx.service.MediaService] DEBUG [org.springframework.beans.CachedIntrospectionResults] - Class [com.xxx.webservices.VoteServiceImpl] is cache-safe DEBUG [org.springframework.core.CollectionFactory] - Creating [java.util.LinkedHashMap] DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Eagerly caching bean with name 'voteService' to allow for resolving potential circular references DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Invoking BeanPostProcessors before initialization of bean 'voteService' DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Invoking BeanPostProcessors after initialization of bean 'voteService' DEBUG [org.codehaus.xfire.service.documentation.XMLDocumentationBuilder] - Searching for VoteService.doc.xml config.. DEBUG [org.codehaus.xfire.service.documentation.XMLDocumentationBuilder] - Config VoteService.doc.xml NOT found. DEBUG [org.codehaus.xfire.aegis.XMLClassMetaInfoManager] - Mapping file : /com/xxx/webservices/VoteService.aegis.xml not found. DEBUG [org.codehaus.xfire.aegis.XMLClassMetaInfoManager] - Mapping file : /com/xxx/webservices/VoteService.aegis.xml not found. DEBUG [org.codehaus.xfire.aegis.XMLClassMetaInfoManager] - Mapping file : /long.aegis.xml not found. DEBUG [org.codehaus.xfire.aegis.XMLClassMetaInfoManager] - Mapping file : /com/xxx/webservices/VoteService.aegis.xml not found. DEBUG [org.codehaus.xfire.aegis.XMLClassMetaInfoManager] - Mapping file : /com/xxx/webservices/VoteService.aegis.xml not found. DEBUG [org.codehaus.xfire.aegis.XMLClassMetaInfoManager] - Mapping file : /java/lang/String.aegis.xml not found. DEBUG [org.codehaus.xfire.aegis.XMLClassMetaInfoManager] - Mapping file : /com/xxx/webservices/VoteService.aegis.xml not found. DEBUG [org.codehaus.xfire.aegis.XMLClassMetaInfoManager] - Mapping file : /long.aegis.xml not found. DEBUG [org.codehaus.xfire.aegis.XMLClassMetaInfoManager] - Mapping file : /com/xxx/webservices/VoteService.aegis.xml not found. DEBUG [org.codehaus.xfire.aegis.XMLClassMetaInfoManager] - Mapping file : /java/lang/String.aegis.xml not found. INFO [org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping] - Exposing service {http://webservices.xxx.com}voteService to /services/voteService DEBUG [org.codehaus.xfire.transport.DefaultTransportManager] - Registered transport [EMAIL PROTECTED] DEBUG [org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping] - Mapped URL path [/services/voteService] onto handler [EMAIL PROTECTED] ... DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instance of singleton bean 'xfire' DEBUG [org.codehaus.xfire.transport.DefaultTransportManager] - Registered transport [EMAIL PROTECTED] DEBUG [org.codehaus.xfire.transport.DefaultTransportManager] - Registered transport [EMAIL PROTECTED] DEBUG [org.codehaus.xfire.transport.DefaultTransportManager] - Registered transport [EMAIL PROTECTED] DEBUG [org.codehaus.xfire.transport.DefaultTransportManager] - Registered transport [EMAIL PROTECTED] DEBUG [org.codehaus.xfire.transport.DefaultTransportManager] - Registered transport [EMAIL PROTECTED] If anyone could provide me some pointers it would be very very appreciated! Please let me know if there is any more information I can provide. Thanks! -- View this message in context: http://www.nabble.com/Spring-XFire-Configuration-Problems-tf4432353.html#a12645152 Sent from the XFire - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email