axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <>
Subject Re: [AXIS2.1.1] setOperationContext() not called in the service implementation class
Date Fri, 17 Nov 2006 14:33:20 GMT
Hello Mehar

Could you please display your ./META-INF/services.xml?

Thank You,
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 
  ----- Original Message ----- 
  From: Mehar SVLN 
  Sent: Friday, November 17, 2006 9:14 AM
  Subject: Re: [AXIS2.1.1] setOperationContext() not called in the service implementation

  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(
          at com.sonoa.soi.client.SCIConfigServiceStub.createAG (

  I Cannot access soapenvelope here or what???

  Thanks in advance

  On 11/17/06, Mehar SVLN <> wrote:

    Thanks a lot...

    Let me test this out... 

    Thanks again

    On 11/17/06, Thilina Gunarathne <> wrote:
      Hi, longer supports this... 
      Please use  MessageContext.getCurrentContext();


      On 11/17/06, Mehar SVLN < > 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


      To unsubscribe, e-mail:
      For additional commands, e-mail: 


View raw message