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
simran_singhsimran_singh 

SOAP web service is giving weird exception.

Hi,

 

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.

 

Thanks

DodiDodi

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