How to use Hermes for ebMS from a client perspective?

233 views
Skip to first unread message

R.M.Morrien

unread,
Dec 21, 2009, 7:55:57 AM12/21/09
to Hermes 2.0 Discussion List
Hi,

I've set up 2 Hermes instances. Let's call them A and B. I have a
client that needs to talk via A to a service C which is behind B. How
is Hermes assumed to work?

I can send a message from a client when it talks to the
http://A:8080/corvus/httpd/ebms/sender webservice.
I can see the message is received at B.
However if I set the Service url in sender A to http://C/mydestinationservice,
I do not receive the message at http://C/mydestinationservice.

Is this a configuration issue? Or do I have to manually look for
messages in B using the http://B:8080/corvus/httpd/ebms/receiver_list
and http://B:8080/corvus/httpd/ebms/receiver webservices?

My configuration is as follows:

A:

Partnership ID ebmsTestAB
CPA ID ebmsTestAB
Service http://clientUrl:8080/ebms-test-receiver/TestReceiver
Action deliverToB
Transport Endpoint http://B:8080/corvus/httpd/ebms/inbound

B:

Partnership ID ebmsTestAB
CPA ID ebmsTestAB
Service http://A:8080/corvus/httpd/ebms/inbound
Action deliverToB
Transport Endpoint http://A:8080/corvus/httpd/ebms/inbound

based on the Service documentation:
http://community.cecid.hku.hk/index.php/product/article/reference_of_ebms_2_0_partnership_configuratio/#service

Thank you,

Martijn

Kit

unread,
Dec 21, 2009, 10:25:44 PM12/21/09
to Hermes 2.0 Discussion List
Hi Martijn,

i have tried the hermes2 and i found that actually the service element
actually is just part of the composite key for partnership mapping. so
in your case, maybe u can try

1. send a message from hermes A to hermes B
2. write a client to collect the received message in hermes B
3. send the collected message to server C

by the way, the cpa_id, service and action must be matched in hermes A
and B. so of u use the above setting which the service fields are
different. u cannot receive message from hermes A.

hope this help.

Regards,
Kit Yuen, Software Engineer
Apacus Software - Innovate, Simplify

Email: kit....@apacus.com
Site: http://www.apacus.com


On Dec 21, 8:55 pm, "R.M.Morrien" <dj.es...@gmail.com> wrote:
> Hi,
>
> I've set up 2 Hermes instances. Let's call them A and B. I have a
> client that needs to talk via A to a service C which is behind B. How
> is Hermes assumed to work?
>
> I can send a message from a client when it talks to thehttp://A:8080/corvus/httpd/ebms/senderwebservice.
> I can see the message is received at B.

> However if I set the Service url in sender A tohttp://C/mydestinationservice,
> I do not receive the message athttp://C/mydestinationservice.


>
> Is this a configuration issue? Or do I have to manually look for
> messages in B using thehttp://B:8080/corvus/httpd/ebms/receiver_list
> andhttp://B:8080/corvus/httpd/ebms/receiverwebservices?
>
> My configuration is as follows:
>
> A:
>
> Partnership ID      ebmsTestAB
> CPA ID              ebmsTestAB
> Service            http://clientUrl:8080/ebms-test-receiver/TestReceiver
> Action              deliverToB
> Transport Endpoint      http://B:8080/corvus/httpd/ebms/inbound
>
> B:
>
> Partnership ID      ebmsTestAB
> CPA ID              ebmsTestAB
> Service            http://A:8080/corvus/httpd/ebms/inbound
> Action              deliverToB
> Transport Endpoint      http://A:8080/corvus/httpd/ebms/inbound
>

> based on the Service documentation:http://community.cecid.hku.hk/index.php/product/article/reference_of_...
>
> Thank you,
>
> Martijn

Martijn Morriën

unread,
Dec 22, 2009, 4:20:19 AM12/22/09
to cecid-...@googlegroups.com
Thank you for the information, the documentation was confusing me. The Hermes Application Development Guide describes the same scenario as you do.
I have to write a Client that sends to A, and on the B side I have to write some kind of service that looks for incoming messages.

I see you updated the documentation at
http://community.cecid.hku.hk/index.php/product/article/reference_of_ebms_2_0_partnership_configuratio/#service

It is now more clear, thank you.

Martijn



--

You received this message because you are subscribed to the Google Groups "Hermes 2.0 Discussion List" group.
To post to this group, send email to cecid-...@googlegroups.com.
To unsubscribe from this group, send email to cecid-hermes...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cecid-hermes2?hl=en.



Reply all
Reply to author
Forward
0 new messages