Sorry Guys
its working
Sorry again

On 11/17/06, Martin Gainty <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
*To:* [email protected]
*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 < [EMAIL PROTECTED]> wrote:
>
> Thilina
>
> Thanks a lot...
>
> Let me test this out...
>
> Thanks again
>
> On 11/17/06, Thilina Gunarathne < [EMAIL PROTECTED]> wrote:
> >
> > Hi,
> > Axis2.no longer supports this...
> > Please use  MessageContext.getCurrentContext();
> >
> > ~Thilina
> >
> > On 11/17/06, Mehar SVLN <[EMAIL PROTECTED] > 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Rgds
> Mehar




--
Rgds
Mehar




--
Rgds
Mehar

Reply via email to