function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sfdctrrsfdctrr 

Call Apex web service from Stub (Axis2-Java)

Hi Folks,

I have a requirement like i need to call APex WS from Stub which generated using Axis2 (WSDL2Java).

My apex  web service method take string as parameter which is:

global class SfdcService
{
    webService static String hello(String Name) 
    {
        return 'Hello '+Name+' ! :D';
    }
}

 Now when try to call method "hello" from stub it asking  for Parameters (Hello, sessionHeader7, callOptions8, debuggingHeader9, allowFieldTruncationHeader10). How to send all these parameters.

 

Or simply how to call apex method from stub (stub Genterated using Axis2).

 

Thaks in advance, any help greatly appreciated.

 

Thanks.

 

sfdctrrsfdctrr

Can any one answer to the baove question?