+ Start a Discussion
boBNunnyboBNunny 

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','http://www.w3.org/2001/XMLSchema','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'};

}