Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5202

Response MessageContext not accessible outside web-service stub generated using Axis2 Code generator for ADB or XMLBeans data binding

Rank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 1.6.0
    • None
    • adb, client-api, codegen, databinding
    • None
    • axis2 version is 1.6.0.

    Description

      The response SOAP message cannot be accessed outside the Stub class (extension of org.apache.axis2.client.Stub) generated by Axis2 Code generator for ADB or XMLBeans data binding (WSDL2Java). The below line of code gives an error:
      serviceClient.getLastOperationContext().getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);

      I am currently using a work-around. Adding the below line in the Stub after response message is received helps me rebuild the response object and make it accessible outside the Stub class:
      _returnEnv.build();

      Probably this fix should be added in the API itself.

      I have seen this issue in the STubs generated for ADB and XMLBeans data binding.

      Regards,
      TAM Tenfold5, GDev.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            tam_tenfold5 TAM Tenfold5
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment