On 3/22/06, Karthikeyan M <[EMAIL PROTECTED]> wrote:
You are accessing the URL using /ws/EdirSyncMDB. Shouldn't it be
/services/EdirSyncMDB. Actually, you can turn on the log4j logging and
the you will have messages like:
"[10:37:18,656] [main]
[INFO:org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping ] -
Exposing service {urn:your:namespace}SomeService to /services/SomeService"
hope that helps,
-karthik
Jason Tesser wrote:
> does anyone actually have this working with Spring?
>
> On 3/21/06, *Jason Tesser* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> OK I have an example very similar to teh one on the xfire site. I
> will past my files below. Basically when I goto
> http://localhost:8080/ws/EdirSyncMDB
> < http://localhost:8080/ws/EdirSyncMDB> it says the mapping doesn't
> exist. What am I missing.
>
> web.xml
> ...
> <servlet>
> <servlet-name>wsApp</servlet-name>
> <servlet-class>
> org.springframework.web.servlet.DispatcherServlet</servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet-mapping>
> <servlet-name>wsApp</servlet-name>
> <url-pattern>/*</url-pattern>
> </servlet-mapping>
> ...
>
> wsApp-servlet.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE beans SYSTEM "lib/spring- beans.dtd" >
> <beans>
>
> <!-- ===================== xfire ==================== -->
> <bean id="webAnnotations"
> class="org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations "/>
> <bean id="handlerMapping"
> class="org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping">
> <property name="typeMappingRegistry">
> <ref bean=" xfire.typeMappingRegistry"/>
> </property>
> <property name="xfire">
> <ref bean="xfire"/>
> </property>
> <property name="webAnnotations">
> <ref bean="webAnnotations"/>
> </property>
> </bean>
>
> <bean id="edirSync" class="edu.bju.ws.ldap.edir.EdirSyncMDBImpl "/>
>
> <bean class="
> org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
> <property name="urlMap">
> <map>
> <entry key="/">
> <ref bean="handlerMapping"/>
> </entry>
> </map>
> </property>
> </bean>
> </beans>
>
> EdirSyncMDBImpl class
>
> package edu.bju.ws.ldap.edir;
>
> import javax.jws.WebMethod;
> import javax.jws.WebService ;
>
> //@WebService(endpointInterface = "edu.bju.shared.ws.ldap.EdirSync")
> @WebService(serviceName = "EdirSyncMDB")
>
> public class EdirSyncMDBImpl {
> @WebMethod()
> public String echo( String echo )
> {
> System.out.print("Sending back " + echo);
> return echo;
> }
> }
>
>
