JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-4306

Patch to apply TransformerTemplate to AxisServiceComponent result

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Patch submission Patch submission
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix or Usage Issue
  • Affects Version/s: 2.2.1
  • Fix Version/s: None
  • Component/s: Transport: Axis
  • Labels:
    None
  • Environment:

    Ubuntu 8.10, i686 GNU/Linux 2.6.27-14-generic
    Java(TM) SE Runtime Environment (build 1.6.0_10-b33)

  • Includes test case?:
    yes
  • User impact:
    Medium
  • Similar Issues:
    None

Description

I have a project that multicasts to axis endpoints. When I migrated from 2.1 to 2.2, the aggregator broke because the correlation properties were no longer being set on the response messages. A bit of digging traced the change in behaviour to revision 14035 (http://fisheye.codehaus.org/changelog/mule/?cs=14035).

I compared Axis component calls to CXF component calls and saw that the result of a CXF call is transformed by the AbstractComponent before it's returned to the CxfServiceComponent whereas the result of an Axis call is processed after AxisServiceComponent. By the time AbstractComponent's createResultMessage(..) is called on an Axis result, the result is a MuleMessage the TransformerTemplate isn't applied.

Given my limited experience with Mule, I saw two potential fixes:
1. Change the return value of AxisServiceComponent's onCall() to a non-MuleMessage type, or
2. Apply the TransformerTemplate to the message before it's returned from onCall()

I decided on the latter, since it seems less hacky though probably still a little naive. Attached is the patch to AxisServiceComponent and a test case to demonstrate the fix.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. XML File
    axis-message-props-test.xml
    09/Apr/09 06:48 PM
    1 kB
    Robin Percy
  2. Text File
    AxisServiceComponent.java.patch.txt
    09/Apr/09 06:48 PM
    2 kB
    Robin Percy
  3. Java Source File
    MessagePropertiesFunctionalTestCase.java
    09/Apr/09 06:48 PM
    2 kB
    Robin Percy

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds
Hide
Permalink
Dirk Olmes added a comment - 03/Mar/12 12:17 AM

Axis is no longer supported

Show
Dirk Olmes added a comment - 03/Mar/12 12:17 AM Axis is no longer supported

People

  • Assignee:
    Dirk Olmes
    Reporter:
    Robin Percy
Vote (0)
Watch (0)

Dates

  • Created:
    09/Apr/09 06:47 PM
    Updated:
    03/Mar/12 12:17 AM
    Resolved:
    03/Mar/12 12:17 AM

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.