+ Start a Discussion

SOAP web service is giving weird exception.



I have generated an Apex class from a WSDL. I tried to call my webservice method in developer console but it gives me weird exception:


System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: Server was unable to process request. ---> Value cannot be null.Parameter name: username faultcode=soap:Server faultactor=


I have tested this same SOAP webservice in soapUI 4.5.1 (http://www.soapui.org/) and it worked perfectly fine there with exact set of input parameters as in salesforce.


Can anybody help.




How are you passing in security credentials? Looks like you have a missing user name. Can you post your xml for the request.