You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sri Harsha Yenuganti <sh...@gmail.com> on 2010/03/22 16:15:50 UTC
A small doubt about ContextConfiguration
If I create a ServiceClient using a stub generated from WSDL, like
ServiceClient client = CustomServiceStub._getserviceclient();
How does the created 'client' know about its ConfigurationContext? Is the
context config information extracted from the stub classes ?
--
Sri Harsha Yenuganti
shyenuganti@gmail.com
" IF YOU ARE NOT BRAVE ENOUGH TO FACE A FAILURE YOU ARE UNFIT TO
SUCCEED.AIM HIGH BUT BE PREPARED FOR THE WORST. "
Re: A small doubt about ContextConfiguration
Posted by Deepal Jayasinghe <de...@opensource.lk>.
It look at the modules from the classpath (.mar files).
https://www.wso2.org/library/585
Sri Harsha Yenuganti wrote:
> What does it look for in classpath? How can I build the config Context
> from the class path? Can you point me to any article about this on
> WSO2.org?
>
> If my client is running on a different machine than the server, how
> can i get the context config to create the service client? Should I use
>
> ConfigurationContext myConfigContext =
> ConfigurationContextFactory.createConfigurationContextFromURIs(
> "http://xyz.com/axis2/axis2.xml" , "http://xyz.com/axis2repo")
> Or is there any other way ?
>
>
>
>
>
> On 22 March 2010 10:30, Deepal jayasinghe <deepalk@gmail.com
> <ma...@gmail.com>> wrote:
>
> When you create an instance of Stub you can either pass your
> configuration context, if not stub creates a default configuration
> context using values in the class path and use that as the
> configuration
> context.
>
> -Deepal
> > If I create a ServiceClient using a stub generated from WSDL, like
> >
> > ServiceClient client =
> CustomServiceStub._getserviceclient();
> >
> > How does the created 'client' know about its
> ConfigurationContext? Is
> > the context config information extracted from the stub classes ?
> >
> >
> >
> > --
> > Sri Harsha Yenuganti
> > shyenuganti@gmail.com <ma...@gmail.com>
> <mailto:shyenuganti@gmail.com <ma...@gmail.com>>
> >
> > " IF YOU ARE NOT BRAVE ENOUGH TO FACE A FAILURE YOU ARE UNFIT TO
> > SUCCEED.AIM HIGH BUT BE PREPARED FOR THE WORST. "
> >
> >
>
>
> --
> "If we knew what it was we were doing, it would not be called
> research, would it?" - Albert Einstein
>
>
> http://blogs.deepal.org
> http://deepal.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> <ma...@axis.apache.org>
> For additional commands, e-mail: java-user-help@axis.apache.org
> <ma...@axis.apache.org>
>
>
>
>
> --
> Sri Harsha Yenuganti
> shyenuganti@gmail.com <ma...@gmail.com>
>
> " IF YOU ARE NOT BRAVE ENOUGH TO FACE A FAILURE YOU ARE UNFIT TO
> SUCCEED.AIM HIGH BUT BE PREPARED FOR THE WORST. "
>
>
--
"If we knew what it was we were doing, it would not be called research, would it?" - Albert Einstein
http://blogs.deepal.org
http://deepal.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org
Re: A small doubt about ContextConfiguration
Posted by Sri Harsha Yenuganti <sh...@gmail.com>.
What does it look for in classpath? How can I build the config Context from
the class path? Can you point me to any article about this on WSO2.org?
If my client is running on a different machine than the server, how can i
get the context config to create the service client? Should I use
ConfigurationContext myConfigContext =
ConfigurationContextFactory.createConfigurationContextFromURIs(
"http://xyz.com/axis2/axis2.xml" , "http://xyz.com/axis2repo")
Or is there any other way ?
On 22 March 2010 10:30, Deepal jayasinghe <de...@gmail.com> wrote:
> When you create an instance of Stub you can either pass your
> configuration context, if not stub creates a default configuration
> context using values in the class path and use that as the configuration
> context.
>
> -Deepal
> > If I create a ServiceClient using a stub generated from WSDL, like
> >
> > ServiceClient client = CustomServiceStub._getserviceclient();
> >
> > How does the created 'client' know about its ConfigurationContext? Is
> > the context config information extracted from the stub classes ?
> >
> >
> >
> > --
> > Sri Harsha Yenuganti
> > shyenuganti@gmail.com <ma...@gmail.com>
> >
> > " IF YOU ARE NOT BRAVE ENOUGH TO FACE A FAILURE YOU ARE UNFIT TO
> > SUCCEED.AIM HIGH BUT BE PREPARED FOR THE WORST. "
> >
> >
>
>
> --
> "If we knew what it was we were doing, it would not be called research,
> would it?" - Albert Einstein
>
>
> http://blogs.deepal.org
> http://deepal.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>
--
Sri Harsha Yenuganti
shyenuganti@gmail.com
" IF YOU ARE NOT BRAVE ENOUGH TO FACE A FAILURE YOU ARE UNFIT TO
SUCCEED.AIM HIGH BUT BE PREPARED FOR THE WORST. "
Re: A small doubt about ContextConfiguration
Posted by Deepal jayasinghe <de...@gmail.com>.
When you create an instance of Stub you can either pass your
configuration context, if not stub creates a default configuration
context using values in the class path and use that as the configuration
context.
-Deepal
> If I create a ServiceClient using a stub generated from WSDL, like
>
> ServiceClient client = CustomServiceStub._getserviceclient();
>
> How does the created 'client' know about its ConfigurationContext? Is
> the context config information extracted from the stub classes ?
>
>
>
> --
> Sri Harsha Yenuganti
> shyenuganti@gmail.com <ma...@gmail.com>
>
> " IF YOU ARE NOT BRAVE ENOUGH TO FACE A FAILURE YOU ARE UNFIT TO
> SUCCEED.AIM HIGH BUT BE PREPARED FOR THE WORST. "
>
>
--
"If we knew what it was we were doing, it would not be called research, would it?" - Albert Einstein
http://blogs.deepal.org
http://deepal.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org