This is my bean xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- @author: njha -->
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:aop="http://www.springframework.org/schema/aop";
       xmlns:tx="http://www.springframework.org/schema/tx";
       xmlns:jaxws="http://cxf.apache.org/jaxws";
       xmlns:jaxrs="http://cxf.apache.org/jaxrs";
       xmlns:cxf="http://cxf.apache.org/core";
       xmlns:context="http://www.springframework.org/schema/context";
       xmlns:jee="http://www.springframework.org/schema/jee";
       xmlns:util="http://www.springframework.org/schema/util";
       xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
http://cxf.apache.org/configuration/security
http://cxf.apache.org/schemas/configuration/security.xsd
http://cxf.apache.org/transports/http/configuration
http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/jee
http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
http://www.springframework.org/schema/util
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.*;
import javax.ws.rs.core.Context;
import javax.xml.bind.JAXBElement;

/**
 * Created by animesh on Sep 22, 2016.
 */
@WebService(targetNamespace = "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.

Reply via email to