Hi There,
 I have solved the problems.. Problems were there in kannel(1.2.1) response
and I have edited the code and it is working fine.
 But whenever I am giving any bad request, I always get this error in
parsing the response. Do you have any idea how can I resolve this problem.
What is the correct syntax of Bad message response. Below is the kannel
response and the error I am getting. If you have any idea please revert back
to me.

********************************************************
<< HTTP/1.1 202 Foo
<< Server: Kannel/1.2.1
<< Content-Length: 200
<< Content-Type: application/xml
<<
<< <?xml version="1.0"?><!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN"
"h
ttp://132.186.198.70/pap_1.0.dtd"><pap><badmessage-response code="2000"
desc="No
t understood due to malformed syntax"/></pap>
com.openwave.wappush.BadMessageException:
ResponseBuilder.handleBadResponseStart

at
com.openwave.wappush.ResponseBuilder.handleBadResponseStart(ResponseBuilder.
java:181)
at
com.openwave.wappush.ResponseBuilder.startElement(ResponseBuilder.java:137)
at
com.openwave.wappush.PushResponseBuilder.startElement(PushResponseBuilder.ja
va:102)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)

at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:1284)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1806)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1182)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at
com.openwave.wappush.ResponseBuilder.doParseContent(ResponseBuilder.java:317
)
at
com.openwave.wappush.ResponseBuilder.parseContent(ResponseBuilder.java:102)
at
com.openwave.wappush.PushResponseBuilder.build(PushResponseBuilder.java:77)
at com.openwave.wappush.Pusher.send(Pusher.java:239)
at push.test.PushTest.testServiceIndicator(PushTest.java:97)
at push.test.PushTest.main(PushTest.java:132)

********************************************************


I have no idea what will be the format of Bad Message. I have tried but
couldnt get the actual one.
If anyone can help me on it? Please tell me what actually is expected by the
apis so that I can configure my kannel to send that response.


thanks alot in advance.

regards
Nishant


