Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Tong Chen
Ranch Hand
Posts: 1011
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
Dushy Inguva
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tong Chen
Ranch Hand
Posts: 1011
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic