Here is a litter trick for the endpoint address setting with using servlet transport. I will update wiki for it. Because of CXFServlet can't get know the web server's listen port and the application deploied context path. When you want to use the Servlet transport , you just need to set the relate path such as /Hello. Then you can get the wsdl with this url http://localhost:8081/cxfservices/Hello?wsdl

Cheers,

Willem.

Jacob Marcus wrote:
Hi all,

I followed the documentation for converting an XFire services to an
equivalent cxf.xml with no luck. The sample cxf.xml given in the
documentation is broken. It is not a valid xml file.
(http://cwiki.apache.org/CXF20DOC/xfire-migration-guide.html#XFireMigrationGuide-services.xml
)


My cxf.xml is given below.

It seems to get deployed properly. I do get the service listed if I use a
URL like http://localhost:8081/cxfservices. However, if I try to
hit the wsdl using http://localhost:8081/cxfservices/Hello?wsdl , it gives
me a message saying 'Service not found'.

Do I need to specifiy something more in the cxf.xml? I am not using
annotations.

Thanks,
Jacob


<beans xmlns=" http://www.springframework.org/schema/beans";
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
     xmlns:simple=" http://cxf.apache.org/simple";
     xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/simple
http://cxf.apache.org/schemas/simple.xsd ">

<simple:server id="Test" address="http://localhost:8081/cxfservices/Hello";

   serviceClass="com.test.Hello">
   <simple:serviceBean>
       <bean class="com.test.HelloImpl"/>
   </simple:serviceBean>
 </simple:server>

</beans>

Reply via email to