How work with wsdl service in android contained in Azure - android

1).I generated Web Service Client from WSDL (use Axis2 1.5 carnel, wsdl2java,Tomcat 7.0);
2). Accessing a JAX-WS web service from Android use KSoap2-android library (I tested this lib on service http://www.webservicex.net/ConvertWeight.asmx and it works ok). But work with http://xxx.svc?wsdl I can't connect to the service. When I generated the Web Service Client from Android Progect I get this error :
"IWAB0399E Error in generating Java from WSDL: java.io.IOException: Emitter failure. There is an undefined binding (BasicHttpBinding_ICustomerService) in the WSDL document. Hint: make sure is fully qualified."
3). From Web Service Client I make service.jar, which used on Android Progect how lib, but not working.
4). When I used ksoap2 I get this error:
[2012-06-26 17:25:33 - TranscribeMe_2.2] Dx 1 error; aborting
[2012-06-26 17:25:33 - TranscribeMe_2.2] Conversion to Dalvik format failed with error 1
[2012-06-26 17:26:32 - TMP] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.ksoap2.transport.KeepAliveHttpsTransportSE$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is not an inner class.
[2012-06-26 17:26:33 - TMP] Dx
trouble processing "javax/xml/ws/Dispatch.class":
Ill-advised or mistaken usage of a core class (java.* or javax.*)
when not building a core library.
This is often due to inadvertently including a core library file
in your application's project, when using an IDE (such as
Eclipse). If you are sure you're not intentionally defining a
core class, then this is the most likely explanation of what's
going on.
However, you might actually be trying to define a class in a core
namespace, the source of which you may have taken, for example,
from a non-Android virtual machine project. This will most
assuredly not work. At a minimum, it jeopardizes the
compatibility of your app with future versions of the platform.
It is also often of questionable legality.
If you really intend to build a core library -- which is only
appropriate as part of creating a full virtual machine
distribution, as opposed to compiling an application -- then use
the "--core-library" option to suppress this error message.
If you go ahead and use "--core-library" but are in fact
building an application, then be forewarned that your application
will still fail to build or run, at some point. Please be
prepared for angry customers who find, for example, that your
application ceases to function once they upgrade their operating
system. You will be to blame for this problem.
If you are legitimately using some code that happens to be in a
core package, then the easiest safe alternative you have is to
repackage that code. That is, move the classes in question into
your own package namespace. This means that they will never be in
conflict with core system classes. JarJar is a tool that may help
you in this endeavor. If you find that you cannot do this, then
that is an indication that the path you are on will ultimately
lead to pain, suffering, grief, and lamentation.
[2012-06-26 17:26:33 - TMP] Dx 1 error; aborting
[2012-06-26 17:26:33 - TMP] Conversion to Dalvik format failed with error 1
Please, help me...

IF you will search StackOverFlow for Axis and WCF/WSDL issues you will find a lot without any answer or suggestion so there is not a lot you would be able to
About your following error:
There is an undefined binding (BasicHttpBinding_ICustomerService) in the WSDL document.
Hint: make sure is fully qualified."
I can say that the problem probably related with how you ICustomerService bindings are defined. As you have chosen BasicHttpBinding, please make sure all the parameters are correct . If you check your Axis generated WSDL, you will be able to verify it easily.
Also in some cases you might hit namespace issues and which could cause Axis WSDL to genatate service.svc?wsdl=wsdl0 and service.svc?wsdl=wsdl1. If that is the case, you can resolve namespace issues by adding namespace attribute for your each data contract along with message header, body and added bindingnamespace attribute in web service end point.
My first suggestion will be to create a simple C# client application and connect to your Windows Azure WCF service to and verify you could connect using BasicHttpBindings without any problem and then use Java app to do the same. If you see the problem, compare the network traffic between two to see the different which might help you to figure out the root cause and for very specific problem ask questions at SO and you will get proper help. Good Luck!!

Related

java.lang.ClassFormatError: Incompatible magic value 3401497278

I was trying to open cache.properties.lock file present in .gradle
and suddenly Android Studio got crashed with Incompatible magic error popup.
How to fix this issue? No idea.
I also struggled with this issue a lot while we were sending JAVA classes in an enterprise - this is primarily caused when class (compiled) classes that are sent over mails as attachments and the proxy servers tampers with the content.
This can happen when using a proxy server, and especially when the CLASS files were sent as .TXT extensions to avoid PROXY/FIREWALL blockings to secured enterprise environments.

Android application not launching (on device or emulator)

I have an Android application that used to work fine. I think the last piece of code I added was some sqlite database code. Now, when I run the application:
Says "Launching Application (100%)" in the bottom, right corner.
In the Progress tab, the progress bar is not filled in at all (for launching the application).
Uses up all the allowed ram (760M)
The application doesn't actually get installed on my device (I've also tried this without my device plugged in, and it doesn't make it to the screen to ask me which emulator I want to launch).
When I create a new Android application in the workspace the new application runs fine.
System Details:
Eclipse 4.3 for Mac OS X (installed the latest version including the ADT in an attempt to fix the problem).
Android Developer Tools. Build: v22.6.2-1085508
OS X 10.8.5
Just let me know if I've left out any information and I'll add it in asap.
[Edit:] After leaving it running (not force-quitting), I get this error message:
[2014-06-25 10:07:53 - Application] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.ibex.nestedvm.util.Sort$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is not an inner class.
[2014-06-25 10:18:10 - Dex Loader] Unable to execute dex: Java heap space
[2014-06-25 10:18:10 - Application] Conversion to Dalvik format failed: Unable to execute dex: Java heap space

Compiling ICS source code for specific board + conflict resolution

build/core/base_rules.mk:166: *** system/core/allwinner_a10_core/adb:
MODULE.HOST.EXECUTABLES.adb already defined by system/core/adb. Stop.
I can understand that there is a conflict between the ICS source code's adb and the adb provided by the actual board is leading to the conflict.
I want to know where and what file i have to change to resolve this conflict,i.e, tell the compiler which adb to use. (more generically which library to use, as i know this is a generic problem)
I wish the compilation process was explained better by google's reference documents!

android, moving from icu4j to icu4c

i have class used with android frameworks, it calls icu4j's Arabicshaping. now i'v merged this class with another android branch that uses icu4c ( c implementation). but build process gives me error saying cannot find Arabicshaping...
searching in icu4c files shows me that it has both ArabicShaping.c and ushape.c
but i don't know how to call them from framewoks java code .
any idea? thanks

Odd compiler error, Davlik error 1 from java.net.DatagramPacket.class

I suddenly started getting an unusual compiler error and is it making impossible to do any testing, I am running Eclipse with the plugin and compiling on the 2.1 version.
[2010-08-11 00:29:38 - PeriodTrackerv2]
trouble processing "java/net/DatagramPacket.class":
[2010-08-11 00:29:38 - PeriodTrackerv2]
Attempt to include a core class (java.* or javax.*) in something other
...
[2010-08-11 00:29:38 - PeriodTrackerv2] 1 error; aborting
[2010-08-11 00:29:38 - PeriodTrackerv2] Conversion to Dalvik format failed with error 1
I verified that this class does exist in the standard Android2.1 jar file, so I find it highly unusual a class in the actual base Jar file would be problematic. I am not using this class in any fashion in my program.
I updated to version 2.2 and still get same error, this completely baffles me and just appeared tonight after zero issues for months.
Any ideas on how to fix this?
Cheers,
Tom
Alright!
I reviewed the build path and somehow the Android.jar was added twice. Problem solved.

Categories

Resources