I tried that with no luck.
I have total control of the server and from the client side.
That's why I was trying this implementation:
Service serviceModel = new ObjectServiceFactory().create(IService.class);
IService service = (IService)new
XFireProxyFactory().create(serviceModel,"http://myservice/Service/");
Those classes are the same from the server side application (copy paste), but
are in a different project.
Should I try the dinamic client even though I have control of the code?
thks
Andres
>>> [EMAIL PROTECTED] >>>
Try to specify service namespace, like :
ObjectServiceFactory().create(IService.class,null,<YOUR_SERVICE_NAMESPACE>,null);
On 11/30/06, Andres Rangel <[EMAIL PROTECTED]> wrote:
> Hi, I have a web service that I created using XFIre.
> We built a .net client and it works well.
> now I want to build a java client using the Xfire libraries .
> when I call the service, the service returns me the object but with empty
> fields.
> What can it be?
>
> the source is:
>
> try {
> Service serviceModel = new
> ObjectServiceFactory().create(IService.class);
> IService service = (IService)new
> XFireProxyFactory().create(serviceModel,"http://myservice/Service/");
>
> MyObject signal = service.login("USER","PASSWORD");
> if(signal!=null)
> {
> System.out.println("Return:" + signal.getCode());
> System.out.println("Return:" + signal.getHandle());
> }
>
> } catch (MalformedURLException ex) {
> ex.printStackTrace();
> }
> This code returns a valid object but with empty data ( getcode return 0 and
> getHandle returns null).
> But if I test it using .Net client, it works well.
>
> Andres
> In Theory, Practice and Theory are the same
> but in Practice, they ARE NOT!!
>
> _____________________________________________________________________________
> Scanned by IBM Email Security Management Services powered by MessageLabs. For
> more information please visit http://www.ers.ibm.com
> _____________________________________________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
_____________________________________________________________________________
Scanned by IBM Email Security Management Services powered by MessageLabs. For
more information please visit http://www.ers.ibm.com
_____________________________________________________________________________
_____________________________________________________________________________
Scanned by IBM Email Security Management Services powered by MessageLabs. For
more information please visit http://www.ers.ibm.com
_____________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email