You should have enough information on swagger.io guides and with the 
swagger-samples repository.

> On Jan 24, 2017, at 11:41 PM, Animesh Bajpai <[email protected]> 
> wrote:
> 
> Sorry for "all caps".No hidden meanings there.
> 
> Can you suggest according to my xml? There seems to be no step by step guide 
> for tomcat based spring applications
> 
> Thanks
> 
> On Tuesday, January 24, 2017 at 10:37:15 PM UTC+5:30, tony tam wrote:
> All caps gentle reminder :)
> 
> Please read http://swagger.io <http://swagger.io/> on how to integrate.
> 
>> On Jan 24, 2017, at 9:05 AM, Animesh Bajpai <animesh...@ <>gmail.com 
>> <http://gmail.com/>> wrote:
>> 
>> GENTLE REMIDER
>> 
>> On Monday, January 23, 2017 at 5:22:25 PM UTC+5:30, Animesh Bajpai wrote:
>> This is my bean xml
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!-- @author: njha -->
>> <beans xmlns="http://www.springframework.org/schema/beans 
>> <http://www.springframework.org/schema/beans>"
>>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 
>> <http://www.w3.org/2001/XMLSchema-instance>"
>>        xmlns:aop="http://www.springframework.org/schema/aop 
>> <http://www.springframework.org/schema/aop>"
>>        xmlns:tx="http://www.springframework.org/schema/tx 
>> <http://www.springframework.org/schema/tx>"
>>        xmlns:jaxws="http://cxf.apache.org/jaxws 
>> <http://cxf.apache.org/jaxws>"
>>        xmlns:jaxrs="http://cxf.apache.org/jaxrs 
>> <http://cxf.apache.org/jaxrs>"
>>        xmlns:cxf="http://cxf.apache.org/core <http://cxf.apache.org/core>"
>>        xmlns:context="http://www.springframework.org/schema/context 
>> <http://www.springframework.org/schema/context>"
>>        xmlns:jee="http://www.springframework.org/schema/jee 
>> <http://www.springframework.org/schema/jee>"
>>        xmlns:util="http://www.springframework.org/schema/util 
>> <http://www.springframework.org/schema/util>"
>>        xsi:schemaLocation="http://www.springframework.org/schema/beans 
>> <http://www.springframework.org/schema/beans>
>>      http://www.springframework.org/schema/beans/spring-beans-2.5.xsd 
>> <http://www.springframework.org/schema/beans/spring-beans-2.5.xsd>
>>      http://www.springframework.org/schema/tx 
>> <http://www.springframework.org/schema/tx>
>>      http://www.springframework.org/schema/tx/spring-tx-2.5.xsd 
>> <http://www.springframework.org/schema/tx/spring-tx-2.5.xsd>
>>      http://www.springframework.org/schema/aop 
>> <http://www.springframework.org/schema/aop>
>>      http://www.springframework.org/schema/aop/spring-aop-2.5.xsd 
>> <http://www.springframework.org/schema/aop/spring-aop-2.5.xsd>
>>      http://cxf.apache.org/jaxws <http://cxf.apache.org/jaxws> 
>> http://cxf.apache.org/schemas/jaxws.xsd 
>> <http://cxf.apache.org/schemas/jaxws.xsd>
>>      http://cxf.apache.org/jaxrs <http://cxf.apache.org/jaxrs> 
>> http://cxf.apache.org/schemas/jaxrs.xsd 
>> <http://cxf.apache.org/schemas/jaxrs.xsd>
>>      http://cxf.apache.org/configuration/security 
>> <http://cxf.apache.org/configuration/security>
>>      http://cxf.apache.org/schemas/configuration/security.xsd 
>> <http://cxf.apache.org/schemas/configuration/security.xsd>
>>      http://cxf.apache.org/transports/http/configuration 
>> <http://cxf.apache.org/transports/http/configuration>
>>      http://cxf.apache.org/schemas/configuration/http-conf.xsd 
>> <http://cxf.apache.org/schemas/configuration/http-conf.xsd>
>>      http://cxf.apache.org/core <http://cxf.apache.org/core> 
>> http://cxf.apache.org/schemas/core.xsd 
>> <http://cxf.apache.org/schemas/core.xsd>
>>      http://www.springframework.org/schema/context 
>> <http://www.springframework.org/schema/context>
>>      http://www.springframework.org/schema/context/spring-context-2.5.xsd 
>> <http://www.springframework.org/schema/context/spring-context-2.5.xsd>
>>      http://www.springframework.org/schema/jee 
>> <http://www.springframework.org/schema/jee>
>>      http://www.springframework.org/schema/jee/spring-jee-2.5.xsd 
>> <http://www.springframework.org/schema/jee/spring-jee-2.5.xsd>
>>      http://www.springframework.org/schema/util 
>> <http://www.springframework.org/schema/util>
>>      http://www.springframework.org/schema/util/spring-util-2.5.xsd 
>> <http://www.springframework.org/schema/util/spring-util-2.5.xsd>
>>      ">
>> 
>>     <bean id="ruleResource" class="com.rule.impl.RuleResourceImpl" >
>> 
>>         <property name="deviceViewService">
>>              <ref bean="deviceViewService" />
>>         </property>
>>         <property name="actionApiService">
>>              <ref bean="actionApiService" />
>>         </property>
>>     </bean>
>>      
>> </beans>
>> 
>> 
>> 
>> and this is my java resource file
>> 
>> package com.rule.api;
>> 
>> 
>> import javax.jws.WebService;
>> import javax.servlet.http.HttpServletRequest;
>> import javax.ws.rs <http://javax.ws.rs/>.*;
>> import javax.ws.rs.core.Context;
>> import javax.xml.bind.JAXBElement;
>> 
>> /**
>>  * Created by animesh on Sep 22, 2016.
>>  */
>> @WebService(targetNamespace = "http://device.com <http://device.com/>")
>> @Consumes({"application/xml", "application/json"})
>> @Produces({"application/xml", "application/json"})
>> @Path("/rules/1.0/")
>> 
>> public interface RuleResource {
>>     @POST
>>     @Path("/addRule/customer/{billingId}")
>>     Object addRule(@Context HttpServletRequest request, 
>> @PathParam("billingId") String billingId,
>>                    JAXBElement<BasicRuleRequest> addRuleRequest);
>> 
>>     
>> }
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Swagger" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to