Hi
On 31/05/12 19:59, amathewcxf wrote:
Thanks you so much for your time and reply.
After reading your reply, i did lot of reading. The one question which i
have from your reply is, are you saying that I can refer the xsd in the
@Path like below?
@Path("/ws/GetAvailabilitySchema.xsd")
You probably do not need to list the actual schema resource unless you
actually need to have a Path like that,
it served its purpose to get the model beans generated, and the code
below should work,
public interface GetAvailability{
@GET
public Availability getAvailability();
}
public class GetAvailabilityImpl implements GetAvailability{
@GET
public Availability getAvailability(){
}
}
Then I will have a standalone client code like below (which will be invoked
by a EJB method):
public class GetAvailabilityWSClient{
public void processWSClient(){
GetAvailability getAvail =
JAXRSClientFactory.create("http://remotewstest.com", GetAvailability.class);
Availability availability = getAvail.getAvailability();
}
}
Then the getAvail.getAvailability() in the GetAvailabilityWSClient will
return the Availability object based on the xsd?
After Availability has been generated, the schema can be used to
validate the payloads
Cheers, Sergey
Thanks Again
Anil Mathew
--
View this message in context:
http://cxf.547215.n5.nabble.com/How-to-use-XSD-file-with-cxf-tp5708311p5708925.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com