Issue ID:GSO-21
authorj00302280 <j00101220@huawei.com>
Sat, 15 Oct 2016 10:31:30 +0000 (18:31 +0800)
committerj00302280 <j00101220@huawei.com>
Sat, 15 Oct 2016 10:31:30 +0000 (18:31 +0800)
Change-Id: Iae71bb72a829e0212f45fec9eb532e26f1a02a7f
Signed-off-by: j00302280 <j00101220@huawei.com>
servicegateway/service/src/main/java/org/openo/gso/gui/servicegateway/roa/impl/ServiceGatewayRoaModuleImpl.java
servicegateway/service/src/main/java/org/openo/gso/gui/servicegateway/service/impl/ServiceGatewayImpl.java
servicegateway/service/src/main/webapp/WEB-INF/web.xml

index 3c47c65..9bfd899 100644 (file)
@@ -70,6 +70,7 @@ public class ServiceGatewayRoaModuleImpl implements IServiceGatewayRoaModule {
             // 1. Check validation
             String reqContent = RestUtils.getRequestBody(servletReq);
             ValidateUtil.assertStringNotNull(reqContent);
+            LOGGER.info("Received a request form the NBI the reqContent is :"+ reqContent11);
 
             // 2. Create service
             serviceId = serviceGateway.createService(reqContent, servletReq);
index 0a70850..c3dee4a 100644 (file)
@@ -84,12 +84,15 @@ public class ServiceGatewayImpl implements IServiceGateway {
         // call the restful 
         String id = null;
         try {
+               LOGGER.info("Send the cretation RESTful request to orchestrator.The Body is"+ requestBody.toString());
                RestfulResponse restfulRsp = RestfulFactory.getRestInstance("http").post(gatewayUri,
                     getRestfulParameters(JsonUtil.marshal(requestBody)));
+               LOGGER.info("Receive the cretation RESTful response from orchestrator.The status is:"+restfulRsp.getStatus()+" the content is:"+ 
+                    restfulRsp.getResponseContent());
             if (null != restfulRsp) {
                 // Record the result of registration
                 // (201:success;415:Invalid Parameter;500:Internal Server Error)
-                LOGGER.info("restful call result:", restfulRsp.getStatus());
+                LOGGER.info("restful call result:"+ restfulRsp.getStatus());
                 id = restfulRsp.getRespHeaderStr(Constant.SERVICE_ID);
                 id = (null == id) ? restfulRsp.getRespHeaderStr(Constant.NS_INSTANCE_ID) : id;
                 id = (null == id) ? restfulRsp.getRespHeaderStr(Constant.JOB_ID) : id;
index 59f3592..174ba38 100644 (file)
         <servlet-name>CXFServlet</servlet-name>
         <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
+               <init-param>
+            <param-name>hide-service-list-page</param-name>
+            <param-value>true</param-value>
+        </init-param>
     </servlet>
     <servlet-mapping>
         <servlet-name>CXFServlet</servlet-name>