On 3/22/06, Dan Diephouse <
[EMAIL PROTECTED]> wrote:
Jason,
Maybe it is broken then. I didn't write this part of the code, so I have
no idea what is going on. I am travelling now, but I will check it out
when I get a chance. Can you file a JIRA issue?
In the meantime you might want to try one of the other ways to configure
your service (like ServiceBean).
- Dan
Jason Tesser wrote:
> could someone tell me what version of the Spring the example is
> using? I have tried everything and just cannot get the example to work.
>
> On 3/22/06, *Jason Tesser * < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Andrew look at http://xfire.codehaus.org/maven/api/index.html
>
> Has anyone gotten this working?
>
>
> On 3/22/06, * Jason Tesser* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> but isn't the handlermapping supposed to take care of that.
> What you are suggesting is not using the jsr stuff.
> look at http://xfire.codehaus.org/JSR+181+HandlerMapping
> <http://xfire.codehaus.org/JSR+181+HandlerMapping > this is
> using spring and according to the bottom of the page "When
> this handler mapping is used, all annotated beans will be
> automatically exported at a certain url prefix (by default:
> /services/). Thus, the annotatedEcho bean will available at
> /services/EchoService. Make sure your annotated beans are
> declared after the Jsr181HandlerMapping declaration."
>
>
>
> On 3/22/06, *Andrew Berman* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Your mapping is wrong:
>
>
> <bean
> class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
> <property name="urlMap">
> <map>
> <entry key="/YourService">
> <ref bean="yourService"/>
> </entry>
> </map>
> </property>
> </bean>
>
>
> On 3/22/06, *Jason Tesser* < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> 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;
> }
> }
>
>
>
>
>
>
--
Dan Diephouse
(616) 971-2053
Envoi Solutions LLC
http://netzooid.com
