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 Mehar SVLN <me...@gmail.com> on 2006/11/17 14:00:00 UTC
[AXIS2.1.1] setOperationContext() not called in the service implementation class
Hai all,
I have a wsdl and i have generated the server side skeleton for it...
Now in the skeleton i have added the code like
//added to get the context
public void setOperationContext(OperationContext opCtx)
throws AxisFault {
inMesasgeContext = opCtx.getMessageContext(
WSDLConstants.MESSAGE_LABEL_IN_VALUE);
}
I need the messageContext to get the envelope, inside the skeleton...
Anyone let me know whatz going wrong....
Thanks in advance
--
Rgds
Mehar
Re: [AXIS2.1.1] setOperationContext() not called in the service implementation class
Posted by Mehar SVLN <me...@gmail.com>.
Sorry Guys
its working
Sorry again
On 11/17/06, Martin Gainty <mg...@hotmail.com> wrote:
>
> Hello Mehar
>
> Could you please display your ./META-INF/services.xml?
>
> Thank You,
> M-
> This e-mail communication and any attachments may contain confidential and
> privileged information for the use of the
> designated recipients named above. If you are not the intended recipient,
> you are hereby notified that you have received
> this communication in error and that any review, disclosure,
> dissemination, distribution or copying of it or its
> contents
>
> ----- Original Message -----
> *From:* Mehar SVLN <me...@gmail.com>
> *To:* axis-user@ws.apache.org
> *Sent:* Friday, November 17, 2006 9:14 AM
> *Subject:* Re: [AXIS2.1.1] setOperationContext() not called in the service
> implementation class
>
> I am doing this in my code
>
> MessageContext inMesasgeContext =
> MessageContext.getCurrentMessageContext();
>
> SOAPEnvelope envelope = inMesasgeContext.getEnvelope();
>
> when i execute it say
> org.apache.axis2.AxisFault: java.util.NoSuchElementException
> at org.apache.axis2.description.OutInAxisOperationClient.execute(
> OutInAxisOperation.java:308)
> at com.sonoa.soi.client.SCIConfigServiceStub.createAG (
> SCIConfigServiceStub.java:1539)
> at com.sonoa.services.config.soicommands.SCIConfigClient.createAG(
> SCIConfigClient.java:177)
> at com.sonoa.services.config.soicommands.SCIConfigClient.main(
> SCIConfigClient.java :648)
>
> I Cannot access soapenvelope here or what???
>
> Thanks in advance
> Mehar
> On 11/17/06, Mehar SVLN < meharsvln@gmail.com> wrote:
> >
> > Thilina
> >
> > Thanks a lot...
> >
> > Let me test this out...
> >
> > Thanks again
> >
> > On 11/17/06, Thilina Gunarathne < csethil@gmail.com> wrote:
> > >
> > > Hi,
> > > Axis2.no longer supports this...
> > > Please use MessageContext.getCurrentContext();
> > >
> > > ~Thilina
> > >
> > > On 11/17/06, Mehar SVLN <meharsvln@gmail.com > wrote:
> > > > Hai all,
> > > >
> > > > I have a wsdl and i have generated the server side skeleton for
> > > it...
> > > >
> > > > Now in the skeleton i have added the code like
> > > >
> > > > //added to get the context
> > > > public void setOperationContext(OperationContext
> > > > opCtx)
> > > > throws AxisFault {
> > > > inMesasgeContext = opCtx.getMessageContext(
> > > > WSDLConstants.MESSAGE_LABEL_IN_VALUE);
> > > > }
> > > >
> > > > I need the messageContext to get the envelope, inside the
> > > skeleton...
> > > >
> > > > Anyone let me know whatz going wrong....
> > > >
> > > > Thanks in advance
> > > > --
> > > > Rgds
> > > > Mehar
> > >
> > >
> > > --
> > > http://webservices.apache.org/~thilina/
> > > <http://webservices.apache.org/%7Ethilina/>
> > > http://thilinag.blogspot.com/
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> > --
> > Rgds
> > Mehar
>
>
>
>
> --
> Rgds
> Mehar
>
>
--
Rgds
Mehar
Re: [AXIS2.1.1] setOperationContext() not called in the service implementation class
Posted by Martin Gainty <mg...@hotmail.com>.
Hello Mehar
Could you please display your ./META-INF/services.xml?
Thank You,
M-
This e-mail communication and any attachments may contain confidential and privileged information for the use of the
designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its
contents
----- Original Message -----
From: Mehar SVLN
To: axis-user@ws.apache.org
Sent: Friday, November 17, 2006 9:14 AM
Subject: Re: [AXIS2.1.1] setOperationContext() not called in the service implementation class
I am doing this in my code
MessageContext inMesasgeContext = MessageContext.getCurrentMessageContext();
SOAPEnvelope envelope = inMesasgeContext.getEnvelope();
when i execute it say
org.apache.axis2.AxisFault: java.util.NoSuchElementException
at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308)
at com.sonoa.soi.client.SCIConfigServiceStub.createAG (SCIConfigServiceStub.java:1539)
at com.sonoa.services.config.soicommands.SCIConfigClient.createAG(SCIConfigClient.java:177)
at com.sonoa.services.config.soicommands.SCIConfigClient.main(SCIConfigClient.java :648)
I Cannot access soapenvelope here or what???
Thanks in advance
Mehar
On 11/17/06, Mehar SVLN < meharsvln@gmail.com> wrote:
Thilina
Thanks a lot...
Let me test this out...
Thanks again
On 11/17/06, Thilina Gunarathne < csethil@gmail.com> wrote:
Hi,
Axis2.no longer supports this...
Please use MessageContext.getCurrentContext();
~Thilina
On 11/17/06, Mehar SVLN <meharsvln@gmail.com > wrote:
> Hai all,
>
> I have a wsdl and i have generated the server side skeleton for it...
>
> Now in the skeleton i have added the code like
>
> //added to get the context
> public void setOperationContext(OperationContext
> opCtx)
> throws AxisFault {
> inMesasgeContext = opCtx.getMessageContext(
> WSDLConstants.MESSAGE_LABEL_IN_VALUE);
> }
>
> I need the messageContext to get the envelope, inside the skeleton...
>
> Anyone let me know whatz going wrong....
>
> Thanks in advance
> --
> Rgds
> Mehar
--
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
--
Rgds
Mehar
--
Rgds
Mehar
Re: [AXIS2.1.1] setOperationContext() not called in the service implementation class
Posted by Mehar SVLN <me...@gmail.com>.
I am doing this in my code
MessageContext inMesasgeContext =
MessageContext.getCurrentMessageContext();
SOAPEnvelope envelope = inMesasgeContext.getEnvelope();
when i execute it say
org.apache.axis2.AxisFault: java.util.NoSuchElementException
at org.apache.axis2.description.OutInAxisOperationClient.execute(
OutInAxisOperation.java:308)
at com.sonoa.soi.client.SCIConfigServiceStub.createAG(
SCIConfigServiceStub.java:1539)
at com.sonoa.services.config.soicommands.SCIConfigClient.createAG(
SCIConfigClient.java:177)
at com.sonoa.services.config.soicommands.SCIConfigClient.main(
SCIConfigClient.java:648)
I Cannot access soapenvelope here or what???
Thanks in advance
Mehar
On 11/17/06, Mehar SVLN <me...@gmail.com> wrote:
>
> Thilina
>
> Thanks a lot...
>
> Let me test this out...
>
> Thanks again
>
> On 11/17/06, Thilina Gunarathne < csethil@gmail.com> wrote:
> >
> > Hi,
> > Axis2.no longer supports this...
> > Please use MessageContext.getCurrentContext();
> >
> > ~Thilina
> >
> > On 11/17/06, Mehar SVLN <me...@gmail.com> wrote:
> > > Hai all,
> > >
> > > I have a wsdl and i have generated the server side skeleton for it...
> > >
> > > Now in the skeleton i have added the code like
> > >
> > > //added to get the context
> > > public void setOperationContext(OperationContext
> > > opCtx)
> > > throws AxisFault {
> > > inMesasgeContext = opCtx.getMessageContext(
> > > WSDLConstants.MESSAGE_LABEL_IN_VALUE);
> > > }
> > >
> > > I need the messageContext to get the envelope, inside the skeleton...
> > >
> > > Anyone let me know whatz going wrong....
> > >
> > > Thanks in advance
> > > --
> > > Rgds
> > > Mehar
> >
> >
> > --
> > http://webservices.apache.org/~thilina/
> > <http://webservices.apache.org/%7Ethilina/>
> > http://thilinag.blogspot.com/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
> --
> Rgds
> Mehar
--
Rgds
Mehar
Re: [AXIS2.1.1] setOperationContext() not called in the service implementation class
Posted by Mehar SVLN <me...@gmail.com>.
Thilina
Thanks a lot...
Let me test this out...
Thanks again
On 11/17/06, Thilina Gunarathne <cs...@gmail.com> wrote:
>
> Hi,
> Axis2.no longer supports this...
> Please use MessageContext.getCurrentContext();
>
> ~Thilina
>
> On 11/17/06, Mehar SVLN <me...@gmail.com> wrote:
> > Hai all,
> >
> > I have a wsdl and i have generated the server side skeleton for it...
> >
> > Now in the skeleton i have added the code like
> >
> > //added to get the context
> > public void setOperationContext(OperationContext
> > opCtx)
> > throws AxisFault {
> > inMesasgeContext = opCtx.getMessageContext(
> > WSDLConstants.MESSAGE_LABEL_IN_VALUE);
> > }
> >
> > I need the messageContext to get the envelope, inside the skeleton...
> >
> > Anyone let me know whatz going wrong....
> >
> > Thanks in advance
> > --
> > Rgds
> > Mehar
>
>
> --
> http://webservices.apache.org/~thilina/
> http://thilinag.blogspot.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Rgds
Mehar
Re: [AXIS2.1.1] setOperationContext() not called in the service implementation class
Posted by Thilina Gunarathne <cs...@gmail.com>.
Hi,
Axis2.no longer supports this...
Please use MessageContext.getCurrentContext();
~Thilina
On 11/17/06, Mehar SVLN <me...@gmail.com> wrote:
> Hai all,
>
> I have a wsdl and i have generated the server side skeleton for it...
>
> Now in the skeleton i have added the code like
>
> //added to get the context
> public void setOperationContext(OperationContext
> opCtx)
> throws AxisFault {
> inMesasgeContext = opCtx.getMessageContext(
> WSDLConstants.MESSAGE_LABEL_IN_VALUE);
> }
>
> I need the messageContext to get the envelope, inside the skeleton...
>
> Anyone let me know whatz going wrong....
>
> Thanks in advance
> --
> Rgds
> Mehar
--
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org