I have built the following tutorial with no issues:

 

http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html

 

 

However, I added my own concrete class and interface and new endpoint in
the beans.xml

 

And I can visit the url and see a wsdl.  But every time I try to consume
it all my objects from what I just created are null.   Why?

 

----- beans.xml -------

 

<beans xmlns="http://www.springframework.org/schema/beans";

         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

         xmlns:jaxws="http://cxf.apache.org/jaxws";

         xsi:schemaLocation="

http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd

http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd";>

 

            <import resource="classpath:META-INF/cxf/cxf.xml" />

            <import
resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />

            <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />

            

            <jaxws:endpoint

                  id="xscout"

 
implementor="com.cid.xscout.service.XscoutWebServiceImpl"

                  address="/XscoutWebService" />

                        

            <jaxws:endpoint

                  id="helloWorld"

                  implementor="com.cid.xscout.demo.HelloWorldImpl"

                  address="/HelloWorld" />

                  

            

</beans>    

 

 

------------------  interface ------------

 

 

package com.cid.xscout.service;

 

 

import com.cid.xscout.bean.Document;

import com.cid.xscout.bean.Taxonomy;

 

import javax.jws.WebMethod;

import javax.jws.WebService;

 

@WebService

public interface XscoutWebService {

 

      

      @WebMethod

      String a();

}

 

 

---------------------------- concrete class ------------

package com.cid.xscout.service;

 

import javax.jws.WebService;

 

@WebService

public class XscoutWebServiceImpl implements XscoutWebService{

public String a() { return "why";}

}

 

Reply via email to