# Mobile Designer Multi-Build with external Axis2 libraries

**URL:** <https://techcommunity.softwareag.com/t/mobile-designer-multi-build-with-external-axis2-libraries/102320>\
**Category:** Forum\
**Tags:** mobile\
**Created:** [January 16, 2013, 1:17am UTC](https://techcommunity.softwareag.com/t/mobile-designer-multi-build-with-external-axis2-libraries/102320 "2013-01-16T01:17:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Braukhoff1](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@Mark\_Braukhoff1](https://techcommunity.softwareag.com/u/Mark_Braukhoff1)\
**Post date:** [January 16, 2013, 1:17am UTC](https://techcommunity.softwareag.com/t/mobile-designer-multi-build-with-external-axis2-libraries/102320/1 "2013-01-16T01:17:48Z")

</div>

Hi All:

I have an app that I’ve built in Mobile Designer. It calls a SOAP Web Service that I built with ApplinX. When I run it in Phoney (not using the Ant script), it works just fine. When I attempt to build the app in MultiBuild, I receive a large number of errors related to the fact that the compile/build can’t find classes in org.apache.axis2.

I’ve experimented with different settings for the’ project.reshandler.additional.libs.path’ variable in build.xml to no avail.

Also, is there any way to keep the Ant build scripts from overwriting the .classpath file in the Eclipse project every time I run it?

Any help you could give me would be greatly appreciated. Thanks!

Best Regards, Mark Braukhoff

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [January 16, 2013, 2:17am UTC](https://techcommunity.softwareag.com/t/mobile-designer-multi-build-with-external-axis2-libraries/102320/2 "2013-01-16T02:17:48Z")

</div>

The short answer to the first question is that it can’t be done. Part of the longer answer is that the org.apache.axis2 library is not supported for J2ME, so when you try to create your stub classes using the wsdl2java that comes as part of Axis2 you will end up with object references that are non-existant in the JSR 172 space. In Phoney you can just specify a classpath to the Axis2 libraries and run, as Phoney uses J2SE under the hood. Building a bundle, however, is not as simple.

Currently there is no simple way to stop the Activation process from overwriting your .classpath file. There has been some success in setting the file as you want it and then changing the file property to “read-only” but that doesn’t always stop it so I suggest you keep a copy around and just copy it back when things go awry.

Spencer

---

<div class="post-metadata">

**Author:** ![Marco\_Stoffel](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/marco_stoffel/32/37223_2.png) [@Marco\_Stoffel](https://techcommunity.softwareag.com/u/Marco_Stoffel)\
**Post date:** [January 17, 2013, 9:03am UTC](https://techcommunity.softwareag.com/t/mobile-designer-multi-build-with-external-axis2-libraries/102320/3 "2013-01-17T09:03:01Z")

</div>

Hi Mark,

I’ve used SOAP several times to consume Business Data from IS. My experience, the way it worked for me is:

- 

```
   Create a Webservice that only provides objects that are supported by J2ME!

```

find the documentation here:  
[url=‘[http://www.oracle.com/technetwork/java/webservices-138799.html](http://www.oracle.com/technetwork/java/webservices-138799.html)’][http://www.oracle.com/technetwork/java/webservices-138799.html[/url]](http://www.oracle.com/technetwork/java/webservices-138799.html%5B/url%5D)

- 

```
   In your mobile app you can use the oracle mobile SDK to create the stub classes

```

[url=‘[Java ME SDK Downloads](http://www.oracle.com/technetwork/java/javame/javamobile/download/sdk/index.html)’][http://www.oracle.com/technetwork/java/javame/javamobile/download/sdk/index.html[/url]](http://www.oracle.com/technetwork/java/javame/javamobile/download/sdk/index.html%5B/url%5D)  
How to do that you may have look at the _NATIVEUIsoap_ sample app. (run wscompile.exe and providing a WSDL)

- 

```
   Important is also that although you have defined an object in WSDL as optional you have to provide it (at least an empty string). Otherwise the app will throw some error.

```

Kind Regards

Marco

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:02pm UTC](https://techcommunity.softwareag.com/t/mobile-designer-multi-build-with-external-axis2-libraries/102320/4 "2021-04-02T15:02:52Z")

</div>


