The moose likes Web Services Certification (SCDJWS/OCPJWSD) and the fly likes Question: invoke methods in javax.xml.rpc.Call interface Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Services Certification (SCDJWS/OCPJWSD)
Reply Bookmark "Question: invoke methods in javax.xml.rpc.Call interface" Watch "Question: invoke methods in javax.xml.rpc.Call interface" New topic
Author

Question: invoke methods in javax.xml.rpc.Call interface

Tong Chen
Ranch Hand

Joined: Apr 26, 2002
Posts: 1011
I have a question about the invoke methods in javax.xml.rpc.Call interface:
When we are using DII to invoke the remote an operation, we use
public java.lang.Object invoke(QName operationName,
java.lang.Object[] inputParams)
throws java.rmi.RemoteException
But if we use the followin overloaded method:
public java.lang.Object invoke(java.lang.Object[] inputParams)
throws java.rmi.RemoteException
how we could know which operation we will invoke? does the Call implementation class knows this by using the WSDL document?
Thanks anybody for clarifying this for me!!


Tong Chen (Seattle USA)<br />SCJP,SCWCD,SCDJWS,IBM XML,MCP.NET,MCAD.NET,MCSD.NET
Dushy Inguva
Ranch Hand

Joined: Jun 24, 2003
Posts: 264
Tong,
I think you can use the
method in the Call interface only if you previously associated the Call with a portName and operationName by calling the
method of the Service interface. Or, you can use the setter methods in the Call interface to "link" it.
I dont think Call would try to be smart by guessing which operation u meant if this was not pre-associated.(I think that would be risky)
Any thoughts on this guys?
Dushy


SJCP, SCBCD, SJCD, SCDJWS, SCEA (Part I)
Tong Chen
Ranch Hand

Joined: Apr 26, 2002
Posts: 1011
I think Dushy is absolutely right.
The javadoc for javax.xml.rpc.Service interface does not mention this very well.
Thanks Dushy very much!
pat hat
Greenhorn

Joined: Jan 20, 2005
Posts: 2
hello

i'm new to axis
want to use invoke(java.lang.Object[] inputParams)

have been using invoke(SoapEnvelope env)

anyway my question is: how do you build the inputParams array?
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
i don't know how to do that. BUT i have some choice to do that ::

- Use SOAP Client of Lomboz plug-in to generate web service's proxy from wsdl file.

- Use other tool to generate such as IBM WebSphere ... etc.


It's will help you and easy to understand about it .


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
 
 
subject: Question: invoke methods in javax.xml.rpc.Call interface
 
Threads others viewed
java.rmi.RemoteException
Issue looking up session bean in UDP
RMI implementation
Declare to throw RemoteException
WSDL2Java Question
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture