careldegoede / android-ws-client

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

How to change URL Endpoint on the fly ? using BindingProvider result : ClassCastException #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 sjac...@gmail.com on 6 Mar 2013 at 11:12

GoogleCodeExporter commented 8 years ago
The "Proxy" is not a proxy for BindingProvider.  The "Proxy" is a proxy for 
"org.jinouts.ws.WSInvocationHandler"

However, even trying to cast to WSInvociationHandler causes a cast exception.  
So, I don't get it.

In any case, not much we can do to investigate without the source code for 
jinouts-ws-support which is the primary source for all this.  I hope Asaf will 
give to me.

Original comment by app.m...@gmail.com on 24 Jan 2014 at 3:41

GoogleCodeExporter commented 8 years ago
By the way, it's been over 6 months since you had this question.  Did you move 
over to ksoap?

Original comment by app.m...@gmail.com on 24 Jan 2014 at 3:42