Customise Hermes 2 MSH

210 views
Skip to first unread message

An An Nguyen

unread,
Dec 15, 2013, 10:13:01 PM12/15/13
to cecid-...@googlegroups.com
Dear friends,

I'm learning to use Hermes 2 MSH. My problem is that based on ebXML, my message need to contain more information fields. So I must extends Hermes 2 MSH to process more fields in a message. I see some posts about adding "fromRole" and "toRole", and I succeeded in doing that. However as I know, it's just a kind of enabling existing information fields that follow ebXML standard. My problem is to add more fields that don't existed in ebXML standard. That mean I need to customise more class in Hermes 2 MSH and so on database. Can anyone give me some suggestion or a direction to do?

Thank you.

Methnani Web Develop

unread,
Dec 16, 2013, 3:51:10 AM12/16/13
to cecid-...@googlegroups.com

Good morning,


Yes you need to extend Hermes2:

 

 - First you need to download the open source version of Hermes2.

 - You need to look after any fields that exist right now, 

try to understand there process (Ex: receiver name, ...)

 - Try to make a copy to replace the name and the type with your new field information.

 - Compile it and extract as a web application.

 

Tell me if you didn't understand any process.

 

Kind regards.



Mohamed Methnani
Netconsulting, S.Technique
www.netconsulting.com.tn
in...@netconsulting.com.tn |
(+216) 27 567 985 | Skype: netconsultingtn
 


--
You received this message because you are subscribed to the Google Groups "Hermes 2.0 Discussion List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cecid-hermes...@googlegroups.com.
To post to this group, send email to cecid-...@googlegroups.com.
Visit this group at http://groups.google.com/group/cecid-hermes2.
For more options, visit https://groups.google.com/groups/opt_out.

An An Nguyen

unread,
Dec 17, 2013, 9:18:15 PM12/17/13
to cecid-...@googlegroups.com
Hi Mohamed,

I would like to add a new element called addedInfo so that I follow step by step to change the following file: EbXMLMessage, MessageHeader (EbXML Package); EbmsMessageSenderService (Corvus.EbMS), EBMSMessageSender, EBMSMessageDate (Corvus.WSClient). Then, I build it using ant. 
When I run the ebms-send, the ebms-send.log looks so fine, the value from addedInfo element is set correctly. But when I view the message stored in repository, it does not have the addedInfo element.

Could you please tell me what I have to do to solve this problem.
Thanks.

An An Nguyen

unread,
Dec 18, 2013, 4:00:23 AM12/18/13
to cecid-...@googlegroups.com
It looks like we aren't allowed to add extra element into a message. No matter what we modify in source code, after calling the sender.run() in Corvus.WS Client/EBMSMessageSender class, it is refered to a SOAPSender and it seems to remove any extra element.
If this is true, please confirm so that I can choose other solution for my problem.
Thanks.

Methnani Web Develop

unread,
Dec 18, 2013, 4:48:55 AM12/18/13
to cecid-...@googlegroups.com
Good morning An,

No that's not true it's possible to add new element , i didn't do it before but i'm sure it can be done.
Your problem because you didn't compile the SOAPSender  with the new class(the class that you contain the new element)?

Check this and tell me what you think?


Mohamed Methnani
Netconsulting, S.Technique
www.netconsulting.com.tn
in...@netconsulting.com.tn |
(+216) 27 567 985 | Skype: netconsultingtn
 


An An Nguyen

unread,
Dec 19, 2013, 4:26:36 AM12/19/13
to cecid-...@googlegroups.com
Hi Mohamed,

I found the way to add new element. It involve in re-deploy EBXML Package into Hermes 2 installation folder.
Now I have a question. Does Hermes support dealing with many occurrence of an element. For example, the message need sent to several partner, so that the <To> element will occur several time. How can we deal with this case using Hermes 2?

Thanks

Torsten Kirschner

unread,
Dec 19, 2013, 4:48:19 AM12/19/13
to cecid-...@googlegroups.com
I think both the ebMS 2.0 and Hermes 2.0 limit themselves to bilateral messaging.

I guess mulitilateral messaging must be simulated in the client by copying and sending the message to each recipient individuallly.

Methnani Web Develop

unread,
Dec 19, 2013, 6:41:09 AM12/19/13
to cecid-...@googlegroups.com
Hello Nguyen

Like Kirschner said dos not exist but, i will give  you a solution with on Linux server or Hermes2 if it can be extended easily.

Thank you.


Mohamed Methnani
Netconsulting, S.Technique
www.netconsulting.com.tn
in...@netconsulting.com.tn |
(+216) 27 567 985 | Skype: netconsultingtn
 


Methnani Web Develop

unread,
Dec 19, 2013, 6:42:17 AM12/19/13
to cecid-...@googlegroups.com
Hello Nguyen

Like Kirschner said dos not exist but, i will give  you a solution with on Linux server or Hermes2 if it can be extended easily.

Thank you.

Mohamed Methnani
Netconsulting, S.Technique
www.netconsulting.com.tn
in...@netconsulting.com.tn |
(+216) 27 567 985 | Skype: netconsultingtn
 


An An Nguyen

unread,
Dec 23, 2013, 4:47:00 AM12/23/13
to cecid-...@googlegroups.com
Thanks T.K and Mohamed,

I will consider on the self-contraints of following ebMS standard.

Now I have a question: When we run the web service to send message to a party called partyB, we have to config some configuration file, one of them is ebms-request.xml that contains information parameters of the message. After that, the program send an ebMS message to the partyB. But what if the partyB wants to send this ebMS message to another party? How can the partyB send the ebMS message without having the configuration file (parameter file) that is the input for Hermes MSH?

Thanks in advance for any help.

Methnani Web Develop

unread,
Dec 23, 2013, 5:35:37 AM12/23/13
to cecid-...@googlegroups.com
Check your personal email.
Thanks

Torsten Kirschner

unread,
Dec 23, 2013, 5:58:45 PM12/23/13
to cecid-...@googlegroups.com
Hi An An,
maybe it would be an idea to study the ebXML framework standard documents for ebBP - business process, ebCPP/A - collaboration partner profile/agreement and ebMS - messaging system in that order to look at the greater picture of how ebXML is supposed to work.
Especially the relationship of ebCPP/A and ebMS might answer your question. A CPA is a XML document that contains all the parameters for two parties to commence document exchange; it is intended to configure MSHs in a product-independant way.
In short: if you have a CPA for your partyA - partyB exchanges, and partyB wants to use the same business process with partyC, then it could adapt the CPA to partyC and use it to configure both its own H2O and whatever MSH partyC is using.

Without a grasp of at least CPP/A and MS standards, Hermes H2O, the way it is configured and the way it works must seem mythical and magical to anyone.
best regards
T
Reply all
Reply to author
Forward
0 new messages