You need to sign in to do that
Don't have an account?
aksm
Apex to external web services failed
Hi,
I am new to Apex Development.
I have generated an Apex class from WSDL and created a controller.
I got the following exception when I tried to access the external web service through visualforce page,
System.CalloutException: Web service callout failed: WebService returned a Soap Fault: Schema validation failed for request. faultcode=soapenv:Server fault actor=
Here is my partial schema definition:
wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/http/" xmlns:tns="http://fedex.com/ws/ship/v3" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://fedex.com/ws/ship/v3" name="ShipServiceDefinitions" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://fedex.com/ws/ship/v3" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://fedex.com/ws/ship/v3" xmlns:xs="http://www.w3.org/2001/XMLSchema">
Thanks in advance.
sk.