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

How to Return a Record using SOAP ?
Hi Everyone this is my code for returning a account record but its not parsing while Generating from WSDL from other ORG .Can anyone Pplease give me the the solution how to fetch the record .
global class TestSoapWeb
{ webService static Account RecordFetch(id aid) {
Account Ac = [select name, id, phone, Industry, Fax, Type from account where id=:aid];
return Ac;
}
}
After writing this Generated WSDL'S Enterprise and Custom .then I am Calling this WSDL from other ORG by Clicking "Generate From WSDL"
At that time .Getting error LIke :
" Error Apex Generation Failed :Unable to find complexType for {http://soap.sforce.com/schemas/class/TestSoapWeb}address"
.Even though tried in .Net But same problem getting ..Please give me the solution .
global class TestSoapWeb
{ webService static Account RecordFetch(id aid) {
Account Ac = [select name, id, phone, Industry, Fax, Type from account where id=:aid];
return Ac;
}
}
After writing this Generated WSDL'S Enterprise and Custom .then I am Calling this WSDL from other ORG by Clicking "Generate From WSDL"
At that time .Getting error LIke :
" Error Apex Generation Failed :Unable to find complexType for {http://soap.sforce.com/schemas/class/TestSoapWeb}address"
.Even though tried in .Net But same problem getting ..Please give me the solution .
I have tried to access this generated WSDL in DotNet also Its not working there.but when we return Single field ( return ac.name )its working properly. But in my senario I want return complete record with all the fields which we have query At that we are getting problem can u please give me some advise to me for this issue .
Also for getting all fields in SOQL query string, you need to use Hope this helps!