aspose file tools*
The moose likes BEA/Weblogic and the fly likes The method X in the type ServiceNowSoap is not applicable for the arguments (String) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "The method X in the type ServiceNowSoap is not applicable for the arguments (String)" Watch "The method X in the type ServiceNowSoap is not applicable for the arguments (String)" New topic
Author

The method X in the type ServiceNowSoap is not applicable for the arguments (String)

Nirmit Mutalik
Greenhorn

Joined: May 15, 2013
Posts: 6
I am getting beow error when i call execute() method.

Readwebservice.jsp:83:22: The method execute(Execute) in the type ServiceNowSoap is not applicable for the arguments (String)
String ruslt=soap.execute(rfcno);
^----^
----------------------------------------------------------------

i am calling execute() method created by webservice in class created by webservice,where excepted output is in below formate

parameter xmloutput=<xmloutput><?xml version="1.0" encoding="UTF-8"?><ChangeInfo number="AHM0031085" sys_id="xxxxxxxxxxxx"><u_change_state>Waiting Type</u_change_state><requested_by>xxxx xxxx </requested_by><u_stage>Record</u_stage><end_date/><start_date/><u_mf_site/><u_task_approval_status/><approval>Not Yet Requested</approval><MainframeTasks><MainframeTask number="xxxxxxxx" sys_id="xxxxxxxxxxxxxxxxxxxxxxxxxxxx"><u_batch_type/><u_entities/><u_migration_type/><u_db2_type/><u_db2_binds_member_name/><state>Open</state><u_mf_required_date/><u_batch_member_name/><u_online_member_name/><u_hps>false</u_hps><u_mf_hps_db2_target/><u_db2_target_environment/><u_mf_task_type>Report</u_mf_task_type><u_batch_db2_target/></MainframeTask><MainframeTask number="xxxxxxxx" sys_id="xxxxxxxxxx"><u_batch_type/><u_entities/><u_migration_type/><u_db2_type/><u_db2_binds_member_name/><state>Open</state><u_mf_required_date/><u_batch_member_name/><u_online_member_name/><u_hps>false</u_hps><u_mf_hps_db2_target/><u_db2_target_environment/><u_mf_task_type>Report</u_mf_task_type><u_batch_db2_target/></MainframeTask></MainframeTasks></ChangeInfo>
parameter returnCode=1
parameter returnMessage=successfull


i am caaling method in jsp, below is the code
------------------------------------------------------------------------------------------
Readwebservice.jsp

try
{
(
proxy and port setup done before below steps
)

ServiceNow_Mainframe_Change_Single Mfread=new ServiceNow_Mainframe_Change_Single_Impl();
ServiceNowSoap soap = Mfread.getServiceNowSoap(
"xxxxxxxxxx", "xxxxxx");
out.println("in end1");

String rfcno="XXXXXXXX";
out.println(rfcno);(rfcno is input parmeter.)
String ruslt=soap.execute(rfcno);
out.println(ruslt);


out.println("in end");

}

catch(Exception e)
{
out.println("byeee");
out.println(e.getMessage());
System.out.println(e.getMessage());
e.printStackTrace();
throw (e);
}

---------------------------------------------------------

ServiceNowSoap code


public interface ServiceNowSoap extends java.rmi.Remote {


public com.service_now.mainframe_change_single.ExecuteResponse execute(com.service_now.mainframe_change_single.Execute mainframe_Change_Single) throws java.rmi.RemoteException;
public void executeAsync(weblogic.wsee.async.AsyncPreCallContext apc, com.service_now.mainframe_change_single.Execute mainframe_Change_Single) throws java.rmi.RemoteException ;

}
-----------------------------------------------------------

ServiceNowSoap_stub code



public com.service_now.mainframe_change_single.ExecuteResponse execute(com.service_now.mainframe_change_single.Execute mainframe_Change_Single) throws java.rmi.RemoteException {

java.util.ArrayList _args = new java.util.ArrayList();
_args.add(mainframe_Change_Single);

try {
java.lang.Object _result = _invoke("execute", _args.toArray());
return (com.service_now.mainframe_change_single.ExecuteResponse)_result;
} catch (javax.xml.rpc.JAXRPCException _wls_exception) {
throw new java.rmi.RemoteException(_wls_exception.getMessage(), _wls_exception.getLinkedCause());
} catch (javax.xml.rpc.soap.SOAPFaultException _wls_exception) {
throw new java.rmi.RemoteException(_soapFault2String(_wls_exception), _wls_exception);
} catch (java.lang.Throwable _wls_exception) {


throw new java.rmi.RemoteException(_wls_exception.getMessage(), _wls_exception);
}
} public void executeAsync(weblogic.wsee.async.AsyncPreCallContext apc, com.service_now.mainframe_change_single.Execute mainframe_Change_Single) throws java.rmi.RemoteException {
java.util.ArrayList _args = new java.util.ArrayList();

_setProperty(weblogic.wsee.async.AsyncConstants.ASYNC_INVOKE_PROPERTY, "true");
_setProperty(weblogic.wsee.async.AsyncConstants.ASYNC_PRE_CALL_CONTEXT_PROPERTY, apc);
_setProperty(weblogic.wsee.async.AsyncConstants.METHOD_NAME_PROPERTY, "execute");
_setProperty(weblogic.wsee.async.AsyncConstants.OPERATION_NAME_PROPERTY,
"execute");
_setProperty(weblogic.wsee.async.AsyncConstants.RETURN_TYPE_PROPERTY, "com.service_now.mainframe_change_single.ExecuteResponse");
_args.add(mainframe_Change_Single);

try {
java.lang.Object _result = _invoke("execute", _args.toArray());
} catch (javax.xml.rpc.JAXRPCException _wls_exception) {
throw new java.rmi.RemoteException(_wls_exception.getMessage(), _wls_exception.getLinkedCause());
} catch (javax.xml.rpc.soap.SOAPFaultException _wls_exception) {
throw new java.rmi.RemoteException(_soapFault2String(_wls_exception), _wls_exception);
} catch (java.lang.Throwable _wls_exception) {
throw new java.rmi.RemoteException(_wls_exception.getMessage(), _wls_exception);
}
finally {
_removeProperty(weblogic.wsee.async.AsyncConstants.ASYNC_INVOKE_PROPERTY);
_removeProperty(weblogic.wsee.async.AsyncConstants.ASYNC_PRE_CALL_CONTEXT_PROPERTY);
_removeProperty(weblogic.wsee.async.AsyncConstants.METHOD_NAME_PROPERTY);
_removeProperty(weblogic.wsee.async.AsyncConstants.RETURN_TYPE_PROPERTY);

}
}
-----------------------------------------------
can anyone help me in getting excepted output return above, i am new to webservice.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The method X in the type ServiceNowSoap is not applicable for the arguments (String)