Send SMS thru ECC5
Hi
I need to send SMS from ECC5 on a particular Event.
Do i need an external SMS Server ?
what setting is required in SCOT for pager ?
Any help will be Highly Appreciated and Full Points will be rewared.
Regards
Rajendra
Moved to ECC6
Similar Messages
-
HT1430 I m unable to send sms thru any career , please help me.
I m unable to send sms thru any career , please help me.
SMS is a carrier feature.
Contact the carrier to troubleshoot. -
How to send SMS thru SMPP from PL/SQL
How to send SMS thru SMPP from PL/SQl or forms application. SMPP interface setuped in the SMSC. Requirement is send to SMS's to custoemrs thru our forms application.
How to send SMS thru SMPP from PL/SQl or forms application. SMPP interface setuped in the SMSC. Requirement is send to SMS's to custoemrs thru our forms application.
-
Sending sms from ecc5.0 to customers(third party)
hai experts !
i have a question for u
when we create a purchase order and click on the 'create' button internally an sms should be send automatically to the customers.
so, what configurations we should do regarding this?
can any one send them in detail?
actually i have gone through some settings in scot transaction but i dont no how to proceed later.pease help me what to do further?
byeeIn SCOT you need to create a node for the "Page (SMS)". Basis people can help you to set up this SAPConnect connection.
Than you can use the FM SO_NEW_DOCUMENT_SEND_API1 in the BADI which is being called in the PO processing to send the SMS.
In the Receivers table for the FM, you have to specify "K" as the receiver type.
Regards,
Naimesh Patel -
How to send SMS by using ABAP program
HI Gurus,
I need to notify the vendor through sms when his goods are received. His details are stored in vendor master.
My problem is that I am not able to find any function module for the same.
Do any of you know how to send 'sms' to particular mobile number using ABAP.
Are there any basis settings required for the same?
Thanks and Regards,
SaurabhHi,
Pls check the below links
http://help.sap.com/saphelp_nw04/helpdata/en/58/97c43af280463ee10000000a114084/frameset.htm
/people/ronen.fox/blog/2007/12/06/sending-sms-notification-via-business-workflow
http://www.****************/Tutorials/Workflow/Workflow.htm
You can use the FM: 'SO_DOCUMENT_SEND_API1' &
'SO_DOCUMENT_SEND_API1_NEW'.
to send the mail,sms etc.
But you have to make some chamnges in the reciever table, jus go thru FM documnetaion once, you will fine the option for sending SMS thru either of this FM.
Below is a sample code for sending e-mail.
so, u can take help from this.
data declarations
DATA : v_sender TYPE soextreci1-receiver,
v_doc TYPE sodocchgi1,
it_paklist TYPE STANDARD TABLE OF sopcklsti1 ,
wa_paklist TYPE sopcklsti1 ,
it_obj_head TYPE STANDARD TABLE OF solisti1 ,
it_obj_bin TYPE STANDARD TABLE OF solisti1 ,
it_obj_txt TYPE STANDARD TABLE OF solisti1 ,
it_obj_rcv TYPE STANDARD TABLE OF somlreci1 ,
wa_obj_rcv TYPE somlreci1 ,
v_desc(100).
CONSTANTS: c_start(12) TYPE c VALUE '000000000000001',
c_num(12) TYPE c VALUE '000000000000002',
c_num1(12) TYPE c VALUE '000000000010030',
c_raw(3) TYPE c VALUE 'RAW',
c_test(4) TYPE c VALUE 'TEST',
c_X(1) TYPE c VALUE 'X'.
refresh internal tables
REFRESH : it_paklist, it_obj_rcv.
clear internal tables
CLEAR : it_paklist, it_obj_rcv, v_sender.
v_sender = sy-uname.
fill internal table it_paklist
wa_paklist-head_start = c_start.
wa_paklist-head_num = c_num.
wa_paklist-body_start = c_start.
wa_paklist-body_num = c_num1.
wa_paklist-obj_name = c_test .
wa_paklist-doc_type = c_raw .
wa_paklist-transf_bin = c_X .
APPEND wa_paklist TO it_paklist.
clear: wa_paklist.
Data in the Header/subject Line
v_desc = text-005 .
v_doc-obj_name = c_objname .
v_doc-obj_descr = v_desc.
Mail text
APPEND v_desc TO it_obj_txt.
Preparing the receiver list
wa_obj_rcv-rec_type = 'U'.
wa_obj_rcv-rec_type = 'C'.
v_dlist = 'SCE_TEST'.
wa_obj_rcv-receiver = v_dlist. "Distribution list.
wa_obj_rcv-receiver = Enter the mail id .
APPEND wa_obj_rcv TO it_obj_rcv.
Call the function module to send mail
IF NOT it_obj_rcv[] IS INITIAL.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = v_doc
sender_address = v_sender
sender_address_type = 'B'
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = it_paklist
object_header = it_obj_head
contents_bin = it_obj_bin
contents_txt = it_obj_txt
receivers = it_obj_rcv
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc NE 0.
MESSAGE text-006 TYPE 'I' .
ENDIF.
ENDIF . -
Error in sending SMS through OCSG
Hi All,
I have a program which send SMS thru OCSG, but i am seeing following error after 30 to 45 minutes and after error again SMS broadcast successfully
I see errors in following file
C:\bea\user_projects\domains\ocsg-domain\servers\AdminServer\trace\default.log
24 Apr 2009 12:27:33,312 [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR com.bea.wlcp.wlng.plugin.sms.smpp.adapter.TransmitterProxyImpl - [Plugin_px21_short_messaging_smpp2#wlng_nt_sms_px21#4.1.0.0.1] exception-thrown SmsMessageStateSMPP com.bea.wlcp.wlng.plugin.sms.smpp.adapter.TransmitterProxyImpl.submitGsmSm(SmppShortMessage, int, int, SmsMessageStateSMPP)( [email protected]6d548,0,1739,SmsMessageState : messageID [null] serviceCorrelator [null] originatingAddress [321] notificationInfo [null] statusNotificationInfo [null] targetAddressStates [] segmentationId [0] nrOfMessageSegements [1] segmentIDs [] )
com.bea.wlcp.wlng.plugin.sms.smpp.adapter.TransmitterProxyException: Failed to submit message : Submit request timed out.
at com.bea.wlcp.wlng.plugin.sms.smpp.adapter.TransmitterProxyImpl.submitGsmSm(TransmitterProxyImpl.java:505)
at com.bea.wlcp.wlng.plugin.sms.smpp.SMPPPluginInstanceImpl.internalSendSmsCore(SMPPPluginInstanceImpl.java:1199)
at com.bea.wlcp.wlng.plugin.sms.smpp.SMPPPluginInstanceImpl.internalSendSmsPx(SMPPPluginInstanceImpl.java:1133)
at com.bea.wlcp.wlng.plugin.sms.smpp.SMPPPluginInstanceImpl.sendSms(SMPPPluginInstanceImpl.java:328)
at sun.reflect.GeneratedMethodAccessor1866.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.wlcp.wlng.interceptor.InvokePlugin.invokePlugin(InvokePlugin.java:177)
at com.bea.wlcp.wlng.interceptor.InvokePlugin.invokeSingleOptional(InvokePlugin.java:65)
at com.bea.wlcp.wlng.interceptor.InvokePlugin.invokePlugins(InvokePlugin.java:47)
at com.bea.wlcp.wlng.interceptor.InvokePlugin.invoke(InvokePlugin.java:33)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.EnforceSubscriberBudget.invoke(EnforceSubscriberBudget.java:70)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.EnforceNodeBudget.invoke(EnforceNodeBudget.java:109)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.RetryPlugin.invoke(RetryPlugin.java:40)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.InjectXParametersFromRequestContext.invoke(InjectXParametersFromRequestContext.java:35)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.EvaluateILOGPolicy.invoke(EvaluateILOGPolicy.java:29)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.ResultFilter.invoke(ResultFilter.java:37)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.InjectValuesInRequestContextFromSLA.invoke(InjectValuesInRequestContextFromSLA.java:27)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.EnforceBlacklistedMethodFromSLA.invoke(EnforceBlacklistedMethodFromSLA.java:30)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.CheckMethodParametersFromSLA.invoke(CheckMethodParametersFromSLA.java:34)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.FindAndValidateSLAContract.invoke(FindAndValidateSLAContract.java:42)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.InvokeServiceCorrelation.invoke(InvokeServiceCorrelation.java:43)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.RoundRobinPluginList.invoke(RoundRobinPluginList.java:44)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.RemoveOptional.invoke(RemoveOptional.java:28)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.FilterPluginListUsingCustomMatch.invoke(FilterPluginListUsingCustomMatch.java:40)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.RemoveInvalidRoute.invoke(RemoveInvalidRoute.java:55)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.CreatePolicyData.invoke(CreatePolicyData.java:25)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.RemoveInactivePlugin.invoke(RemoveInactivePlugin.java:39)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.CreatePluginList.invoke(CreatePluginList.java:59)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.ValidateRequestUsingRequestFactory.invoke(ValidateRequestUsingRequestFactory.java:41)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.EnforceSpAppBudget.invoke(EnforceSpAppBudget.java:70)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.EnforceApplicationState.invoke(EnforceApplicationState.java:71)
at com.bea.wlcp.wlng.plugin.PluginManagerImpl.invokeInterceptors(PluginManagerImpl.java:84)
at com.bea.wlcp.wlng.plugin.PluginManagerImpl.processRequest(PluginManagerImpl.java:58)
at com.bea.wlcp.wlng.util.EJBHelper.processRequest(EJBHelper.java:42)
at com.bea.wlcp.wlng.px21.ejb.SendSmsEjbImpl.sendSms(SendSmsEjbImpl.java:79)
at com.bea.wlcp.wlng.px21.ejb.SendSms_25ojqb_EOImpl.sendSms(SendSms_25ojqb_EOImpl.java:138)
at com.bea.wlcp.wlng.px21.ejb.SendSms_25ojqb_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at com.bea.wlcp.wlng.px21.ejb.SendSms_25ojqb_EOImpl_1030_WLStub.sendSms(Unknown Source)
at com.bea.wlcp.wlng.px21.jws.SendSmsWsImpl.sendSms(Unknown Source)
at sun.reflect.GeneratedMethodAccessor659.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassComponent.java:112)
at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(ComponentHandler.java:84)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:114)
at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:285)
at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:169)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3501)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2089)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
24 Apr 2009 12:27:33,312 [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR com.bea.wlcp.wlng.plugin.sms.smpp.SMPPManagedPluginImpl - [Plugin_px21_short_messaging_smpp2#wlng_nt_sms_px21#4.1.0.0.1] Unable to send mobile terminated message.
com.bea.wlcp.wlng.plugin.sms.smpp.adapter.TransmitterProxyException: Failed to submit message : Submit request timed out.
at com.bea.wlcp.wlng.plugin.sms.smpp.adapter.TransmitterProxyImpl.submitGsmSm(TransmitterProxyImpl.java:505)
at com.bea.wlcp.wlng.plugin.sms.smpp.SMPPPluginInstanceImpl.internalSendSmsCore(SMPPPluginInstanceImpl.java:1199)
at com.bea.wlcp.wlng.plugin.sms.smpp.SMPPPluginInstanceImpl.internalSendSmsPx(SMPPPluginInstanceImpl.java:1133)
at com.bea.wlcp.wlng.plugin.sms.smpp.SMPPPluginInstanceImpl.sendSms(SMPPPluginInstanceImpl.java:328)
at sun.reflect.GeneratedMethodAccessor1866.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.wlcp.wlng.interceptor.InvokePlugin.invokePlugin(InvokePlugin.java:177)
at com.bea.wlcp.wlng.interceptor.InvokePlugin.invokeSingleOptional(InvokePlugin.java:65)
at com.bea.wlcp.wlng.interceptor.InvokePlugin.invokePlugins(InvokePlugin.java:47)
at com.bea.wlcp.wlng.interceptor.InvokePlugin.invoke(InvokePlugin.java:33)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.EnforceSubscriberBudget.invoke(EnforceSubscriberBudget.java:70)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.EnforceNodeBudget.invoke(EnforceNodeBudget.java:109)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.RetryPlugin.invoke(RetryPlugin.java:40)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.InjectXParametersFromRequestContext.invoke(InjectXParametersFromRequestContext.java:35)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.EvaluateILOGPolicy.invoke(EvaluateILOGPolicy.java:29)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.ResultFilter.invoke(ResultFilter.java:37)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.InjectValuesInRequestContextFromSLA.invoke(InjectValuesInRequestContextFromSLA.java:27)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.EnforceBlacklistedMethodFromSLA.invoke(EnforceBlacklistedMethodFromSLA.java:30)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.CheckMethodParametersFromSLA.invoke(CheckMethodParametersFromSLA.java:34)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.FindAndValidateSLAContract.invoke(FindAndValidateSLAContract.java:42)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.InvokeServiceCorrelation.invoke(InvokeServiceCorrelation.java:43)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.RoundRobinPluginList.invoke(RoundRobinPluginList.java:44)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.RemoveOptional.invoke(RemoveOptional.java:28)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.FilterPluginListUsingCustomMatch.invoke(FilterPluginListUsingCustomMatch.java:40)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.RemoveInvalidRoute.invoke(RemoveInvalidRoute.java:55)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.CreatePolicyData.invoke(CreatePolicyData.java:25)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.RemoveInactivePlugin.invoke(RemoveInactivePlugin.java:39)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.CreatePluginList.invoke(CreatePluginList.java:59)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.ValidateRequestUsingRequestFactory.invoke(ValidateRequestUsingRequestFactory.java:41)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.EnforceSpAppBudget.invoke(EnforceSpAppBudget.java:70)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.EnforceApplicationState.invoke(EnforceApplicationState.java:71)
at com.bea.wlcp.wlng.plugin.PluginManagerImpl.invokeInterceptors(PluginManagerImpl.java:84)
at com.bea.wlcp.wlng.plugin.PluginManagerImpl.processRequest(PluginManagerImpl.java:58)
at com.bea.wlcp.wlng.util.EJBHelper.processRequest(EJBHelper.java:42)
at com.bea.wlcp.wlng.px21.ejb.SendSmsEjbImpl.sendSms(SendSmsEjbImpl.java:79)
at com.bea.wlcp.wlng.px21.ejb.SendSms_25ojqb_EOImpl.sendSms(SendSms_25ojqb_EOImpl.java:138)
at com.bea.wlcp.wlng.px21.ejb.SendSms_25ojqb_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at com.bea.wlcp.wlng.px21.ejb.SendSms_25ojqb_EOImpl_1030_WLStub.sendSms(Unknown Source)
at com.bea.wlcp.wlng.px21.jws.SendSmsWsImpl.sendSms(Unknown Source)
at sun.reflect.GeneratedMethodAccessor659.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassComponent.java:112)
at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(ComponentHandler.java:84)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:114)
at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:285)
at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:169)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3501)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2089)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
24 Apr 2009 12:27:33,312 [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR com.bea.wlcp.wlng.plugin.sms.smpp.SMPPPluginInstanceImpl - [Plugin_px21_short_messaging_smpp2#wlng_nt_sms_px21#4.1.0.0.1] exception-thrown SmsMessageStateSMPP[] com.bea.wlcp.wlng.plugin.sms.smpp.SMPPPluginInstanceImpl.internalSendSmsCore(StatusNotificationInfo, String, String, String, RequestContext, SmppShortMessage)( null,null,cc_app_user,321,com.bea.wlcp.wlng.plugin.context.RequestContextImpl@156ddb9,[email protected]6d548 )
org.csapi.schema.parlayx.common.v2_1.ServiceException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.bea.wlcp.wlng.px21.common.ExceptionCatalogImpl$ExceptionInfoImpl.newInstance(ExceptionCatalogImpl.java:456)
at com.bea.wlcp.wlng.px21.common.PxExceptionHelper.exception(PxExceptionHelper.java:83)
at com.bea.wlcp.wlng.px21.common.PxExceptionHelper.serviceException(PxExceptionHelper.java:177)
at com.bea.wlcp.wlng.px21.common.PxExceptionHelper.throwServiceException(PxExceptionHelper.java:33)
at com.bea.wlcp.wlng.px21.common.PxExceptionHelper.throwServiceException(PxExceptionHelper.java:18)
at com.bea.wlcp.wlng.plugin.sms.smpp.SMPPPluginInstanceImpl.internalSendSmsCore(SMPPPluginInstanceImpl.java:1216)
at com.bea.wlcp.wlng.plugin.sms.smpp.SMPPPluginInstanceImpl.internalSendSmsPx(SMPPPluginInstanceImpl.java:1133)
at com.bea.wlcp.wlng.plugin.sms.smpp.SMPPPluginInstanceImpl.sendSms(SMPPPluginInstanceImpl.java:328)
at sun.reflect.GeneratedMethodAccessor1866.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.wlcp.wlng.interceptor.InvokePlugin.invokePlugin(InvokePlugin.java:177)
at com.bea.wlcp.wlng.interceptor.InvokePlugin.invokeSingleOptional(InvokePlugin.java:65)
at com.bea.wlcp.wlng.interceptor.InvokePlugin.invokePlugins(InvokePlugin.java:47)
at com.bea.wlcp.wlng.interceptor.InvokePlugin.invoke(InvokePlugin.java:33)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.EnforceSubscriberBudget.invoke(EnforceSubscriberBudget.java:70)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.EnforceNodeBudget.invoke(EnforceNodeBudget.java:109)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.RetryPlugin.invoke(RetryPlugin.java:40)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.InjectXParametersFromRequestContext.invoke(InjectXParametersFromRequestContext.java:35)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.EvaluateILOGPolicy.invoke(EvaluateILOGPolicy.java:29)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.ResultFilter.invoke(ResultFilter.java:37)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.InjectValuesInRequestContextFromSLA.invoke(InjectValuesInRequestContextFromSLA.java:27)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.EnforceBlacklistedMethodFromSLA.invoke(EnforceBlacklistedMethodFromSLA.java:30)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.CheckMethodParametersFromSLA.invoke(CheckMethodParametersFromSLA.java:34)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.FindAndValidateSLAContract.invoke(FindAndValidateSLAContract.java:42)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.InvokeServiceCorrelation.invoke(InvokeServiceCorrelation.java:43)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.RoundRobinPluginList.invoke(RoundRobinPluginList.java:44)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.RemoveOptional.invoke(RemoveOptional.java:28)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.FilterPluginListUsingCustomMatch.invoke(FilterPluginListUsingCustomMatch.java:40)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.RemoveInvalidRoute.invoke(RemoveInvalidRoute.java:55)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.CreatePolicyData.invoke(CreatePolicyData.java:25)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.RemoveInactivePlugin.invoke(RemoveInactivePlugin.java:39)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.CreatePluginList.invoke(CreatePluginList.java:59)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.ValidateRequestUsingRequestFactory.invoke(ValidateRequestUsingRequestFactory.java:41)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.EnforceSpAppBudget.invoke(EnforceSpAppBudget.java:70)
at com.bea.wlcp.wlng.interceptor.ContextImpl.invokeNext(ContextImpl.java:87)
at com.bea.wlcp.wlng.interceptor.EnforceApplicationState.invoke(EnforceApplicationState.java:71)
at com.bea.wlcp.wlng.plugin.PluginManagerImpl.invokeInterceptors(PluginManagerImpl.java:84)
at com.bea.wlcp.wlng.plugin.PluginManagerImpl.processRequest(PluginManagerImpl.java:58)
at com.bea.wlcp.wlng.util.EJBHelper.processRequest(EJBHelper.java:42)
at com.bea.wlcp.wlng.px21.ejb.SendSmsEjbImpl.sendSms(SendSmsEjbImpl.java:79)
at com.bea.wlcp.wlng.px21.ejb.SendSms_25ojqb_EOImpl.sendSms(SendSms_25ojqb_EOImpl.java:138)
at com.bea.wlcp.wlng.px21.ejb.SendSms_25ojqb_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at com.bea.wlcp.wlng.px21.ejb.SendSms_25ojqb_EOImpl_1030_WLStub.sendSms(Unknown Source)
at com.bea.wlcp.wlng.px21.jws.SendSmsWsImpl.sendSms(Unknown Source)
at sun.reflect.GeneratedMethodAccessor659.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassComponent.java:112)
at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(ComponentHandler.java:84)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:114)
at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:285)
at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:169)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3501)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2089)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
24 Apr 2009 12:27:33,312 [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR com.bea.wlcp.wlng.plugin.sms.smpp.SMPPPluginInstanceImpl - [Plugin_px21_short_messaging_smpp2#wlng_nt_sms_px21#4.1.0.0.1] exception-thrown String com.bea.wlcp.wlng.plugin.sms.smpp.SMPPPluginInstanceImpl.internalSendSmsPx(URI[], String, ChargingInformation, String, int, SmsFormat, SimpleReference)( [Ljava.net.URI;@1f6d2b6,tel:321,null,helo message,-1,null,null )
org.csapi.schema.parlayx.common.v2_1.ServiceException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.bea.wlcp.wlng.px21.common.ExceptionCatalogImpl$ExceptionInfoImpl.newInstance(ExceptionCatalogImpl.java:456)
at com.bea.wlcp.wlng.px21.common.PxExceptionHelper.exception(PxExceptionHelper.java:83)
at com.bea.wlcp.wlng.px21.common.PxExceptionHelper.serviceException(PxExceptionHelper.java:177)
at com.bea.wlcp.wlng.px21.common.PxExceptionHelper.throwServiceException(PxExceptionHelper.java:33)
at com.bea.wlcp.wlng.px21.common.PxExceptionHelper.throwServiceException(PxExceptionHelper.java:18)
at com.bea.wlcp.wlng.plugin.sms.smpp.SMPPPluginInstanceImpl.internalSendSmsCore(SMPPPluginInstanceImpl.java:1216)
at com.bea.wlcp.wlng.plugin.sms.smpp.SMPPPluginInstanceImpl.internalSendSmsPx(SMPPPluginInstanceImpl.java:1133)
at com.bea.wlcp.wlng.plugin.sms.smpp.SMPPPluginInstanceImpl.sendSms(SMPPPluginInstanceImpl.java:328)
at sun.reflect.GeneratedMethodAccessor1866.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Regards,Not sure , If you are still looking for info.
At the minimum, You need to execute following operations on mbeans.
<mbean type="com.bea.wlcp.wlng.account.management.ApplicationGroupMBean">
<invoke operation="addServiceProviderGroup">
<value name="group">default_sp_group</value>
</invoke>
<invoke operation="addApplicationGroup">
<value name="group">default_app_group</value>
</invoke>
</mbean>
<mbean type="com.bea.wlcp.wlng.account.management.ServiceLevelAgreementMBean">
<invoke operation="loadServiceProviderGroupSla">
<value name="group">default_sp_group</value>
<value name="sla" file="d:/pm/ocsgsetup/default_sp_group.xml"/>
</invoke>
<invoke operation="loadApplicationGroupSla">
<value name="group">default_app_group</value>
<value name="sla" file="d:/pm/ocsgsetup/default_app_group.xml"/>
</invoke>
</mbean>
<mbean type="com.bea.wlcp.wlng.account.management.ApplicationAccountMBean">
<invoke operation="addServiceProviderAccount">
<value name="serviceProvider">default_provider</value>
<value name="group">default_sp_group</value>
<value name="reference">default_provider</value>
</invoke>
<invoke operation="addApplicationAccount">
<value name="application">app_domain1</value>
<value name="serviceProvider">default_provider</value>
<value name="group">default_app_group</value>
<value name="reference">default_app_group</value>
</invoke>
</mbean>
<mbean type="com.bea.wlcp.wlng.account.management.ApplicationInstanceMBean">
<invoke operation="addApplicationInstance">
<value name="applicationInstanceName">domain_user</value>
<value name="password">domain_user</value>
<value name="application">app_domain1</value>
<value name="serviceProvider">default_provider</value>
<value name="reference">domain_user</value>
</invoke>
</mbean>
<mbean type="com.bea.wlcp.wlng.plugin.PluginManagerMBean">
<invoke operation="createPluginInstance">
<value name="PluginServiceId">Plugin_px21_short_messaging_smpp</value>
<value name="PluginInstanceId">Plugin_px21_short_messaging_smpp</value>
</invoke>
<invoke operation="addRoute">
<value name="id">Plugin_px21_short_messaging_smpp</value>
<value name="addressExpression">^.*$</value>
</invoke>
</mbean>
+ you've to add atleast blank SLAs.
Then start the simulators in PTE and connnect the client. -
How to send sms from pc to various mobile service in india
I am trying to send sms from my pc to various service provider(airtel, hutch, bsnl).But i am able to send only to airtel connection(using thier website : [email protected]). But i am unable to send to other service provider. Or is it required to have SMS centre(SMSC) for sending SMS And also how inditimes 8888 will work(automatic replay for SMS)
Anybody can help in this topic
Thanking youdo google search. there are a lot of free sms gateways available over the internet. they come with java apis too. generally speaking, an sms can be sent to a phone only thru its SMSC. however, some sms gateways need you to connect a mobile to your com port so that they can send sms thru that. (in that case the sms flow will be like this: yourcomputer --> your mobile --> your mobile's smsc --> receiving phone's smsc --> receiver phone) hope i have not confused you..
regards
raamam -
Hi Expert,
How can I send SMS from SAP.
RRHi,
You can use the FM: 'SO_DOCUMENT_SEND_API1' &
'SO_DOCUMENT_SEND_API1_NEW'.
to send the mail,sms etc.
But you have to make some chamnges in the reciever table, jus go thru FM documnetaion once, you will fine the option for sending SMS thru either of this FM.
I've used it to send mail.
Below is a sample code i used for sending e-mail.
so, u can take help from this.
data declarations
DATA : v_sender TYPE soextreci1-receiver,
v_doc TYPE sodocchgi1,
it_paklist TYPE STANDARD TABLE OF sopcklsti1 ,
wa_paklist TYPE sopcklsti1 ,
it_obj_head TYPE STANDARD TABLE OF solisti1 ,
it_obj_bin TYPE STANDARD TABLE OF solisti1 ,
it_obj_txt TYPE STANDARD TABLE OF solisti1 ,
it_obj_rcv TYPE STANDARD TABLE OF somlreci1 ,
wa_obj_rcv TYPE somlreci1 ,
v_desc(100).
CONSTANTS: c_start(12) TYPE c VALUE '000000000000001',
c_num(12) TYPE c VALUE '000000000000002',
c_num1(12) TYPE c VALUE '000000000010030',
c_raw(3) TYPE c VALUE 'RAW',
c_test(4) TYPE c VALUE 'TEST',
c_X(1) TYPE c VALUE 'X'.
refresh internal tables
REFRESH : it_paklist, it_obj_rcv.
clear internal tables
CLEAR : it_paklist, it_obj_rcv, v_sender.
v_sender = sy-uname.
fill internal table it_paklist
wa_paklist-head_start = c_start.
wa_paklist-head_num = c_num.
wa_paklist-body_start = c_start.
wa_paklist-body_num = c_num1.
wa_paklist-obj_name = c_test .
wa_paklist-doc_type = c_raw .
wa_paklist-transf_bin = c_X .
APPEND wa_paklist TO it_paklist.
clear: wa_paklist.
Data in the Header/subject Line
v_desc = text-005 .
v_doc-obj_name = c_objname .
v_doc-obj_descr = v_desc.
Mail text
APPEND v_desc TO it_obj_txt.
Preparing the receiver list
wa_obj_rcv-rec_type = 'U'.
wa_obj_rcv-rec_type = 'C'.
v_dlist = 'SCE_TEST'.
wa_obj_rcv-receiver = v_dlist. "Distribution list.
wa_obj_rcv-receiver = '[email protected]' .
APPEND wa_obj_rcv TO it_obj_rcv.
Call the function module to send mail
IF NOT it_obj_rcv[] IS INITIAL.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = v_doc
sender_address = v_sender
sender_address_type = 'B'
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = it_paklist
object_header = it_obj_head
contents_bin = it_obj_bin
contents_txt = it_obj_txt
receivers = it_obj_rcv
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc NE 0.
MESSAGE text-006 TYPE 'I' .
ENDIF.
ENDIF .
Please reward points, if its helpful.
Regards,
Abhishek -
Sending messages thru email and SMS without using XMS APIs
Hi,
I already have some working code that sends messages thru email and SMS. But currently it uses XMS APIs therefore I have a dependency on files like wdk.jar. I want to try and eliminate using the XMS APIs and only use soap to send these messages. I was wondering if there is some documentation available on how I can do this. Also if there a lot of code that needs to be written to do that.
I primarily want a very simple application that sends only string messages and reduce my dependencies.
I would really appreciate all the advice.
Thanks,
Sonali NathHi,
You may refer to the following links to check if they help:
Sending SCCM Status Messages from MDT Scripts.
Send SCCM task sequence email report
Regards,
Sabrina -
I am trying to make a java code that sends SMS using a website that offers free SMS http://www.starhub.com.sg/starfun/index.asp
my code is as following:-
import java.net.*;
import java.io.*;
import java.util.*;
public class printMIMEHeader {
public static void main(String args[]) {
URL u;
URLConnection uc;
String header;
try {
u = new URL("http://www.starhub.com.sg/starfun/index.asp");
uc = u.openConnection();
for (int j = 1; ; j++) {
header = uc.getHeaderField(j);
if (header == null) {
break;
System.out.println(uc.getHeaderFieldKey(j) + " " + header);
} // end for
String setCookie = uc.getHeaderField("Set-Cookie");
System.out.println(" " + setCookie);
int index = setCookie.indexOf(";");
if (index >= 0) {
setCookie = setCookie.substring(0, index);
System.out.println(" " + setCookie);
u = new URL("http://www.starhub.com.sg/servlet/SMSServlet");
uc = u.openConnection();
uc.setRequestProperty("Cookie", setCookie);
uc.setRequestProperty("referer","/d3fault.asp");
uc.setRequestProperty("mobile", "91910069");
uc.setRequestProperty("msg", "hi");
uc.setRequestProperty("SendSMS","Send SMS");
BufferedReader in = new BufferedReader(new InputStreamReader(uc.
getInputStream()));
int c;
while ( (c = in.read()) != -1) {
System.out.print( (char) c);
in.close();
} // end try
catch (MalformedURLException e) {
System.err.println("This is not a URL I understand." + e);
catch (IOException e) {
System.err.println(e);
//} // end for
} // end main
} // end printMIMEHeader
I am getting the following exception:-
This is not a URL I understand.java.net.MalformedURLException: no protocol: nullPlea
se%20sent%20your%20sms%20thru'%20our%20website.
well it is quite clear that this website is not allowing to POST request thru java code and forces us to visit their website. I just want to know if there is some work around for this problem.
ne help is appreciatedm, thanx in advance.
cheers,
debHeres what i found from sum previous forums for ur reference
http://forum.java.sun.com/thread.jsp?forum=29&thread=33055
For Sending SMS through Java Program, u can refer to an open source website (SMS Gateway) such as:
http://kannel.org
Currently there is no service provider which lets u send SMS free of cost. If u r really inclined on sending SMS then u can visit site:
http://www.simplewire.com
(But I think they have also made it as paid service atleast for India users)
You have to first register in this site. After registration it will give you subscriber_id & password. Download the API for sending SMS and put the jar files in classpath.
I am also attaching a small program which sends SMS for your reference:
import com.simplewire.sms.*;
public class send_text
public static void main(String[] args) throws Exception
SMS sms = new SMS();
// Subscriber Settings
sms.setSubscriberID("225-745-372-63009");//"123-456-789-12345");
sms.setSubscriberPassword("C96B0472");//"Password Goes Here");
// Message Settings
sms.setMsgPin("+915623738280");//"+1 100 510 1234");
sms.setMsgFrom("Paritosh");
sms.setMsgCallback("+917623736528");
sms.setMsgText("Hi ....how r u ?");
System.out.println("Sending message to Simplewire...");
// Send Message
sms.msgSend();
// Check For Errors
if(sms.isSuccess()){
System.out.println("Message was sent!");
else {
System.out.println("Message was not sent!");
System.out.println("Error Code: " + sms.getErrorCode());
System.out.println("Error Description: " + sms.getErrorDesc());
System.out.println("Error Resolution: " + sms.getErrorResolution() +
"\n");
Hope this helps
Rohan -
Sending SMS with Simplewire SDK to a specific port, not working
Hi,
I guess most ppls are familiar with the simplewire SDK. I tried sending SMS to a port on my number thru the SimpleWire SDK but I guess it is not delivering the the apt port.
The reason is quite simple:
I tired sending to the same port on the same phone thru the java wireless API on the same phone and the midlet picked up the SMS.
Anytime I send thru the Simplewire SDK, it comes to the phone (though my ringtone never rings, which suggest it may not going to the default port), but my midlet never picks.
I am suspectign the mode of settin the port may be faulty. Here is my settings
SMS sms = new SMS();
sms.setDestPort(port);
// Where port = (short) 16000I don�t know but i use the JAVA ME JSR 120
import javax.microedition.io.*;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
import javax.wireless.messaging.*;
public class SmsConnecter // implements MessageListener
String port = "5001";
public SmsConnecter()
public boolean sendSMS(byte data[]) {
try {
String destAddress = "sms://4681234567:5001";
MessageConnection smsConnection =
(MessageConnection)Connector.open(destAddress);
//Create binary message
BinaryMessage binaryMSG = (BinaryMessage)smsConnection.newMessage(
MessageConnection.BINARY_MESSAGE);
//Setting destination add
binaryMSG.setAddress(destAddress);
//Add payload data
binaryMSG.setPayloadData(data);
//Now send the message
smsConnection.send(binaryMSG);
smsConnection.close();
return true;
} catch(Exception e) {
//System.out.println("e="+e);
return false;
}Ad about port...
Port number Description
2805 WAP WTA secure connection-less session service
2923 WAP WTA secure session service
2948 WAP Push connectionless session service (client side)
2949 WAP Push secure connectionless session service (client side)
5502 Service Card reader
5503 Internet access configuration reader
5508 Dynamic Menu Control Protocol
5511 Message Access Protocol
5512 Simple Email Notification
9200 WAP connectionless session service
9201 WAP session service
9202 WAP secure connectionless session service
9203 WAP secure session service
9207 WAP vCal Secure
49996 SyncML OTA configuration
49999 WAP OTA configuration
//Mickenull -
8350i Cannot send SMS only MMS. Nextel says BB don't support SMS.
I just got my 8350i (BB with Nextel). I love it, but I am unable to send SMS. My understanding is that SMS is the same as a text message. When I send text messages to people, it appears as something that they have to go to the internet to download the text. Even if I say HI as the text, it makes them download the message. My guess is that the BB is chaning my message to a MMS, instead of a SMS. I called Nextel and they said that blackberrys don't support sms. Is this true?
If so what in the !$%@ are they thinking?Hello everyone ! I really hope that this information is good and I hope to save you time and a bad time, since I went thru this whole bad situation. I want to let Sprint PCS know that in order to have a good phone such as this BB 8350i they need to train their representatives about this phone, nobody seems to know what is going on about their new phones. I spent almost 1 hour in the phone with a Sprint PCS/Nextel representative trying to work my 8350i and he end up telling me that this phone WAS NOT SMS CAPABLE WHEN IT IS !!!
Anyway I had the same problem, I couldn't send SMS here is what I did; I called 611 from another nextel phone to get technical support, once one of them pick up ask them to tranfer you to Blackberry support. I am guessing Sprint has a special BB tech support or they transfer you to the BB Tech support center, which by the way if you call without being transfered from Sprint they will charge you $45 to TRY to fix the problem, solution may not be guarantee. Once I got tranfered to the BB tech support from sprint I has to make a couple of configuration changes such as the Firewall options, then options/advanced options/Browser push and finally somehow my BB was able to send and recieve SMS without no problem. Here are the Sprint tech support numbers :
Dial *2, press Talk
or
888-211-4727 (Sprint phones)
800-639-6111 (Nextel phones)
800-877-4646 (Wireline services)
So basically the 8350i IS CAPABLE OF SMS, if your nextel respresentative says it is not, hang up and call again a lot of the sprint/nextel representative are not good at all, I has so many bad incidents with sprint that I can even remember one time this ladie started yelling at me ! anyway call them and they should be able to fix the problem for you -
hi all
i want to set SMS when Sales Order is created .
tell me is is possbile in ECC6.0 or need any configuration
tell me how to do that.
regards
ulhasHi,
though I havent done it,
to my knowledge you need to have registered to a service provider (mobile),
so anytime your WF triggers, it would identify the number and send it thru this protocol.
This service provider routes all your SMS to any mobile numbers, for this you also need to have HTTP maintained in your SCOT.
I havent heard of any standard task.
Aditya -
Hi All
My requirement is I want to send SMS to Vendor when order is placed thru ME21N tcode. Can any one tell me how do I proceed.
Regards,
Rajesh VasudevaHi,
You can opt for the Vendors who provide SMS Web Services.
Kindly go through the belwo link using SAP as an option....
Link: [SMS through SAP;
Regards
Arbind -
HT3529 i am unable to send sms from my iphone 4s
i am unable to send sms from my iphone 4s
Try Settings > General > Reset > Reset Network Settings.
If that does not resolve, SMS is a carrier feature, contact the carrier.
Maybe you are looking for
-
Backup error after kernel patch upgrade
Hi. I have a backup problem after the kernel patch upgrade. I have SAP R3 4.6C on HPUX11.0 with an Oracle 8.17 database. I have upgraded kernel patch from 1655 to 2337. Afterward, I am getting following backup error: BR280I Time stamp 2007-11-06 09.
-
HT5622 Will my Iphone 4S bought in Australia,work in Russia with russian sim card?
Will my Iphone 4S bought in Australia,work in Russia with russian sim card?
-
OVM Servers trying to start non-existing VM??
Hi, all of my OVM servers log(AdminServer.log) are continually reporting error message: [2011-10-24 16:33:25 15835] ERROR (OVSCommons:142) catch_error: Command: ['xm', 'create', '/OVS/Repositories/0004fb0000030000944aa10331c83564/VirtualMachines/0004
-
Laptop freezes on HP logo during boot
We have a Pavilion Dv5 running 32-bit Windows 7. Today when my wife went to wake it (it locks and shuts off the screen after half an hour of no use) it instead reboot itself. When it boots, it immediately gets stuck on the screen with the HP logo. I'
-
i installed windows 7 via bootcamo itself!... the installation nd stuff went all well!... but now my macbook it luncking only windows 7 automaticaly when ever i switch it on! plzz tell me how to switch which back to os x mavericks.... plzz help me wi