0

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

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

使用 WSO2 的 SMPP

wso2 ESB 中的 SMS 传输发送方

我的方案是通过 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”。

你能告诉我我错过了什么吗?

4

0 回答 0