I removed the second instantiating of the ServiceClient and changed
the ConfigurationContext
as said earlier. Now this [1] error occurs. (I hope that CARBON_HOME is
same as the ESB_HOME)

[1] https://gist.github.com/madurangasiriwardena/7821191


On Fri, Dec 6, 2013 at 3:11 PM, Dulanja Liyanage <dula...@wso2.com> wrote:

> Hi
>
> You are instantiating ServiceClient twice (which don't make sense) but not
> passing the configContext second time. Try passing that.
>
> Thanks
> Dulanja
>
>
> On Fri, Dec 6, 2013 at 3:10 PM, Vijayaratha Vijayasingam 
> <rat...@wso2.com>wrote:
>
>> How you are creating configcontext?
>> Try like this;
>>
>> ConfigurationContext configContext =   ConfigurationContextFactory.
>> createConfigurationContextFromFileSystem("CARBON_HOME\\repository\\deployment\\client",
>> "CARBON_HOME\\repository\\conf\\axis2_client.xml");
>>
>>
>> On 6 December 2013 14:57, Maduranga Siriwardena <madura...@wso2.com>wrote:
>>
>>> Hi all,
>>> I'm trying to create a secure client using axiom to connect to a secure
>>> proxy service created using the ESB. Bellow [1] has the code segment I used
>>> to configure the client. But when I run the client I get the bellow error.
>>>
>>> org.apache.axis2.AxisFault: Unable to engage module : rampart
>>> at
>>> org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:363)
>>>  at client.OrderProcessClient.main(OrderProcessClient.java:57)
>>>
>>> Folder structure of my project is as the attachment bellow. Can someone
>>> please help me to resolve this problem.
>>>
>>> [1] https://gist.github.com/madurangasiriwardena/7820858
>>>
>>> Thank you.
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> -Ratha
>> mobile: (+94)755906608
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Dulanja Liyanage
> Senior Software Engineer - WSO2 Inc.
> M: +94776764717
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to