> -----Original Message-----
> From: Navjot Singh [SMTP:[EMAIL PROTECTED]
> Sent: Monday, January 12, 2004 01:26 PM
> To:   [EMAIL PROTECTED]
> Subject:      RE: SMS replies to kannel
> 
> 
> Cellphones don't have a kind of facility like "Replyto:" in SMTP.
> Cellphone user, when hits a reply the response will go back to only that
> MSISDN what the original SMS states.
> 
> 1. But you can teach your customers to send reply to only that number you
> want.
> As i understand, your application must be closed group.
> If it is not clsoed group, then you may probably advertise somewhere.
> 
> 2. OR if those MULTIPLE numbers are limited say 10,20 and you have
> *control*
> over them. You can have your SMSC forward the SMSes incoming to those
> numbers forwared to your ONE number.
> 
> But why would you have different FROM numbers in first place?
> 
> I have sent push mesages using kannel and they went fine. Your Log also
> suggested that it's something to do with api only. I will try and let you
> know.
> 
> regards
> Navjot Singh
> 
> >-----Original Message-----
> >From: Jain Nishant [mailto:[EMAIL PROTECTED]
> >Sent: Monday, January 12, 2004 11:02 AM
> >To: Navjot Singh; [EMAIL PROTECTED]
> >Subject: RE: SMS replies to kannel
> >
> >
> >sorry I couldnt make it clear.
> >
> >actually My originating msisdn number plays the actual role. I am making
> it
> >whenever I am sending any request..
> >
> >lets say
> >Originating msisdn - 9810011111 (this is different for every request)
> >destination msisnd -9810436688
> >
> >
> >replies should be -
> >originating msisndn - 9810436688
> >destination msisdn - 9810011111
> >
> >
> >so my application will come to know what was the questions and what is
> the
> >reply.
> >
> >I have posted one more query if you have any idea....
> >
> >actully I am using openwave wappush library (wapppushlib.jar) for my
> >application. I am able to send request, I am also getting the
> >response but I
> >am not able to parse it in my application. I am using apis so I couldnt
> >resolve it even.
> >
> >
> > this is the trace of log.............
> >
> >*******************************************************************
> >*********
> >******************************************
> >>>   POST /wappush HTTP/1.1
> >>>   Host: localhost
> >>>   User-Agent: Openwave WAP Push Library, Java Edition 1.5
> >>>   Content-Type: multipart/related; type=application/xml;
> >boundary=WPL4woVbhES
> >dfalYevGqpdzLCs
> >>>   Content-Length: 849
> >>>
> >>>   --WPL4woVbhESdfalYevGqpdzLCs
> >>>   Content-Type: application/xml; charset=UTF-8
> >>>
> >>>   <?xml version="1.0"?>
> >>>   <!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN"
> >"http://www.wapforum.or
> >g/DTD/pap_1.0.dtd">
> >>>   <pap>
> >>>   <push-message push-id="1073882801206">
> >>>   <address
> >address-value="WAPPUSH=+919810310973/[EMAIL PROTECTED]"/>
> >>>   <quality-of-service priority="high" delivery-method="unconfirmed"
> >network="
> >GSM" network-required="true" bearer="SMS" bearer-required="true"/>
> >>>   </push-message>
> >>>   </pap>
> >>>   --WPL4woVbhESdfalYevGqpdzLCs
> >>>   Content-Type: text/vnd.wap.si; charset=UTF-8
> >>>
> >>>   <?xml version="1.0"?>
> >>>   <!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN"
> >>>   "http://www.wapforum.org/DTD/si.dtd";>
> >>>   <si>
> >>>   <indication href="http://www.yahoo.com/"; action="signal-high">
> >>>   WapPush Message. Please inform Nishant at 2157
> >>>   </indication>
> >>>   </si>
> >>>   --WPL4woVbhESdfalYevGqpdzLCs--
> ><<   HTTP/1.1 202 Foo
> ><<   Server: Kannel/1.2.1
> ><<   Content-Length: 390
> ><<   Content-Type: application/xml
> ><<
> ><<   <?xml version="1.0"?><!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP
> >1.0//EN" "h
> >ttp://www.wapforum.org/DTD/pap_1.0.dtd"><pap><push-response
> >push-id="10738828012
> >06" sender-name="delgtel103; WAP/1.3 (Kannel/1.2.1)"
> >reply-time="2004-01-12T04:4
> >6:43Z" sender-address="/wappush"></push-response><response-result code
> >="1001" d
> >esc="The request has been accepted for
> processing"></response-result></pap>
> >com.openwave.wappush.WapPushException: Connection timed out: connect
> >        at
> >com.openwave.wappush.ResponseBuilder.parseContent(ResponseBuilder.jav
> >a:114)
> >        at
> >com.openwave.wappush.PushResponseBuilder.build(PushResponseBuilder.ja
> >va:77)
> >        at com.openwave.wappush.Pusher.send(Pusher.java:239)
> >        at push.test.PushTest.testServiceIndicator(PushTest.java:96)
> >        at push.test.PushTest.main(PushTest.java:130)
> >*******************************************************************
> >*********
> >******************************************
> >
> >
> >I think this apis are expecting a replies to post request. Is it any way
> to
> >do it?
> >well if you can find out anything out the log please tell it to me. I am
> >into deep trouble and I have to solve this problem as soon as possible.
> >
> >
> >thanks and regards
> >nishant
> >
> >
> >
> >
> >> -----Original Message-----
> >> From:      Navjot Singh [SMTP:[EMAIL PROTECTED]
> >> Sent:      Monday, January 12, 2004 10:43 AM
> >> To:        Jain Nishant; [EMAIL PROTECTED]
> >> Subject:   RE: SMS replies to kannel
> >>
> >> >thanks for replying........
> >> >
> >> >I didnt notice this option in user guide.....
> >> >thanks alot!! I'll try this option..........
> >> >
> >> >one more thing........ if you dont mind... ;)
> >> >
> >> >Its OK i can write one programe that will listen http and speaks
> smpp...
> >>
> >> >but in my application I am making my own originating MSISDN number...
> >> there
> >> >are some rules I am following for that... the number of digits in
> >> >orginating
> >> >msisdn can vary... now if I recieve some replies it should be
> >on the same
> >> >msisdn number else there would be an error. Is there any option
> >so that I
> >> >can configure to store or recieve replies on the same msisdn number???
> >>
> >> sorry i am not clear. are you sending SMS having multiple FROM numbers
> OR
> >> the FROM is same but number of digits can vary like country code etc.
> >>
> >> <navjot/>
> >>
> >> >> -----Original Message-----
> >> >> From:   Navjot Singh [SMTP:[EMAIL PROTECTED]
> >> >> Sent:   Friday, January 09, 2004 08:55 PM
> >> >> To:     Jain Nishant
> >> >> Subject:        RE: SMS replies to kannel
> >> >>
> >> >> YES, if you forget your SMPP for a while.
> >> >>
> >> >> You send a SMS from A to B.
> >> >> B replies to A.
> >> >>
> >> >> A is the number configured for your GSM modem.
> >> >>
> >> >> You can configure sms-service in your kannel conf and set a
> catch-all
> >> >> option. that will enable to receive your application all the reply
> sms
> >> >> (for
> >> >> that matter any). This trigger will be in HTTP format.
> >> >>
> >> >> Now, if you listne only SMPP. You can a write a program that listens
> >> HTTP
> >> >> and speaks SMPP so that you listen SMPP.
> >> >>
> >> >> HTH
> >> >> Navjot Singh
> >> >>
> >> >> >-----Original Message-----
> >> >> >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >> >> >Behalf Of Jain Nishant
> >> >> >Sent: Wednesday, January 07, 2004 4:58 PM
> >> >> >To: [EMAIL PROTECTED]
> >> >> >Subject: SMS replies to kannel
> >> >> >
> >> >> >
> >> >> >Dear sir,
> >> >> > I am configuring kannel for SMS to GSM. My flow is like
> >> >> >
> >> >> > Application --> Kannel --> TC35 --> GSM.
> >> >> >
> >> >> > I have already configured kannel for sending sms to the GSM. Could
> >> you
> >> >> >please tell me if it is possible to configure kannel for sms
> Replies.
> >> >> > Suppose a sms is sent to the user, is it possible to route the
> >> >sms to my
> >> >> >application if the user replies to that sms? If it is possible
> please
> >> >> tell
> >> >> >it to me. My application can only send and recieve SMPP sms.
> >> >> >
> >> >> >
> >> >> >regards,
> >> >> >Nishant
> >> >> >
> >> >> >
> >> >
> >
> 

Reply via email to