axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Day, Andy" <Andy....@FMR.COM>
Subject RE: Client Call Invocation
Date Wed, 19 Jun 2002 18:10:09 GMT
It looks like the latest version of the JAX-RPC (released June 11th) has
taken care of this issue.  It provides the following:
 
package javax.xml.rpc;

public interface Service {
    java.rmi.Remote getPort(QName portName, Class serviceEndpointInterface)
        throws ServiceException;
}

-Andy

-----Original Message-----
From: Day, Andy [mailto:Andy.Day@fmr.com]
Sent: Wednesday, June 19, 2002 12:35 PM
To: 'axis-dev@xml.apache.org'
Subject: RE: Client Call Invocation


Excellent.  Has any request been made to update JAX-RPC with the additional
getPort(uri, class) method?? 
 
Cheers,
Andy

-----Original Message-----
From: butek@us.ibm.com [mailto:butek@us.ibm.com]
Sent: Wednesday, June 19, 2002 12:17 PM
To: axis-dev@xml.apache.org
Subject: Re: Client Call Invocation


You can get a dynamic proxy from the Service object: The JAX-RPC way of
doing this is:

ISomObject stub = (ISomeObject) service.getPort(ISomeObject.class);

// We know "stub" is of type javax.xml.rpc.Stub, so we can do...
((Stub)stub)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, "someUri");

AXIS provides a shortcut technique to do this (NOT part of the JAX-RPC
spec):

ISomeObject stub = (ISomeObject) service.getPort("someUri",
ISomeObject.class);

Russell Butek
butek@us.ibm.com



Please respond to axis-dev@xml.apache.org 


To: "'axis-dev@xml.apache.org'" <axis-dev@xml.apache.org>
cc: 
Subject: Client Call Invocation



Greetings,

After perusing the Axis architectural and api documentation, I was
disappointed to find no automatic Interface Proxy generation available to
the client.  For instance if I was given the Interface ISomeObject as
follows:

public interface ISomeObject
{
public void someMethod(int someParam);
}

I would love to be able to do the following on the client-side:

...
ISomeObject someObject =
(ISomeObject)axisClient.getServiceObject("someUri");
someObject.someMethod(param);
...

GLUE provides this level of client access.  I had expected Axis to do so
also.  Did I miss something?  Is this already possible?  If not, are there
any plans to provide this??


Cheers,
Andy

Andy Day
andy.day@fmr.com




Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message