You need to sign in to do that
Don't have an account?

Callbacks
hi experts,
Do anyone know how i can ultilize call back inside below code to return success from my web services: I am getting error Remote server did not return any
content: System.CallbackException
global class APiNorthstar {
WebService static boolean addAccount(string AccA, String name){
comNorthstarApi.NorthstarServiceHttpSoap11Endpoint stub = new
comNorthstarApi.NorthstarServiceHttpSoap11Endpoint();
String createAcc = stub.createAcc(name, AccA);
return true;
}
}
JAVASCRIPT
{!REQUIRESCRIPT("/soap/ajax/10.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/10.0/apex.js")}
{!REQUIRESCRIPT("/soap/ajax/10.0/functions")}
sforce.debug.trace = true;
try
{
var con = confirm("Are you sure you want to create Northstar account for this Client?")
if (con)
var name = "{!Account.Account_Alias__c}";
var AccA = "{!Account.Name}";
var action = sforce.apex.execute("APiNorthstar","addAccount", {AccA: AccA, name: name});
alert(action);
}
catch (ex)
{
alert ("Failed : " + ex);
}
Message Edited by Losintikfos on 08-04-2008 05:55 AM
Message Edited by Losintikfos on 08-04-2008 10:07 AM
"System.CalloutException: Web service callout failed: Unexpected element. Parser was expecting element 'http://com.northstar.api:createAccResponse' but found 'http://org.apache.axis2/xsd:createAccResponse'"
The Web Service you're calling is returning a response that doesn't match the WSDL.
Cheers
Simon
I have been able to trace the issue base on your advice!
How did u resolve this ... Can you please explain the solution.. thank you