Hi Biruntha,

These are the exact fixes we need to improve with the connector. Otherwise
no pointing implementing the same thing. We need to have a better version
of existing transport with connector.

Axis2 transport is something for you to get an idea. We need to have a
better version for connector.

With connector not an good idea to depend on axis2 modules, better to
implement logic within the connector itself.

On Sat, Jun 11, 2016 at 8:32 PM, Biruntha Gnaneswaran <[email protected]>
wrote:

> Hi Rajjaz,
>
> The above problem is not for the case “without specifying "system Id" or
> "password" ".  This is for the " wrong "system Id" or "password" ".
>
> Thankyou
>
> Biruntha
>
> Associate Software Engineer
> WSO2
> Email : [email protected]
>
> On Sat, Jun 11, 2016 at 3:47 PM, Biruntha Gnaneswaran <[email protected]>
> wrote:
>
>> Hi Rajjaz,
>>
>> Yes SMSMesage  throws AxisFault.
>> I try without general exception. but i'm facing the same problem. because 
>> sentInfo()
>> is different.
>>
>> for example i try this without specifying "system Id" or "password". so, this
>> was checked [getSystemId(),getPassword()] under sendSMS() method in
>> SMPPImplManager class. So only i’m getting *"Unable to Connect "* error
>> message in *log*.
>>
>> Thankyou
>>
>> Biruntha
>>
>> Associate Software Engineer
>> WSO2
>> Email : [email protected]
>>
>> On Sat, Jun 11, 2016 at 3:22 PM, Rajjaz Mohammed <[email protected]> wrote:
>>
>>> Hi Biruntha,
>>>
>>> Why do you want to catch a general exception here?
>>>
>>> You can simply catch AxisFault since SMSMesage uses axis2 transport and
>>> throws AxisFault.
>>>
>>> try {
>>>     smsMessage = new SMSMessage(SMPPConstants.SENDER, phoneNo, message, 
>>> SMSMessage.OUT_MESSAGE);
>>>     manager.sentInfo(smsMessage);
>>> } catch (AxisFault axisFault) {
>>>     handleException("Error while sending SMS: " + axisFault.getMessage(), 
>>> messageContext);
>>> }
>>>
>>>
>>> On Fri, Jun 10, 2016 at 4:04 PM, Biruntha Gnaneswaran <[email protected]
>>> > wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> I want to send SMS using axis2 SMS Transport [1] . I try with below
>>>> code. It works fine in normal case. Here sentInfo() is used to send
>>>> SMS. But if there is an exception in sentInfo() method, I couldn’t
>>>> catch that exception from my code. Because sendSMS() method in
>>>> SMPPImplManager class didn’t throw any exception.
>>>>
>>>> Is there any way to solve this problem?
>>>>
>>>> *try *{    smsMessage = *new *SMSMessage(sender,phoneNo,message,*2*);    
>>>> manager.sentInfo(smsMessage);    *log*.info(*"Successfully completed 
>>>> sending SMS"*);} *catch *(Exception e){    handleException(*"Error while 
>>>> sending SMS: " *+ e.getMessage(), e, messageContext);}
>>>>
>>>> [1]
>>>> https://github.com/wso2/wso2-axis2-transports/tree/master/modules/sms/src/main/java/org/apache/axis2/transport/sms
>>>>
>>>> Thankyou,
>>>>
>>>> Biruntha
>>>>
>>>> Associate Software Engineer
>>>> WSO2
>>>> Email : [email protected]
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> [email protected]
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Thank you
>>> Best Regards
>>>
>>> *Rajjaz HM*
>>> Associate Software Engineer
>>> Platform Extension Team
>>> WSO2 Inc. <http://wso2.com/>
>>> lean | enterprise | middleware
>>> Mobile | +94752833834|+94777226874
>>> Email   | [email protected]
>>> LinkedIn <https://lk.linkedin.com/in/hmohammedrajjaz> | Blogger
>>> <http://rajjazhm.blogspot.com/> | WSO2 Profile
>>> <http://wso2.com/about/team/mohammer-rajjaz/>
>>>
>>
>>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

Malaka Silva
Senior Technical Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/
<http://wso2.com/about/team/malaka-silva/>
https://store.wso2.com/store/

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to