3

最近、 WSo2 esb を使用した SMS 通知の送信に関する記事を読みました。残念ながら、私にはうまくいきません。これらの構成のいくつかについては 100% 確信が持てません。以下は私が抱えている問題です。

  1. 以下の 2 つのファイル以外に、SMPP を介した SMS トランスポート送信者を有効にするために使用できるライブラリ ファイルはありますか?

    axis2-transport-sms-1.0.0.jar

    jsmpp-2.1.0.jar

  2. これらの各 jar を配置する実際のディレクトリは何ですか?それは$ESB_HOME/repository/components/libですか?

  3. 最後に、特定の番号を送信するためのアドレス エンドポイントはどのように見えるべきでしょうか?

こんな感じですか?

 <endpoint>  
    <address uri="sms://94777179968">  
    </address>  

注:- 私は実際の SMSC として SMSC シミュレーターを使用しています。

前もって感謝します。

4

2 に答える 2

1

Axis2 SMS Transport is designed to support any SMPP implementation by implementing org.apache.axis2.transport.sms.SMSImplManager interface.

Please refer http://ws.apache.org/commons/transport/sms.html

In axis2-transport-sms-1.0.0.jar, there are two implementations.

i. org.apache.axis2.transport.sms.gsm.GSMImplManager - Implements SMSLib http://smslib.org/

ii. org.apache.axis2.transport.sms.smpp.SMPPImplManager - Implements JSMPP https://code.google.com/p/jsmpp/

If you want, you can refer sources of these implementations and write your own implementation. For example, I have used Logica SMPP in one of my projects (A standalone app) and it is a very good library and my project is in production for more than two years.

Here is the website for Logica SMPP: http://opensmpp.logica.com/CommonPart/Introduction/Introduction.htm

For your second and third questions, I think the answers are already there in the blog post you referred. Please go through the steps in that blog.

于 2013-02-08T17:02:01.803 に答える
0

特定の質問への回答... 1. いいえ、これらは正しいです。記事の指示どおりに配置してください。 2. はい 3. はい。ただし、これをデザイン ビューから入力すると、無効な形式。ソース ビューに切り替えて追加します。(ただし、エラーは発生しましたが、ソース ビューにも表示されたので、これを試してみる必要があります)。

記事に正確に従いますが、プロキシ サービスの構成ファイルと axis2 ファイルの構成の両方にわずかなエラーがあります (SMS トランスポートを有効にするため)。

サービス xml では、description タグがすべてのターゲットを囲んでいるため、空の description 要素を閉じている target 要素の外に移動します。

axix2 構成ファイルでは、transportsender 要素を少し変更して transportSender にする必要があります。送信者を表す大文字の「S」に注意してください。

それが私がこれを機能させる方法です。幸運を。

于 2013-02-14T08:27:44.763 に答える