walterDurin / android-ws-client

Automatically exported from code.google.com/p/android-ws-client
0 stars 0 forks source link

Class not found 'org.jinouts.xml.namespace.QName' #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate those Stubs from WSDL
2. Try to run it
3.

What is the expected output? What do you see instead?
05-21 15:34:32.047: E/dalvikvm(11301): Could not find class 
'org.jinouts.xml.namespace.QName', referenced from method 
my.package.main.login.CustomerIdLogin$AuthenticateViaLogin.doInBackground.
mport java.io.File;
import java.net.MalformedURLException;
import java.net.URL;

import org.jinouts.xml.namespace.QName; -> If you search the class it's in 
there though my project doesn't found it. However I dont get any error also, 
just when running the project.
import org.jinouts.xml.ws.Holder;

import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.PowerManager;
import android.os.StrictMode;
import android.util.Log;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
..
..
..

final QName SERVICE_NAME = new 
QName("http://my.package.com.au/soacs/authws/wsdl/v1.0", 
"AuthenticationWebService"); ->fail here.

What version of the product are you using? On what operating system?
OS windows, and Android 2.3.7 (HTC) and 4.0.4 (Google - Nexus).

Please provide any additional information below.

I have generated stubs just like you told so, copied the folders with it to the 
project, and everything looked ok. Though when I try to invoke any class from 
there it's crash due QName is missing...
However I can see two classes in org.jinouts.xml.namespace : 
NamespaceContext.class and QName.class

Original issue reported on code.google.com by klausvil...@gmail.com on 21 May 2012 at 6:02

GoogleCodeExporter commented 9 years ago
I got a solution for this issue:

The android example project that comes with this library is not packaging the 
proper jar files, try to fix your build path.

In my case, I fix the problem just changing the lib folder to libs, and that 
did the trick!

Original comment by iscrober...@gmail.com on 26 Aug 2013 at 10:58