wso2 Esb:传递SMPP请求时出错

时间:2017-01-03 12:36:20

标签: wso2esb smpp jsmpp

最近,我正在探索wso2 esb支持的SMPP协议选项。我关注了一些博客和网站,但是我收到了一个我无法解决的错误。

https://gayanlggd.wordpress.com/2014/12/19/sending-a-message-from-smsc-simulator-to-wso2-esb-using-smpp-transport/

SMPP using WSO2

SMS Transport sender in wso2 ESB

我的方案是通过SMPP协议向ESB发送消息。每当我通过SMPP发送消息时,我都会收到以下错误

 ERROR {org.apache.axis2.engine.AxisEngine} -  The service cannot be found for the endpoint reference (EPR)  {org.apache.axis2.engine.AxisEngine}
org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR)
        at org.apache.axis2.engine.DispatchPhase.validateTransport(DispatchPhase.java:251)
        at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:109)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:329)
        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
        at org.apache.axis2.transport.sms.SMSManager.dispatchToAxis2(SMSManager.java:162)
        at org.apache.axis2.transport.sms.smpp.SMPPDispatcher.dispatch(SMPPDispatcher.java:46)
        at org.apache.axis2.transport.sms.smpp.SMPPListener.onAcceptDeliverSm(SMPPListener.java:85)
        at org.jsmpp.session.SMPPSession.fireAcceptDeliverSm(SMPPSession.java:457)
        at org.jsmpp.session.SMPPSession.access$400(SMPPSession.java:92)
        at org.jsmpp.session.SMPPSession$ResponseHandlerImpl.processDeliverSm(SMPPSession.java:474)
        at org.jsmpp.session.state.SMPPSessionBoundRX.processDeliverSm0(SMPPSessionBoundRX.java:109)
        at org.jsmpp.session.state.SMPPSessionBoundRX.processDeliverSm(SMPPSessionBoundRX.java:51)
        at org.jsmpp.session.PDUProcessTask.run(PDUProcessTask.java:81)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

我的代理名称是“SmsProxyTest”,我尝试发送的消息是SmsProxyTest:mediate

我甚至不知道确切的邮件格式。

在users.txt中,我提到了以下细节:

name=esb
password=esb
timeout=unlimited
bound=t,r

代理:

<?xml version="1.0" encoding="UTF-8"?><proxy xmlns="http://ws.apache.org/ns/synapse" name="SmsProxyTest" startOnLoad="true" statistics="disable" trace="disable" transports="sms">
    <target>
        <inSequence>
            <log level="full"/>
        </inSequence>
        <outSequence/>
        <endpoint>
            <address uri="http://localhost:8080/services/checkMsisdn"/>
        </endpoint>
    </target>
    <description/>
</proxy>

Axis2.xml

<transportReceiver name="sms" class="org.apache.axis2.transport.sms.SMSMessageReciever">
    <parameter name="systemType">cp</parameter>
    <parameter name="systemId">esb</parameter>  
    <parameter name="password">esb</parameter>
    <parameter name="host">localhost</parameter>  
    <parameter name="port">7777</parameter>
    <parameter name="phoneNumber">918105735018</parameter>
</transportReceiver> 

除此之外,我已经放置了“axis2-transport-sms-1.0.0.jar”和“jsmpp-2.1.0.jar”。

你可以告诉我我错过了什么吗?

0 个答案:

没有答案