Incorrect Conversation Id

12 views
Skip to first unread message

Kapil Nesarikar

unread,
Dec 29, 2011, 4:10:15 AM12/29/11
to mchoice-...@googlegroups.com
I have written my own test class to submit messages to my application
final PostMethod postMethod = new PostMethod("http://127.0.0.1:8080/Malbec/");

what shoud be the conversationID i should giving in the following statement
postMethod.addRequestHeader(MchoiceUssdMessage.CONVERSATION, "34234234");
I keep getting following error on my simulator console


=============RESPONSE===============
MchoiceUssdResponse{correlationId='0.9464200045547622', statusCode='ERROR', statusDescription='Incorrect Conversation Id'}
====================================

Pls advice.
Thanks
Kapil



On Thu, Dec 29, 2011 at 1:57 AM, Chasles <chas...@gmail.com> wrote:
Thanks Azeem but with the simulator i m getting message sent but i m
not having any reply.
Do i have to type a specific message to have a reply?but on the code
it doesn t seem so.
Thanks for your reply.

--
Best Regards
Charles Gunther N.N
P.o.box :3735 Douala Cameroon
Tel:(+237) 96719025 / (237) 78861540

Azeem Mumtaz

unread,
Dec 29, 2011, 5:07:42 AM12/29/11
to mchoice-...@googlegroups.com
You can get the conversation id from the instance of MchoiceUssdMessage class. You would see that this message object has a getter method called getConversationId(), which will return the conversation id that represent the session between your application and a particular user. 

I am not fully clear what you are try to do though. Anyway let me know if this is the one you are looking for.

All The Best
--
Azeem Mumtaz
Take the path less travelled by, and that will make all differences...

Chasles

unread,
Dec 29, 2011, 5:12:59 AM12/29/11
to mchoice-...@googlegroups.com
Look i ve followed all the steps to test the java application through
the simulator.When i m sending the message it s going successfully but
i m not receiving any message on the received panel to browse the menu
listed on the java code.

Could help me to get it works?

My other question is concerning mchoice do this application compatible
with all telco infrastructure?i mean if i m developin an app with
mchoice and i want to deploy it on my telecom operator ussd server
will it works?
Thanks for your supoprt guy
--
Best Regards
0

Azeem Mumtaz

unread,
Dec 29, 2011, 5:58:19 AM12/29/11
to mchoice-...@googlegroups.com
Hi Chasles

In the simulator ui, what is the app url your are specifying? Are you getting any error logs on simulator?  

Well I am not sure whether you could use the api for any other operators, but I believe this api follows the standard specification defined by USSD Centers/Gatways. If your operators is willing to open the ussd service to your application and the parameters that are sent by the API to the operator's ussd gateway are inline with your operators listener API, then I don't think it would be a problem. 

Regards
Azeem
--
Azeem Mumtaz
Take the path less travelled by, and that will make all differences...
Reply all
Reply to author
Forward
0 new messages