cancel
Showing results for 
Search instead for 
Did you mean: 

WFDCN is not working in SMP 2.3.5

former_member196814
Active Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member196814
Active Participant
0 Kudos

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

Answers (2)

Answers (2)

former_member196814
Active Participant
0 Kudos

Hi Andrew,

I will try the standard servlet and share the result with you.

Yes we have customized port 8010 in ECC system under HTTP connection to external servers.

While SMP 2.3.5 installation we accepted the default port for all services.

If this port need to be changed in SMP 2.3.5 server after installation from 8000 to 8010 , how can we do that? is there any server properties file where we can check and change the port number for DCN request?

I tried running " http://localhost:8010" on Production server which is currently on SUP 2.1.3 version and i received http error 403 which i believe is expected response.

But on Test system which has SMP 2.3.5 server gives "webpage not available" error.

Thanks for your help.

Regards

Rahul.

Former Member
0 Kudos

Have you tried the standard DCNServlet - does that work as expected?  Normally, DCN is received on port 8000, have you customized your installation to change this to port 8010?

Sending Hybrid App DCN to Users Regardless of Individual Security Configurations

Thanks,

Andrew.