|
From: Patrick Y. <kc...@ce...> - 2006-09-07 08:48:46
|
Hello Wahid,
I guess you have to modify the following hardcode string at
EbxmlMessage.java:
public final static String SOAP_ACTION_VALUE = "ebXML";
change it to :
public final static String SOAP_ACTION_VALUE = "<the value you need>";
This would give you a hardcoded, modified Hermes. But if you want to
make it configurable at runtime, you will need to design some APIs,
which is far more complicated.
Hope this helps.
Regards, -Patrick
Wahid Muhammad wrote:
> Hi,
>
> I asked this question a little while back but never solved it. The
> implementation we are using now requires to change the SOAP Action
> value of the MIME header. Currently Hermes V1 has a hardcode value of
> 'ebxml' in the EbxmlMessage.class file. After changing this value
> manually our implementation works, however we need to be able to
> change this dynamically.
>
> I have tried to change the SOAP_ACTION_VALUE variable from a constant
> to a public string and setting its value on the constructor:
>
> public EbxmlMessage(String sAction) throws SOAPException
> {
>
> this(MessageFactory.newInstance());
> SOAP_ACTION_VALUE = sAction;
> this.soapMessage.getMimeHeaders().setHeader(SOAP_ACTION,
> sAction);
> }
>
> The above has no effect what so ever. This seemed to be such a simple
> solution but is proving quite difficult! I cant believe Hermes V1 has
> no way changing this value dynamically as this has become a major and
> essential part of our implementation.
>
> So what am I doing wrong and how can I solve this?
>
> Thanks,
>
> *Wahid *
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ------------------------------------------------------------------------
>
> _______________________________________________
> ebxmlms-develop mailing list
> ebx...@li...
> https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop
>
--
Regards,
Patrick Yee
Center for E-Commerce Infrastructure Development
Making E-Commerce Everyday Commerce
|