I need to use MTOM in web service calls. How can I do that?

asked 14.11.2013 at 08:01

SupportIvyTeam's gravatar image

SupportIvyTeam ♦♦
accept rate: 77%

Xpert.ivy generates Java stubs for each web service in order to call the web service. These files are located within your project. You can patch these files keeping in mind that a "Generate WS classes" (in the web service configuration editor) overwrites your changes.

To enable MTOM you have to patch each WS client stubs you want to use MTOM for. There is no way to globally set options for the Axis2 client classes.

So, locate your stub (e.g. MyXYWebServiceStub.java - this files ends with Stub.java). Find its method, which you want to invoke in your WS Step (the name is the same as the method you see in the WS Step, just like the parameters which you see in your WS Step configuration). Then, add your modifications there, e.g.

_serviceClient.getOption().setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);

From Xpert.ivy 4.2 all Axis2 client files are packed into jars to improve compilation performance. So whenever you patch an Axis2 stub, these stubs have to be re-compiled, and re-packed into the jars. These jars are located in your project's lib_ws/client folder.


answered 14.11.2013 at 08:03

SupportIvyTeam's gravatar image

SupportIvyTeam ♦♦
accept rate: 77%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 14.11.2013 at 08:01

Seen: 2,511 times

Last updated: 14.11.2013 at 08:01