You need to sign in to do that
Don't have an account?
Venkata Sravan Kumar Bandari
Hi, I am new to integration and here is my problem
In SFDC Account1 i was defined a class with a method as follows
global class Integration_Source {
webservice static void Integration_method() {
System.debug('Sccessfully invoked Remote method');
}
}
and generated wsdl and Partner wsdl, Now I am trying to invoke the method Integration_method() from SFDC Account2 as follows and i was also defined the remotesite settings there are No Errors in log file status is Success but the Method is not invoked. No String is displayed.
<------ Here i am not displaying the username and password of my SFDC Account1----->
Generated class from WSDL -----> Integration_Dest
Partner WSDL -----> Integration_PartnerSoap
Integration_PartnerSoap.LoginResult loginresult_var;
Integration_PartnerSoap.Soap obj_soap = new Integration_PartnerSoap.Soap();
loginresult_var = obj_soap.login('username','password-security token');
Integration_Dest.Integration_Source obj_source_method = new Integration_Dest.Integration_Source();
obj_source_method.SessionHeader = new Integration_Dest.SessionHeader_element();
obj_source_method.SessionHeader.sessionId = loginresult_var.sessionId;
obj_source_method.Integration_method();
global class Integration_Source {
webservice static void Integration_method() {
System.debug('Sccessfully invoked Remote method');
}
}
and generated wsdl and Partner wsdl, Now I am trying to invoke the method Integration_method() from SFDC Account2 as follows and i was also defined the remotesite settings there are No Errors in log file status is Success but the Method is not invoked. No String is displayed.
<------ Here i am not displaying the username and password of my SFDC Account1----->
Generated class from WSDL -----> Integration_Dest
Partner WSDL -----> Integration_PartnerSoap
Integration_PartnerSoap.LoginResult loginresult_var;
Integration_PartnerSoap.Soap obj_soap = new Integration_PartnerSoap.Soap();
loginresult_var = obj_soap.login('username','password-security token');
Integration_Dest.Integration_Source obj_source_method = new Integration_Dest.Integration_Source();
obj_source_method.SessionHeader = new Integration_Dest.SessionHeader_element();
obj_source_method.SessionHeader.sessionId = loginresult_var.sessionId;
obj_source_method.Integration_method();
You could do two things :
1. Go and create a Log for this user
loginresult_var = obj_soap.login('username','password-security token');
call the webservice and check logs in the org where you have the webservice
2. Change return type of your web service and return a string which you have written in debug statement
change this : obj_source_method.Integration_method();
to
you could check this log in the caller orgwhere you are calling the webservice.
All Answers
You could do two things :
1. Go and create a Log for this user
loginresult_var = obj_soap.login('username','password-security token');
call the webservice and check logs in the org where you have the webservice
2. Change return type of your web service and return a string which you have written in debug statement
change this : obj_source_method.Integration_method();
to
you could check this log in the caller orgwhere you are calling the webservice.
after the call I checked the log file in org1 and i got output
but y the output is didnt come in org2