I've debugged this down far enough to see that the GetModel object is being interpreted correctly, but the id param is never bound to this object. Any thoughts?
On 7/31/07, Brad Harper <[EMAIL PROTECTED]> wrote: > > My get (all) requests (/services/rest/productTypes) are working. They > return xml like this... > > <ns1:getProductTypesResponse> > <ProductTypes> > <description>Paper</description> > <id>10</id> > </ProductTypes> > <ProductTypes> > <description>Canvas</description> > <id>11</id> > </ProductTypes> > </ns1:getProductTypesResponse> > > My get individual requests (/services/rest/productTypes/1) are failing > because the id property of the GetModel object is null. > > Any ideas? Code/config below.... > > config: > <bean id="RestServiceImpl" class=" > com.gdservices.service.thirdparty.RestServiceImpl"> > <property name="daoFactory"> > <ref bean="hibernateDAOFactory"/> > </property> > </bean> > <!-- REST --> > <jaxws:endpoint > id="restRest" > implementor="#RestServiceImpl" > address="/rest" > bindingUri=" http://apache.org/cxf/binding/http"> > <jaxws:serviceFactory> > <bean class=" > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean"> > <property name="wrapped" value="true" /> > </bean> > </jaxws:serviceFactory> > </jaxws:endpoint> > > Service: > > @WebService( > targetNamespace = " http://restService.service.gdservices.com/" > ) > public interface RestService { > > @Get > @HttpResource(location="/productTypes") > @WebResult(name = "ProductTypes") > public List<TpMetaData> getProductTypes() throws ServiceException; > > @Get > @HttpResource(location="/productTypes/{id}") > public TpMetaData getProductType(@WebParam(name = "GetModel")GetModel > getModel) throws ServiceException ; > } > > > Param Object: > @XmlRootElement(name = "GetModel") > public class GetModel { > private long id; > > > public long getId() { > return id; > } > > public void setId(long id) { > this.id = id; > } > } >