+ 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?