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

Web Service Callout Failed

All, I have a new service to call a vendor (in Hong Kong) with a simple request of 2 fields and a simple response of a boolean.  Upon submittal, I am receiving, "System.CalloutException: Web service callout failed: Unexpected element. Parser was expecting element 'urn:postfilewsdl:postFileResponse' but found ':parameters'".  


We generated the WSDL (Response Type below) via the GUI as always, but it sounds like we are receiving back something different than the WSDL expects.  Does that sound right?  Any suggestions?


public class postFileResponseType {

        public Boolean return_x;

        private String[] return_x_type_info = new String[]{'return','','boolean','1','1','false'};

        private String[] apex_schema_type_info = new String[]{'urn:postfilewsdl','true','false'};

        private String[] field_order_type_info = new String[]{'return_x'};