cancel
Showing results for 
Search instead for 
Did you mean: 

SUP 2.0 u2013 Problem with notifications and server initiated workflow

Former Member
0 Kudos

Hello,

I have to create simple workflow application which has to be server initiated and which will use SAP EIS as a data source. I established connection to SAP EIS is by using JCo driver. Also I have created MBO and server initiated workflow and I have generated Mobile Work flow package and I deployed project to Unwired server.

When I tested workflow by sending notification from Unwired workspace (workflow designer) it worked perfect. The problem is that the notifications from SAP function modules do not arrive from the Unwired server to the device. What can be the cause of this problem and how can I determine where the problem is? Could problem bi in Mobile workflow DCN?

I have looked at document [http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01218.0201/doc/html/vhu1284047564100.html]

but I still havenu2019t found the answer.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Goran, Could you type the sentence where you call the URL, please? I have a function ABAP where I can send notification to my device and it's working well.

Former Member
0 Kudos

vclement,

thank you for your quick response.

Could you be more specific about the place where the URL should be set? As I understood, the URL for dcn servlet http://host:8000/dcn/HttpAuthDCNServlet should be placed in sap function module which generates HTTP request, am I wrong?

How could I determine on which side is a problem, on Unwired server or on SAP EIS which does not send notifications and is there a way to debug this communication?

I am also interested in additional settings of Unwired platform which should be done to receive notifications from.

Former Member
0 Kudos

Hi again.

You can type the call wherever you want if you only want to test the funcionality. I mean, If you do not have still implemented the logic, you can type the url from a abap program, for example in my case:

Call this URL:

http://mylaptopname:8000/dcn/DCNServlet?cmd=wf&security=admin&domain=default&username=supAdmin&passw...

with

CALL METHOD cl_http_client=>create_by_url

EXPORTING

url = w_string

IMPORTING

client = http_client

EXCEPTIONS

argument_not_found = 1

plugin_not_active = 2

internal_error = 3

OTHERS = 4.

CALL METHOD http_client->send

EXCEPTIONS

http_communication_failure = 1

http_invalid_state = 2.

CALL METHOD http_client->receive

EXCEPTIONS

http_communication_failure = 1

http_invalid_state = 2

http_processing_failed = 3.

this code is everything goes well, return a message with field TRUE. This message is not going to insert any message in the cache , only will sent a notification to the user.

IN case you will have the logic, you can type this code for example , at the end of the function create or update.

Best regards.

Former Member
0 Kudos

Hi vcement,

I have implemented similar method but I havenu2019t tested it until now. When I tested I foundout that firewall is blocking sending messages. Thank you for solwing my

problem.

In another topic here on site , someone else asked interesting things about server initiated workflow and DCN. Could you please explain to me the difference between two different approaches mentioned in the topic? I would like to know where I have to place java code for calling the backend system.

Thank you a lot,

Goran Lukic

Edited by: goran.lukic on Aug 25, 2011 3:24 PM