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