on 07-26-2011 12:06 PM
Hi to all.
I have installed SUP 2.0 in my laptop to make tests. I Have a server-initiated application runnig correctly.
I'm able to sent a notificationto my blackberry simulator thought Sybase workspace and by URL http://mypc:8000/dcn/DCNServlet?cmd=wf&security=admin&domain=default&username=supAdmin&password=s3pAdmin&dcn_request={"op":":upsert","id":"MyServer2","to":"supAdmin","subject":"hello","from":"user1","body":"example","read":false,"priority":true}
My problem is when i tried it from R3 throught a function which is going to run in background when a trip request is created.
Executing in a program Z the functions WS_EXECUTE or CALL_BROWSER run well and the notification arrives but these functions throw exception in background.
I have tried to use CL_HTTP_CLIENT but the message does not arrive to the simultator.
CONCATENATE 'http://mylaptop:8000/dcn/DCNServlet?cmd=wf&security=admin&domain=default&username=supAdmin&password=s3pAdmin&dcn_request'
'={"op":":upsert","id":"MyServer2","to":"supAdmin","subject":"6666","from":"777","body":"ejem",'
'"read":false,"priority":true}' INTO url.
CALL METHOD cl_http_client=>create_by_url
EXPORTING
url = url
IMPORTING
client = http_client.
CALL METHOD http_client->send
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2.
¿ Any body could hep me? Where is the problem in the code? Is it necesary to include anything else?
Edited by: vclement on Jul 26, 2011 1:06 PM
I fixed the problem.
For information, there were two problems:
- the first one is that in the method create, i needed to indicate the proxy
- Once fixed the problem before, the other problem was that the URL contain the IP from the server were SUP was installed but it does not work. I changed it with typing host name with its domain and this fixed the problem.
I hope, this help to anybody.
Edited by: vclement on Jul 28, 2011 9:34 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.