Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

WFDCN is not working in SMP 2.3.5

Hi All,

I am facing issues in receiving workflow messages on device sent from ECC.

In SUP 2.1.3 we added XML code in web.xml file under %SUPHOME%\Servers\UnwiredServer\deploy\webapps\dcn\WEB-INF

Below is the XML file which we used in SUP 2.1.3

<?xml version="1.0" encoding="UTF-8"?>

<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

  <servlet>

    <servlet-name>DCNServlet</servlet-name>

    <servlet-class>web.components.dcn.DCNServlet$WC</servlet-class>

  </servlet>

  <servlet>

    <servlet-name>HBLServlet</servlet-name>

    <servlet-class>com.xyz.dcn.HBLServlet</servlet-class>

  </servlet>

  <servlet>

    <servlet-name>HttpAuthDCNServlet</servlet-name>

    <servlet-class>web.components.dcn.HttpAuthDCNServlet$WC</servlet-class>

  </servlet>

  <servlet>

    <servlet-name>JspServlet</servlet-name>

    <servlet-class>web.components.dcn.JspServlet$WC</servlet-class>

    <init-param>

      <param-name>compilerTargetVM</param-name>

      <param-value>1.6</param-value>

    </init-param>

    <init-param>

      <param-name>compilerSourceVM</param-name>

      <param-value>1.6</param-value>

    </init-param>

  </servlet>

   <servlet-mapping>

    <servlet-name>HBLServlet</servlet-name>

    <url-pattern>/HBLServlet</url-pattern>

  </servlet-mapping>

  <servlet-mapping>

    <servlet-name>DCNServlet</servlet-name>

    <url-pattern>/DCNServlet</url-pattern>

  </servlet-mapping>

  <servlet-mapping>

    <servlet-name>HttpAuthDCNServlet</servlet-name>

    <url-pattern>/HttpAuthDCNServlet</url-pattern>

  </servlet-mapping>

  <servlet-mapping>

    <servlet-name>JspServlet</servlet-name>

    <url-pattern>*.jsp</url-pattern>

  </servlet-mapping>

  <security-constraint>

    <web-resource-collection>

      <web-resource-name>dcn servlet</web-resource-name>

      <url-pattern>/DCNServlet</url-pattern>

      <http-method>GET</http-method>

      <http-method>POST</http-method>

    </web-resource-collection>

  </security-constraint>

 

 

  <security-constraint>

    <web-resource-collection>

      <web-resource-name>hbl servlet</web-resource-name>

      <url-pattern>/HBLServlet</url-pattern>

      <http-method>GET</http-method>

      <http-method>POST</http-method>

    </web-resource-collection>

  <auth-constraint>

      <description>Role required for sending HBL DCN request</description>

      <role-name>SUP DCN User</role-name>

    </auth-constraint>

    <user-data-constraint>

      <transport-guarantee>NONE</transport-guarantee>

    </user-data-constraint>

  </security-constraint>

 

  <security-constraint>

    <web-resource-collection>

      <web-resource-name>http auth dcn servlet</web-resource-name>

      <url-pattern>/HttpAuthDCNServlet</url-pattern>

      <http-method>POST</http-method>

      <http-method>GET</http-method>

    </web-resource-collection>

    <auth-constraint>

      <description>Role required for sending DCN request</description>

      <role-name>SUP DCN User</role-name>

    </auth-constraint>

    <user-data-constraint>

      <transport-guarantee>NONE</transport-guarantee>

    </user-data-constraint>

  </security-constraint>

  <login-config>

    <auth-method>BASIC</auth-method>

    <realm-name>Application Server</realm-name>

  </login-config>

</web-app>

After this we added below servlet properties file under %SUP_HOME%\Servers\UnwiredServer\deploy\webapps\dcn\WEB-INF\classes:

dcn.servlet=http://localhost:8010/dcn/DCNServlet?cmd=wf&security=mwfSecurityConfig&domain=default

After this we added Custom HBLservlet java(mentioned in web.xml code) and relevant class file under %SUP_HOME%\Servers\UnwiredServer\deploy\webapps\dcn\WEB-INF\classes\com

We were able to receive workflow messages in SUP 2.1.3 but it is not working with SMP 2.3.5.

Below is the error log from NW gateway system:

ValueOData Client - notification to userxyz - http://mobentdev.xyz.com:8010/dcn/HBLServlet - failed - HTTP 404

Request to share your experience.

Regards

Rahul

Former Member
Former Member replied

Hi

We are able to resolve this error by changing the default port for DCN in SCC from 8000 to 8010 and enabled Get method for it. This solved our problem.

Regards

Rahul

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question