Hi All,

I have an Android application developed and need to invoke an API created
in WSO2 API Manager(2.1.0) through the Android app.

The following tasks have been done.

1. I have created an API using an existing SOAP Endpoint(wsdl)

2. Downloaded the SDK from API Manager for Android.

3. Android application has been developed.

4. As in the README.md file(which has been downloaded with the SDK), when
I'm trying to generate the jar by executing *'mvn package' *command, the
build gets failed as below. The API which I created was TestApi1.

/TestApi1_1.0.0_android/src/main/java/org/wso2/client/api/
TestApi1/DefaultApi.java:[31,1] package org.wso2.client.model.TestApi1 does
not exist

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile
*(default-compile)* on projectorg.wso2.client.TestApi1: *Compilation
failure*

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
MojoExecutor.java:213)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
MojoExecutor.java:154)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
MojoExecutor.java:146)

at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
LifecycleModuleBuilder.java:117)

at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
LifecycleModuleBuilder.java:81)

at org.apache.maven.lifecycle.internal.builder.singlethreaded.
SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)

at org.apache.maven.lifecycle.internal.LifecycleStarter.
execute(LifecycleStarter.java:128)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)

at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)

at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.codehaus.plexus.classworlds.launcher.Launcher.
launchEnhanced(Launcher.java:289)

at org.codehaus.plexus.classworlds.launcher.Launcher.
launch(Launcher.java:229)

at org.codehaus.plexus.classworlds.launcher.Launcher.
mainWithExitCode(Launcher.java:415)

at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

Caused by: org.apache.maven.plugin.compiler.CompilationFailureException:
Compilation failure

at org.apache.maven.plugin.compiler.AbstractCompilerMojo.
execute(AbstractCompilerMojo.java:972)

at org.apache.maven.plugin.compiler.CompilerMojo.execute(
CompilerMojo.java:129)

at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
DefaultBuildPluginManager.java:134)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
MojoExecutor.java:208)

... 20 more

Any thoughts on what should be done to invoke API created through the
Android Application. And any comments are appreciated on what has gone
wrong here in step 4.


*Thanks and Best Regards,*

*Isuru Uyanage*
*Software Engineer - QA | WSO2*
*Mobile : **+94 77 <+94%2077%20767%201807> 55 30752*
*LinkedIn: **https://www.linkedin.com/in/isuru-uyanage/
<https://www.linkedin.com/in/isuru-uyanage/>*
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to