Hi!

I create a simple echo restful service.
The java side:

@WebService(endpointInterface = "hu.javaportal.www.test.TestService")
public class TestServiceImpl implements TestService {

    @Get
    @Override
    @HttpResource(location="/echo/{echoData}")
    public String echo(String echoData) {
        return "Echo:" + echoData;
    }

}

The spring xml:
    <bean id="xmlServiceFactory"
        class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">
        <property name="wrapped" value="true" />
    </bean>
...
    <jaxws:endpoint id="echoXML"
        implementor="hu.javaportal.www.test.impl.TestServiceImpl"
        address="/service/xml"
        bindingUri="http://apache.org/cxf/binding/http";>
        <jaxws:serviceFactory>
            <ref bean="xmlServiceFactory" />
        </jaxws:serviceFactory>
    </jaxws:endpoint>


I tried to call my service like:
http://localhost:8080/testproject/service/xml/echo?echoData=test
http://localhost:8080/testproject/service/xml/echo/echoData=test
etc...
but without success
the method called but the parameter is empty...

How can I solve this problem?

Cow

Reply via email to