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

How to call Webservice class through Apex class generated from WSDL file?
Hello,
I need to call an Apex web service that will be invoked from an external system. To test this out, I am trying to call this webservice from apex class generated from WSDL file.
I have performed the following steps:
* Developed the global apex webservice class called ‘Billing Integration’. Its code snippet is as follows:
global class Billing_Integration{ WebService static String Import(String input,Integer Action) { String result; Integration__c i = new Integration__c(); if(Action == 1){ OpenCsvParser.StringBuilder sb = new OpenCsvParser.StringBuilder(); List<account> accounts = new List<account>(); sb.append(input); OpenCsvReader reader = new OpenCsvReader(new OpenCsvParser(),sb.asString(),'\n');
* Downloaded its WSDL file in xml format using the WSDL link on the class name.
* Generated the Apex Class called ‘soapSforceComSchemasClassBillingIn’ from its WSDL file.
Is this approach right?
Now I don’t know how to call webservice class ‘Billing Integration’ through newly generated apex class ‘soapSforceComSchemasClassBillingIn’.
Plz help.
its not required to generate wsdl to invoke a class from apex itself.. if you want to test your webserivce you can use system log console by givng ur test data..
Regards,
Kiran