longjn / android-ws-client Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/android-ws-client
Automatically exported from code.google.com/p/android-ws-client
I have a problem when my app consumes a web service.
The client was generated with "androidWSClientGenDist-1.2.0" package
It throws "Unexpected wrapper element"
The method signature is:
@WebResult(name = "Wrapped", targetNamespace = "http://services/xsd/lex/LocalExtension/v2/wrapper")
@RequestWrapper(localName = "getBooking", targetNamespace = "http://services/xsd/lex/LocalExtension/v2/wrapper", className = "services.xsd.lex.localextension.v2.wrapper.GetBookingRequest")
@WebMethod(action = "http://services/xsd/lex/LocalExtension/v2/getBooking")
@ResponseWrapper(localName = "getBookingResponse", targetNamespace = "http://services/xsd/lex/LocalExtension/v2/wrapper", className = "services.xsd.lex.localextension.v2.wrapper.GetBookingResponse")
public services.xsd.lex.localextension.v2.types.LxeBooking getBooking(
@WebParam(name = "WorkingDepartment", targetNamespace = "http://services/xsd/lex/LocalExtension/v2/wrapper")
services.xsd.lex.localextension.v2.types.LxpDepartment workingDepartment,
@WebParam(name = "TrackingNumber", targetNamespace = "http://services/xsd/lex/LocalExtension/v2/wrapper")
long trackingNumber
);
This is the raw request message:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://services/xsd/lex/LocalExtension/v2" >
<soap:Header/>
<soap:Body>
<ws:getBooking>
<ws:WorkingDepartment>
</ws:WorkingDepartment>
<ws:TrackingNumber>1150007354</ws:TrackingNumber>
</ws:getBooking>
</soap:Body>
This is the raw response message:
</soap:Envelope>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unexpected wrapper element
{http://services/xsd/lex/LocalExtension/v2}getBooking found. Expected
{http://services/xsd/lex/LocalExtension/v2/wrapper}getBooking.</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>
------------------------------------------------------
I think that the namespace (in request) is
http://services/xsd/lex/LocalExtension/v2 and it must be
http://services/xsd/lex/LocalExtension/v2/wrapper
is this a bug? or am I doing somtething wrong?
Original issue reported on code.google.com by [email protected]
on 26 Dec 2012 at 6:30
I am using runJinoutsUI.bat file to generate source code from wsdl. It creates
the wsClientStub directory in which andr-lib folder with libs inside is
created. But NO source codehas been created in wsClientStub directory.
Please help me out?
I am using apache-cxf-2.6.1 to generate Stubs.
here is the wsdl link
http://123.201.130.210:8030/ServiceLibrary/Service1.svc?wsdl
i need it urgently.Please help me
webservice deployed on windows 7 m/c.generating source code on windows xp m/c.
Original issue reported on code.google.com by [email protected]
on 5 Nov 2012 at 5:38
I have made a webservice in asp.net (asmx) which returns many values in
structure (XML is automatically formed based on structure).
I can see in Log Cat that the values are returned properly and It finds all the
FieldName returned.
But somehow it gives Method Not Matched Exception and stops executing.
It works fine with asp.net based webservices which returns string.
Original issue reported on code.google.com by [email protected]
on 18 Aug 2013 at 8:22
I am using runJinoutsUI.bat file to generate stubs. It creates the wsClientStub
directory in which andr-lib folder with libs inside is created. But NO Stubs
has been created in wsClientStub directory.
Please help me out?
I am using apache-cxf-2.6.1 to generate Stubs.
Original issue reported on code.google.com by [email protected]
on 26 Jul 2012 at 9:55
What steps will reproduce the problem?
1. run "runJinoutsUI.bat:
2. WSDL file URL : http://m.boltsystem.com/driverapp/request.cfc?wsdl
3. CXF bin directory: <Path_To_apache-cxf-2.7.3\bin>
What is the expected output? What do you see instead?
expected output is generating source java file but it is not. only andr-lib
directory is available.
From command prompt I noticed this error,
ERROR>WSDLToJava Error: Rpc/encoded wsdls are not supported with CXF
What version of the product are you using? On what operating system?
Windows 7 32-bit
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 7 Mar 2013 at 2:14
Attachments:
What steps will reproduce the problem?
1. Inlcuding generated stub classes
2. Called super constructor Service(URL, QName) is undefined
3.
What is the expected output? What do you see instead?
Called super constructor Service(URL, QName) is undefined
What version of the product are you using? On what operating system?
Windows 7, Eclipse Juno Android
Original issue reported on code.google.com by timo.schoormann
on 29 Nov 2012 at 9:56
What steps will reproduce the problem?
1. Create a WS consumer :
ServiceCalculatorSoapBindingImplService service = new
ServiceCalculatorSoapBindingImplService();
ServiceCalculator port = service.getServiceCalculatorSoapBindingImplPort();
' (BindingProvider) port ).getRequestContext().put(
BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
"http://www.cxf.service.provider.com/uri" );
System.out.println("ws.endpoint [" +
((BindingProvider)port).getEndpointReference() + "]");
ClassResponse reponse = port.add(2,3);
What is the expected output? What do you see instead?
Expected : changing URL endpoint and calling succesfully WS
Result : ClassCastException on : ( (BindingProvider) port )
What version of the product are you using? On what operating system?
* android-ws-client 1.2.0
* apache CXF 2.7.3
Please provide any additional information below.
How to change URL Endpoint on the fly ?
Original issue reported on code.google.com by [email protected]
on 6 Mar 2013 at 11:12
What steps will reproduce the problem?
1. Unarchive androidWSClientGenDist-1.2.0
2. Run runJinoutsUI.bat
3. Supply wsdl url from localhost server
4. Select a folder for client stub
5. Use CFX 2.6.2 bin directory for CFX Bin dir
6. Generate Stub
What is the expected output? What do you see instead?
Client stub java code and jars in andr-lib, I only see andr-lib and no client
stub java code.
What version of the product are you using? On what operating system?
1.2.0 on Windows 7 Ultimate
Please provide any additional information below.
The wsdl does define a single method which returns a string.
Original issue reported on code.google.com by [email protected]
on 4 Sep 2012 at 11:10
This is a required header for SOAP 1.1 and the current implementation of the
WSProxyClient does not set in as part of the POST request.
This headers was removed from SOAP 1.2 but it seems that several web services
implementation request this header.
More info:
* http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383528
* http://www.w3.org/TR/2003/REC-soap12-part0-20030624/#L4697
I am attaching a tentative solution that I could test and validate that fixed
the error I was getting with my wsdl.
This value can be extract from the @WebMethod annotation and should be passed
as a *new* parameter to HttpTransportUtil#sendRequestAndGetRespXML
This is the WSDL I was testing:
http://api.mindbodyonline.com/0_5/ClassService.asmx?WSDL
WARNING: There is another issue with this WSDL that produces a recursive loop
after parsing the response because it is a "valid" error response that was not
specified on the WSDL.
Original issue reported on code.google.com by [email protected]
on 11 Nov 2012 at 2:55
Attachments:
What steps will reproduce the problem?
1. Unarchive AndroidWSSampleApp
2. Import Existing Project into eclipse workspace
3. Eclipse reports Invalid Project Description
What is the expected output? What do you see instead?
The project should load into eclipse. Eclipse reports Invalid Project
Description.
What version of the product are you using? On what operating system?
1.2.0 concurrent sample on Sept. 4. 2012, Windows 7 Ultimate
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 4 Sep 2012 at 11:24
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 10 May 2013 at 12:59
What steps will reproduce the problem?
1. I have created a client for our WCF webservice.
2. The Request seems to be ok and does work in SoapUI.
3. There I get a FieldNotMatchedException
(I could mail the WSDL which I am using)
What is the expected output? What do you see instead?
The service should be called.
What version of the product are you using? On what operating system?
1.2.0
Please provide any additional information below.
Here is the LogCat dump:
03-26 16:22:43.093: I/System.out(18853): Status 500
03-26 16:22:43.098: I/System.out(18853): WSInvocationHandler: Status 500
03-26 16:22:43.103: I/System.out(18853): WSInvocationHandler: Response:
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode>
s:Client</faultcode><faultstring
xml:lang="en-US">System.ServiceModel.FaultException: The message with Action ''
cannot be processed at the receiver, due to a ContractFilter mismatch at the
EndpointDispatcher. This may be because of either a contract mismatch
(mismatched Actions between sender and receiver) or a binding/security mismatch
between the sender and the receiver. Check that sender and receiver have the
same contract and the same binding (including security requirements, e.g.
Message, Transport, None).
03-26 16:22:43.103: I/System.out(18853): at
System.ServiceModel.Dispatcher.ErrorBehavior.ThrowAndCatch(Exception e, Message
message)</faultstring></s:Fault></s:Body></s:Envelope>
03-26 16:22:43.103: I/System.out(18853):
ReflectionHelper*java.lang.NoSuchFieldException: GetAllResult
03-26 16:22:43.113: I/System.out(18853): FieldnameFound for GetAllResult
03-26 16:22:43.113: I/System.out(18853):
ReflectionHelper*java.lang.NoSuchFieldException: GetAllResult
03-26 16:22:43.118: I/System.out(18853):
ReflectionHelper*java.lang.NoSuchFieldException: faultcode
03-26 16:22:43.118: W/System.err(18853):
org.jinouts.ws.exception.FieldNotMatchedException
03-26 16:22:43.123: W/System.err(18853): at
hu.javaforum.commons.ReflectionHelper.getFieldClass(ReflectionHelper.java:504)
03-26 16:22:43.123: W/System.err(18853): at
hu.javaforum.android.androidsoap.GenericHandler.startElement(GenericHandler.java
:345)
03-26 16:22:43.123: W/System.err(18853): at
hu.javaforum.android.androidsoap.GenericHandler.parseWithPullParser(GenericHandl
er.java:243)
03-26 16:22:43.123: W/System.err(18853): at
org.jinouts.ws.WSInvocationHandler.invoke(WSInvocationHandler.java:99)
Original issue reported on code.google.com by [email protected]
on 26 Mar 2013 at 3:35
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 [email protected]
on 21 May 2012 at 6:02
What steps will reproduce the problem?
1. the http call time out when calling another web service. and no way to set
it.
What is the expected output? What do you see instead?
would like to be able to set http call time out from client code.
Original issue reported on code.google.com by [email protected]
on 12 Oct 2012 at 1:09
What steps will reproduce the problem?
I follow the steps of the manual, but when I call to the new ws-client in
android application.
What is the expected output? What do you see instead?
01-01 20:22:26.937: W/System.err(529): java.lang.NoSuchMethodError:
java.lang.String.isEmpty
01-01 20:22:26.937: W/System.err(529): at
org.jinouts.ws.WSInvocationHandler.getMethodParamNameValueMap(WSInvocationHandle
r.java:198)
01-01 20:22:26.937: W/System.err(529): at
org.jinouts.ws.WSInvocationHandler.getSoapBodyXML(WSInvocationHandler.java:136)
01-01 20:22:26.937: W/System.err(529): at
org.jinouts.ws.WSInvocationHandler.invoke(WSInvocationHandler.java:69)
01-01 20:22:26.937: W/System.err(529): at $Proxy0.checkCode(Native Method)
01-01 20:22:26.937: W/System.err(529): at
com.example.testws.MainActivity.onCreate(MainActivity.java:21)
01-01 20:22:26.937: W/System.err(529): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
01-01 20:22:26.937: W/System.err(529): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
01-01 20:22:26.937: W/System.err(529): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
01-01 20:22:26.937: W/System.err(529): at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
01-01 20:22:26.937: W/System.err(529): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
01-01 20:22:26.937: W/System.err(529): at
android.os.Handler.dispatchMessage(Handler.java:99)
01-01 20:22:26.946: W/System.err(529): at
android.os.Looper.loop(Looper.java:123)
01-01 20:22:26.946: W/System.err(529): at
android.app.ActivityThread.main(ActivityThread.java:4627)
01-01 20:22:26.946: W/System.err(529): at
java.lang.reflect.Method.invokeNative(Native Method)
01-01 20:22:26.946: W/System.err(529): at
java.lang.reflect.Method.invoke(Method.java:521)
01-01 20:22:26.946: W/System.err(529): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
01-01 20:22:26.946: W/System.err(529): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
01-01 20:22:26.946: W/System.err(529): at
dalvik.system.NativeStart.main(Native Method)
01-01 20:22:26.955: D/AndroidRuntime(529): Shutting down VM
01-01 20:22:26.955: W/dalvikvm(529): threadid=1: thread exiting with uncaught
exception (group=0x4001d800)
01-01 20:22:27.006: D/dalvikvm(529): GC_FOR_MALLOC freed 7024 objects / 396248
bytes in 45ms
01-01 20:22:27.006: E/AndroidRuntime(529): FATAL EXCEPTION: main
01-01 20:22:27.006: E/AndroidRuntime(529): java.lang.NoSuchMethodError:
java.lang.String.isEmpty
01-01 20:22:27.006: E/AndroidRuntime(529): at
org.jinouts.ws.WSInvocationHandler.getWSOperationNameFromMethod(WSInvocationHand
ler.java:232)
01-01 20:22:27.006: E/AndroidRuntime(529): at
org.jinouts.ws.WSInvocationHandler.getSoapBodyXML(WSInvocationHandler.java:142)
01-01 20:22:27.006: E/AndroidRuntime(529): at
org.jinouts.ws.WSInvocationHandler.invoke(WSInvocationHandler.java:69)
01-01 20:22:27.006: E/AndroidRuntime(529): at $Proxy0.checkCode(Native Method)
01-01 20:22:27.006: E/AndroidRuntime(529): at
com.example.testws.MainActivity.onCreate(MainActivity.java:21)
01-01 20:22:27.006: E/AndroidRuntime(529): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
01-01 20:22:27.006: E/AndroidRuntime(529): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
01-01 20:22:27.006: E/AndroidRuntime(529): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
01-01 20:22:27.006: E/AndroidRuntime(529): at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
01-01 20:22:27.006: E/AndroidRuntime(529): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
01-01 20:22:27.006: E/AndroidRuntime(529): at
android.os.Handler.dispatchMessage(Handler.java:99)
01-01 20:22:27.006: E/AndroidRuntime(529): at
android.os.Looper.loop(Looper.java:123)
01-01 20:22:27.006: E/AndroidRuntime(529): at
android.app.ActivityThread.main(ActivityThread.java:4627)
01-01 20:22:27.006: E/AndroidRuntime(529): at
java.lang.reflect.Method.invokeNative(Native Method)
01-01 20:22:27.006: E/AndroidRuntime(529): at
java.lang.reflect.Method.invoke(Method.java:521)
01-01 20:22:27.006: E/AndroidRuntime(529): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
01-01 20:22:27.006: E/AndroidRuntime(529): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
01-01 20:22:27.006: E/AndroidRuntime(529): at
dalvik.system.NativeStart.main(Native Method)
What version of the product are you using? On what operating system?
1.2
Original issue reported on code.google.com by [email protected]
on 1 Jan 2013 at 8:33
What steps will reproduce the problem?
1. Create stubs from a wsdl which has 4 or more child under body tag
2. Look at the request log.
What is the expected output? What do you see instead?
Child tags should be in same order as in wsdl, but they get jumbled. this
causes exception on the server side as the SAX parser expects the tag in same
sequential order as in wsdl.
What version of the product are you using? On what operating system?
MAC OS 10.6.6, androidWSClientGenDist-1.2.0, apache-cxf-2.6.1
Please provide any additional information below.
If the generated xml request is sent through SoapUI without changing order,
server sends exception. But if order of the tags the corrected (as is in wsdl),
server responds correctly.
Original issue reported on code.google.com by [email protected]
on 1 Aug 2012 at 6:45
When I call the metod in AsynkTask it should wait but return null value and not
call the metod going to onPostExecute.
Original issue reported on code.google.com by [email protected]
on 12 Feb 2013 at 5:57
Encounted this bug when using inheritance. Setter method was not being searched
on super class but on the instance class again.
Original issue reported on code.google.com by [email protected]
on 17 Apr 2013 at 12:31
Attachments:
I hv generated stubs and trying to access method in web service, then
following Exception Occured :
1. ReflectionHelper*java.lang.NoSuchFieldException:
2. org.jin outs.ws.exception.Method Not Matched Exception
This is the detail exception logs generated in log cat window.
07-30 14:43:10.065: I/AndroidWSAppActivity(1981): Button Pressed, Now call the
webservice !!!!!!!!
07-30 14:43:10.115: I/System.out(1981): setPriDNSred
07-30 14:43:10.115: I/System.out(1981): SETTING DONE
07-30 14:43:10.115: I/System.out(1981): sendCEClientMessage
07-30 14:43:10.135: I/System.out(1981): Retrieving document at
'http://192.168.1.16/RAM_XP/CE_WebService.asmx?wsdl'.
07-30 14:43:10.975: D/dalvikvm(1981): GC_CONCURRENT freed 147K, 3% free
9327K/9607K, paused 17ms+10ms
07-30 14:43:11.905: D/dalvikvm(1981): GC_CONCURRENT freed 89K, 3% free
9643K/9863K, paused 12ms+13ms
07-30 14:43:12.527: D/dalvikvm(1981): GC_CONCURRENT freed 84K, 3% free
9979K/10183K, paused 12ms+11ms
07-30 14:43:12.975: D/dalvikvm(1981): GC_CONCURRENT freed 97K, 3% free
10284K/10503K, paused 11ms+11ms
07-30 14:43:13.655: D/dalvikvm(1981): GC_CONCURRENT freed 199K, 4% free
10497K/10823K, paused 12ms+11ms
07-30 14:43:14.076: I/System.out(1981): Full Request XML Is <soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:ws="http://tempuri.org/"
><soap:Header/><soap:Body><ws:SendCE_Client_Message><ws:objCEClientStatus><ws:cl
ientStatus>avail</ws:clientStatus><ws:comIPAddr>192.168.1.44</ws:comIPAddr><ws:c
omType>serial</ws:comType><ws:dhcp>255.255.248.0</ws:dhcp><ws:duration>20</ws:du
ration><ws:gateway>255.255.248.1</ws:gateway><ws:groupName>Grp
VJ</ws:groupName><ws:hostName>VJ</ws:hostName><ws:ipAddr>192.168.1.45</ws:ipAddr
><ws:macAddr>00-1F-D0-01-26-A5</ws:macAddr><ws:subnetMask>255.255.248.1</ws:subn
etMask><ws:priDNS>red</ws:priDNS><ws:priWNS>gre</ws:priWNS><ws:secDNS>gaer</ws:s
ecDNS><ws:secWNS>gawre</ws:secWNS><ws:shutdownACK>gr</ws:shutdownACK><ws:strLice
nseStatus>valid</ws:strLicenseStatus><ws:pollInterval>10</ws:pollInterval></ws:o
bjCEClientStatus></ws:SendCE_Client_Message></soap:Body></soap:Envelope>
07-30 14:43:14.076: I/System.out(1981): Response Class:
org.tempuri.SendCEClientMessageResponse
07-30 14:43:14.505: D/dalvikvm(1981): GC_CONCURRENT freed 260K, 4% free
10641K/11015K, paused 12ms+11ms
07-30 14:43:14.635: I/System.out(1981): Status 200
07-30 14:43:14.635: I/System.out(1981): WSInvocationHandler: Status 200
07-30 14:43:14.655: I/System.out(1981): WSInvocationHandler: Response: <?xml
version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><SendCE_Client_MessageRe
sponse xmlns="http://tempuri.org/"><SendCE_Client_MessageResult>Object
reference not set to an instance of an
object.</SendCE_Client_MessageResult></SendCE_Client_MessageResponse></soap:Body
></soap:Envelope>
07-30 14:43:14.655: I/System.out(1981):
ReflectionHelper*java.lang.NoSuchFieldException: SendCE_Client_MessageResult
07-30 14:43:14.665: I/System.out(1981): FieldnameFound for
SendCE_Client_MessageResult
07-30 14:43:14.665: I/System.out(1981):
ReflectionHelper*java.lang.NoSuchFieldException: SendCE_Client_MessageResult
07-30 14:43:14.675: I/System.out(1981):
ReflectionHelper*java.lang.NoSuchFieldException: sendCE_Client_MessageResult
07-30 14:43:14.685: I/System.out(1981): FieldnameFound for
sendCE_Client_MessageResult
07-30 14:43:14.685: I/System.out(1981):
ReflectionHelper*java.lang.NoSuchFieldException: sendCE_Client_MessageResult
07-30 14:43:14.695: I/System.out(1981):
ReflectionHelper*java.lang.NoSuchFieldException: sendCE_Client_MessageResult
07-30 14:43:14.695: I/System.out(1981): FieldnameFound for
sendCE_Client_MessageResult
07-30 14:43:14.695: I/System.out(1981):
ReflectionHelper*java.lang.NoSuchFieldException: sendCE_Client_MessageResult
07-30 14:43:14.715: I/System.out(1981): ReflectionHelperInvoking
java.lang.Object.SendCE_Client_MessageResult()
07-30 14:43:14.715: W/System.err(1981):
org.jinouts.ws.exception.MethodNotMatchedException
07-30 14:43:14.715: W/System.err(1981): at
hu.javaforum.commons.ReflectionHelper.invokeGetter(ReflectionHelper.java:87)
07-30 14:43:14.725: W/System.err(1981): at
org.jinouts.ws.WSInvocationHandler.invoke(WSInvocationHandler.java:102)
07-30 14:43:14.725: W/System.err(1981): at $Proxy0.sendCEClientMessage(Native
Method)
07-30 14:43:14.725: W/System.err(1981): at
com.rishi.WebServiceCallActivity$CEWebServiceTask.doInBackground(WebServiceCallA
ctivity.java:181)
07-30 14:43:14.725: W/System.err(1981): at
com.rishi.WebServiceCallActivity$CEWebServiceTask.doInBackground(WebServiceCallA
ctivity.java:1)
07-30 14:43:14.735: W/System.err(1981): at
android.os.AsyncTask$2.call(AsyncTask.java:264)
07-30 14:43:14.735: W/System.err(1981): at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
07-30 14:43:14.735: W/System.err(1981): at
java.util.concurrent.FutureTask.run(FutureTask.java:137)
07-30 14:43:14.735: W/System.err(1981): at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
07-30 14:43:14.735: W/System.err(1981): at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
07-30 14:43:14.735: W/System.err(1981): at
java.lang.Thread.run(Thread.java:856)
What version of the product are you using? On what operating system?
Windows 7 ,Android 3.0
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 30 Jul 2012 at 9:23
What steps will reproduce the problem?
1. Unzip androidWSClientGenList
2. runJinoutsUI.bat does not work
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
On Microsoft Server 2008 R2, androidWSClientGenDist-1.2.0
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 28 Jul 2012 at 8:04
The xml string for the SOAP request is using the field name for building the
tag name and it is never using the XMLElement or XMLType annotations.
The problem with this is that if the tag is uppercase, its field attribute
isn't.
For example if I have this little object:
@XMLType(name="MyRequest")
public class MyRequest {
@XmlElement(name = "Param")
protected String param;
@XmlElement(name = "AnotherParam")
protected String anotherParam;
}
Expected:
<MyRequest><Param>xxx</Param><AnotherParam>yyy</AnotherParam></MyRequest>
Actual:
<MyRequest><param>xxx</param><anotherParam>yyy</anotherParam></MyRequest>
Only the first tag of the request works as expected because it is extracting
its name from the @WebParam param in the @WebMethod operation.
I am attaching a tentative solution where I am using the name from the
XMLElement if present, otherwise keep using the field name.
Original issue reported on code.google.com by [email protected]
on 11 Nov 2012 at 7:56
Attachments:
One class is created which reference to org.jinouts.activation.DataHandler.
Searched all jar files and no this one found.
Ver 1.2.0
The following is the created code.
import org.jinouts.activation.DataHandler;
import org.jinouts.xml.bind.annotation.XmlAccessType;
import org.jinouts.xml.bind.annotation.XmlAccessorType;
import org.jinouts.xml.bind.annotation.XmlElement;
import org.jinouts.xml.bind.annotation.XmlMimeType;
import org.jinouts.xml.bind.annotation.XmlType;
/**
* <p>Java class for TranslationDepot complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="TranslationDepot">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="phoneNumber" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="fieldName" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="language" type="{http://atxg.com/mmp/enterprise/core/guard/}language" minOccurs="0"/>
* <element name="wavData" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TranslationDepot", propOrder = {
"phoneNumber",
"fieldName",
"language",
"wavData"
})
public class TranslationDepot {
@XmlElement(required = true)
protected String phoneNumber;
@XmlElement(required = true)
protected String fieldName;
protected Language language;
@XmlElement(required = true)
@XmlMimeType("application/octet-stream")
protected DataHandler wavData;
/**
* Gets the value of the phoneNumber property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPhoneNumber() {
return phoneNumber;
}
/**
* Sets the value of the phoneNumber property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPhoneNumber(String value) {
this.phoneNumber = value;
}
/**
* Gets the value of the fieldName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFieldName() {
return fieldName;
}
/**
* Sets the value of the fieldName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFieldName(String value) {
this.fieldName = value;
}
/**
* Gets the value of the language property.
*
* @return
* possible object is
* {@link Language }
*
*/
public Language getLanguage() {
return language;
}
/**
* Sets the value of the language property.
*
* @param value
* allowed object is
* {@link Language }
*
*/
public void setLanguage(Language value) {
this.language = value;
}
/**
* Gets the value of the wavData property.
*
* @return
* possible object is
* {@link DataHandler }
*
*/
public DataHandler getWavData() {
return wavData;
}
/**
* Sets the value of the wavData property.
*
* @param value
* allowed object is
* {@link DataHandler }
*
*/
public void setWavData(DataHandler value) {
this.wavData = value;
}
}
Original issue reported on code.google.com by [email protected]
on 13 Jul 2012 at 2:25
There is bug while parsing responses where the field to extract is part of a
superclass.
The method that needs to be fixed is ReflexionHelper#getMethodByName.
I am attaching a little fix that resolves this bug.
The problem was that you were iterating always the same class without moving to
the superclass.
My personal opinion is that this is a critical and very serious bug that need
to be resolved asap. Currently, the library does not support a hierarchy result
which it is very common scenario.
Original issue reported on code.google.com by [email protected]
on 11 Nov 2012 at 5:27
Attachments:
What is the expected output? What do you see instead?
Expected output is the service object should be created
But instead I'm getting Exception:
org.jinouts.xml.ws.WebServiceException: Provider
com.sun.xml.internal.ws.spi.ProviderImpl not found
What version of the product are you using? On what operating system?
I'm using androidWSClientGenDist-1.2.0, on windows7
Please provide any additional information below.
I'm attaching the logcat dump.
Original issue reported on code.google.com by [email protected]
on 10 Feb 2014 at 7:50
Attachments:
What steps will reproduce the problem?
1. Generate the stub classes using this tool.
2. Send a call to web method.
What is the expected output? What do you see instead?
Call fails with exception:
W/System.err( 832): java.lang.NullPointerException
W/System.err( 832): at
org.jinouts.ws.WSInvocationHandler.getWrapperResultName(WSInvocationHandler.java
:109)
W/System.err( 832): at
org.jinouts.ws.WSInvocationHandler.invoke(WSInvocationHandler.java:95)
W/System.err( 832): at $Proxy0.lookupCityState(Native Method)
W/System.err( 832): at
com.tmobile.webservice.RequestTask.sendRequest(RequestTask.java:67)
W/System.err( 832): at
com.tmobile.webservice.RequestTask.doInBackground(RequestTask.java:35)
W/System.err( 832): at
com.tmobile.webservice.RequestTask.doInBackground(RequestTask.java:1)
W/System.err( 832): at android.os.AsyncTask$2.call(AsyncTask.java:264)
W/System.err( 832): at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
W/System.err( 832): at
java.util.concurrent.FutureTask.run(FutureTask.java:137)
W/System.err( 832): at
android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)
W/System.err( 832): at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
W/System.err( 832): at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
W/System.err( 832): at java.lang.Thread.run(Thread.java:856)
What version of the product are you using? On what operating system?
Product version: androidWSClientGenDist-1.2.0 & apache-cxf-2.6.1
Running on emulator (android ver 4.0) on mac
10.6.6
(NOTE: Stubs are generated on windows machine)
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 23 Jul 2012 at 10:23
What steps will reproduce the problem?
1. Using a webservice call whose return type is a bean with at least one
supertype bean.
What is the expected output? What do you see instead?
Expecting a correctly filled bean. Instead the service-call doesn't return from
an infinite loop inside ReflectionHelper (see below).
What version of the product are you using? On what operating system?
android-ws-client 1.2.0, Apache CXF 2.6.1
Please provide any additional information below.
ReflectionHelper#getMethodByName(Class, String, Class) is looping forever
because of a buggy for-loop. Instead of instanceClass.getDeclaredMethod(...) it
must be superClass.getDeclaredMethod(...).
Original issue reported on code.google.com by marmissf
on 15 Aug 2012 at 9:23
What steps will reproduce the problem?
1. Download androidWSClientGenDist-1.2.0.zip from
http://code.google.com/p/android-ws-client/downloads/detail?name=androidWSClient
GenDist-1.2.0.zip&can=2&q=
2. Extract it at C:\Projects\Java\androidWSClientGenDist-1.2.0
3. Download (and extract) apache cxf 2.7.0 from
http://cxf.apache.org/download.html
4. Copy the extracted file in folder
C:\Projects\Java\androidWSClientGenDist-1.2.0
5. Double click on runJinoutsUI.bat
6. Copy paste WSDL url
http://www.w3schools.com/webservices/tempconvert.asmx?WSDL in the WSDL file URL
textbox.
7. Select folder
C:\Projects\Java\androidWSClientGenDist-1.2.0\GeneratedProxyCode for client
stub. Where GeneratedProxyCode folder is already created.
8. Enter C:\Projects\Java\androidWSClientGenDist-1.2.0\apache-cxf-2.7.0\bin in
CXF bin folder path. Refer attachment for screen shot.
9.Click Generate Stub button and it will show you message Stub is generated.
Refer attachment for screen shot.
10.Now open Generated folder and you will notice it only has jar files no proxy
code. Refer attachment for screen shot.
11.However if you check the command window which opened this UI will display
some error message. Refer attachment for screen shot.
What is the expected output? What do you see instead?
I think expected output would be proxy classes.
What version of the product are you using? On what operating system?
• Windows 7 64 BIT
• apache-cxf-2.7.0
• androidWSClientGenDist-1.2.0
• java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
Original issue reported on code.google.com by [email protected]
on 23 Nov 2012 at 8:28
Attachments:
What steps will reproduce the problem?
1. Try on something else, e.g. Linux
Properties: wsdl2java -ant -frontend jaxws21 -client -d
Command to execute: echo %CXF_HOME%
java.io.IOException: Cannot run program "cmd.exe": error=2, No such file or
directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at java.lang.Runtime.exec(Runtime.java:615)
at java.lang.Runtime.exec(Runtime.java:483)
at org.jinouts.util.AndroidWSClientGenUtil.executeCommand(AndroidWSClientGenUtil.java:80)
at org.jinouts.util.AndroidWSClientGenUtil.isCXFHOMEValid(AndroidWSClientGenUtil.java:42)
at org.jinouts.ui.JinoutsJFrame.okButtonActionPerformed(JinoutsJFrame.java:218)
at org.jinouts.ui.JinoutsJFrame.access$3(JinoutsJFrame.java:202)
at org.jinouts.ui.JinoutsJFrame$4.actionPerformed(JinoutsJFrame.java:123)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:703)
at java.awt.EventQueue.access$000(EventQueue.java:102)
at java.awt.EventQueue$3.run(EventQueue.java:662)
at java.awt.EventQueue$3.run(EventQueue.java:660)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:676)
at java.awt.EventQueue$4.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:673)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
... 43 more
WSDL bat file
/home/nagygabor/Desktop/androidWSClientGenDist-1.2.0/apache-cxf-2.6.2/bin/wsdl2j
ava.bat
Command to execute: wsdl2java -ant -frontend jaxws21 -client -d
/home/nagygabor/Desktop/androidWSClientGenDist-1.2.0/./temp -b
/home/nagygabor/Desktop/androidWSClientGenDist-1.2.0/./conf/jaxbBinding.xml
http://localhost:8080/anid/MobileWS?wsdl
java.io.IOException: Cannot run program "cmd.exe" (in directory
"/home/nagygabor/Desktop/androidWSClientGenDist-1.2.0/apache-cxf-2.6.2/bin"):
error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at java.lang.Runtime.exec(Runtime.java:615)
at org.jinouts.ui.biz.JinoutsFrameController.generateJavaFromWSDL(JinoutsFrameController.java:58)
at org.jinouts.ui.JinoutsJFrame.okButtonActionPerformed(JinoutsJFrame.java:235)
at org.jinouts.ui.JinoutsJFrame.access$3(JinoutsJFrame.java:202)
at org.jinouts.ui.JinoutsJFrame$4.actionPerformed(JinoutsJFrame.java:123)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:703)
at java.awt.EventQueue.access$000(EventQueue.java:102)
at java.awt.EventQueue$3.run(EventQueue.java:662)
at java.awt.EventQueue$3.run(EventQueue.java:660)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:676)
at java.awt.EventQueue$4.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:673)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
... 41 more
Original issue reported on code.google.com by [email protected]
on 18 Sep 2012 at 9:03
What steps will reproduce the problem?
UserService_Service service =new UserService_Service();
UserService us =service.getUserServicePort();
UserListResult result=us.getUserList("1");
What is the expected output? What do you see instead?
java.lang.NoSuchMethodError: java.lang.String.isEmpty
at
org.jinouts.ws.WSInvocationHandler.getWSOperationNameFromMethod(WSInvocationHand
ler.java:232)
at org.jinouts.ws.WSInvocationHandler.getSoapBodyXML(WSInvocationHandler.java:142)
at org.jinouts.ws.WSInvocationHandler.invoke(WSInvocationHandler.java:69)
at $Proxy0.getUserList(Native Method)
at www.niufen.com.WSDemoActivity$1.onClick(WSDemoActivity.java:38)
at android.view.View.performClick(View.java:2408)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
What version of the product are you using? On what operating system?
android 2.2
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 22 Aug 2012 at 3:32
Hey,
first thanks for this great project.
while using as a while I found an issue, that makes my work very hard.
in germany we are using a lot of special characters like ß,ö,ä,ü...
I have a webservice with a request of Strings. If I send Strings with special
characters they´re not transfered.
example from Logcat System.out:
...
<phenomenonId>0</phenomenonId>
<woundKind>Diabetischer Fu?</woundKind>
<woundnr>0</woundnr>...
With SoapUI it works perfekt, so I think there is an issue in the Mapping?
Thank you very much, Greetings
Original issue reported on code.google.com by [email protected]
on 26 Jul 2012 at 3:00
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.