This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am having a real big problem trying to figure out how to pass parameters to a web service.
The web service has a getCars request web method with 4 input parameters that are usr, pwd, domain & function.
I am using Axis2 1.5.4, and my code is below. When I call the method I get error returned, "org.apache.axis2.AxisFault: Tried to invoke method public java.lang.String com.informa.lmiu.services.web.seahawk.SoapRequest.getVessel(java.lang.String,java.lang.String,int) with arguments null,null,null. The arguments do not match the signature." : -
I have tried passing parameters as per below, after line 4 above, but that has no effect: -
Mathew, does this WebService offer you a WSDL? If it does you can then use Wsdl2java and then use the stubs generated for the connection and to set your parameters. Then you need not worry whether they are Attributes or Elements or what ever other syntax issue there may be.