# calling web services from an iPad app

**URL:** <https://techcommunity.softwareag.com/t/calling-web-services-from-an-ipad-app/100224>\
**Category:** Forum\
**Tags:** mobile\
**Created:** [September 26, 2011, 9:12pm UTC](https://techcommunity.softwareag.com/t/calling-web-services-from-an-ipad-app/100224 "2011-09-26T21:12:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javier\_Gallego](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/javier_gallego/32/77_2.png) [@Javier\_Gallego](https://techcommunity.softwareag.com/u/Javier_Gallego)\
**Post date:** [September 26, 2011, 9:12pm UTC](https://techcommunity.softwareag.com/t/calling-web-services-from-an-ipad-app/100224/1 "2011-09-26T21:12:52Z")

</div>

Hi  
i tried to install the Bookstore app that Peter Nevermann produced (very nice for demos, not only for training 🙂 ) into an iPad and other simulators (Blackberry and Android). It worked fine for the latter, but not for the iPad.  
When doing the multi build i get the following exceptions:

-I/Users/Shared/webMethods/MobileDesigner/Applications/_BookstoreApp_/Test/Builds/AppleiPad/0.0.1/_bedrock_/_cpp\_edit_/ src/org/kxml2/io/KXmlParser.cpp -o build/org\_\_kxml2\_\_io\_\_KXmlParser.o  
[exec] src/org/kxml2/io/KXmlParser.cpp:1647: error: no ‘void org::kxml2::io::KXmlParser::KXmlParser\_globalStaticCreate()’ member function declared in class ‘org::kxml2::io::KXmlParser’  
[exec] src/org/kxml2/io/KXmlParser.cpp:1653: error: no ‘void org::kxml2::io::KXmlParser::KXmlParser\_globalStaticDestroy()’ member function declared in class ‘org::kxml2::io::KXmlParser’  
[exec] make: \*\*\* [build/org\_\_kxml2\_\_io\_\_KXmlParser.o] Error 1

is this a bug or is it that i cannot use the kxml parser for iPad apps?

many thanks  
Javier

---

<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:** [September 26, 2011, 9:28pm UTC](https://techcommunity.softwareag.com/t/calling-web-services-from-an-ipad-app/100224/2 "2011-09-26T21:28:56Z")

</div>

Hi Javier,

I believe the application is including its own copy of the kxml source  
code, but Bedrock now supplies this library as one our pre-compiled libs  
for some platforms, so it’s got a dual-declaration conflict going on.

I haven’t had the opportunity to review the project yet, but I think  
some simple tweaks in the project xmls (or better automated fixes for  
this kind of problem) can be used to work around this issue.

Regards,

Nick.

---

<div class="post-metadata">

**Author:** ![Javier\_Gallego](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/javier_gallego/32/77_2.png) [@Javier\_Gallego](https://techcommunity.softwareag.com/u/Javier_Gallego)\
**Post date:** [September 30, 2011, 8:14pm UTC](https://techcommunity.softwareag.com/t/calling-web-services-from-an-ipad-app/100224/3 "2011-09-30T20:14:25Z")

</div>

Hi  
After making a small change in the _defaults_.xml (thanks to Peter Nevervann), I was able to build & install the app in an iPad.

Below the snippet I changed  
Many thanks for the help  
Javier

```auto
<!-- Android has xmlpull built into it --> 
                <if> 
                        <isset property="bedrock.buildscript.build.executable"/> 
                        <then> 
                                <switch value="${selected.platform}"> 
                                        <case value="android-apk"> 
                                                <property name="remove.kxml" value="true"/> 
                                        </case> 
                                        <case value="iphone-app"> 
                                                <property name="remove.kxml" value="true"/> 
                                        </case> 
                                        <default/> 
                                </switch> 
                        </then> 
                </if> 
        <property name="remove.kxml" value="false"/> 

        <if> 
            <equals arg1="${remove.kxml}" arg2="true"/> 
            <then> 
                        <path id="project.runtime.project.src.path"> 
                                <pathelement path="${project.dir.root}/src"/> 
                                <!-- 
                                 <pathelement path="${project.dir.root}/libs/kxml2"/> 
                                 --> 
                        </path> 
            </then> 
            <else> 
                        <path id="project.runtime.project.src.path"> 
                                <pathelement path="${project.dir.root}/src"/> 
                                <pathelement path="${project.dir.root}/libs/kxml2"/> 
                                <pathelement path="${project.dir.root}/libs/xmlpull"/> 
                        </path> 
            </else> 
        </if>
```

---

<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:01pm UTC](https://techcommunity.softwareag.com/t/calling-web-services-from-an-ipad-app/100224/4 "2021-04-02T15:01:47Z")

</div>


