You need to sign in to do that
Don't have an account?
vino1.395228003587918E12
Unable to find schema for element; {http://tempuri.org/}GetAllDataResponse
Hi here is my wsdl code. I got the followinf error "Unable to find schema for element; {http://tempuri.org/}GetAllDataResponse" while parsing the WSDL file.
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" name="Service1" targetNamespace="http://tempuri.org/">
<wsp:Policy wsu:Id="wsHttpEndpoint_policy">
<wsp:ExactlyOne>
<wsp:All>
<http:NegotiateAuthentication xmlns:http="http://schemas.microsoft.com/ws/06/2004/policy/http"/>
<sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
<wsp:Policy>
<sp:TransportToken>
<wsp:Policy>
<sp:HttpsToken RequireClientCertificate="false"/>
</wsp:Policy>
</sp:TransportToken>
<sp:AlgorithmSuite>
<wsp:Policy>
<sp:Basic256/>
</wsp:Policy>
</sp:AlgorithmSuite>
<sp:Layout>
<wsp:Policy>
<sp:Strict/>
</wsp:Policy>
</sp:Layout>
</wsp:Policy>
</sp:TransportBinding>
<wsaw:UsingAddressing/>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
<wsdl:types>
<xsd:schema targetNamespace="http://tempuri.org/Imports">
<!--
<xsd:import schemaLocation="https://salesforce.easyasnhs.com.au:8080/Service1.svc?xsd=xsd0" namespace="http://tempuri.org/"/>
<xsd:import schemaLocation="https://salesforce.easyasnhs.com.au:8080/Service1.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
-->
</xsd:schema>
</wsdl:types>
<wsdl:message name="IService1_GetAllData_InputMessage">
<wsdl:part name="parameters" element="tns:GetAllData"/>
</wsdl:message>
<wsdl:message name="IService1_GetAllData_OutputMessage">
<wsdl:part name="parameters" element="tns:GetAllDataResponse"/>
</wsdl:message>
<wsdl:portType name="IService1">
<wsdl:operation name="GetAllData">
<wsdl:input wsaw:Action="http://tempuri.org/IService1/GetAllData" message="tns:IService1_GetAllData_InputMessage"/>
<wsdl:output wsaw:Action="http://tempuri.org/IService1/GetAllDataResponse" message="tns:IService1_GetAllData_OutputMessage"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="wsHttpEndpoint" type="tns:IService1">
<wsp:PolicyReference URI="#wsHttpEndpoint_policy"/>
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="GetAllData">
<soap12:operation soapAction="http://tempuri.org/IService1/GetAllData" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="Service1">
<wsdl:port name="wsHttpEndpoint" binding="tns:wsHttpEndpoint">
<soap12:address location="https://salesforce.easyasnhs.com.au:8080/Service1.svc"/>
<wsa10:EndpointReference>
<wsa10:Address>
https://salesforce.easyasnhs.com.au:8080/Service1.svc
</wsa10:Address>
<Identity xmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity">
<Spn>host/SVR-SBS2011.nhs.local</Spn>
</Identity>
</wsa10:EndpointReference>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" name="Service1" targetNamespace="http://tempuri.org/">
<wsp:Policy wsu:Id="wsHttpEndpoint_policy">
<wsp:ExactlyOne>
<wsp:All>
<http:NegotiateAuthentication xmlns:http="http://schemas.microsoft.com/ws/06/2004/policy/http"/>
<sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
<wsp:Policy>
<sp:TransportToken>
<wsp:Policy>
<sp:HttpsToken RequireClientCertificate="false"/>
</wsp:Policy>
</sp:TransportToken>
<sp:AlgorithmSuite>
<wsp:Policy>
<sp:Basic256/>
</wsp:Policy>
</sp:AlgorithmSuite>
<sp:Layout>
<wsp:Policy>
<sp:Strict/>
</wsp:Policy>
</sp:Layout>
</wsp:Policy>
</sp:TransportBinding>
<wsaw:UsingAddressing/>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
<wsdl:types>
<xsd:schema targetNamespace="http://tempuri.org/Imports">
<!--
<xsd:import schemaLocation="https://salesforce.easyasnhs.com.au:8080/Service1.svc?xsd=xsd0" namespace="http://tempuri.org/"/>
<xsd:import schemaLocation="https://salesforce.easyasnhs.com.au:8080/Service1.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
-->
</xsd:schema>
</wsdl:types>
<wsdl:message name="IService1_GetAllData_InputMessage">
<wsdl:part name="parameters" element="tns:GetAllData"/>
</wsdl:message>
<wsdl:message name="IService1_GetAllData_OutputMessage">
<wsdl:part name="parameters" element="tns:GetAllDataResponse"/>
</wsdl:message>
<wsdl:portType name="IService1">
<wsdl:operation name="GetAllData">
<wsdl:input wsaw:Action="http://tempuri.org/IService1/GetAllData" message="tns:IService1_GetAllData_InputMessage"/>
<wsdl:output wsaw:Action="http://tempuri.org/IService1/GetAllDataResponse" message="tns:IService1_GetAllData_OutputMessage"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="wsHttpEndpoint" type="tns:IService1">
<wsp:PolicyReference URI="#wsHttpEndpoint_policy"/>
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="GetAllData">
<soap12:operation soapAction="http://tempuri.org/IService1/GetAllData" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="Service1">
<wsdl:port name="wsHttpEndpoint" binding="tns:wsHttpEndpoint">
<soap12:address location="https://salesforce.easyasnhs.com.au:8080/Service1.svc"/>
<wsa10:EndpointReference>
<wsa10:Address>
https://salesforce.easyasnhs.com.au:8080/Service1.svc
</wsa10:Address>
<Identity xmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity">
<Spn>host/SVR-SBS2011.nhs.local</Spn>
</Identity>
</wsa10:EndpointReference>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Apex does not support any other WSDL constructs, types, or services, including:
RPC/encoded services
WSDL files with mulitple portTypes, multiple services, or multiple bindings
WSDL files that import external schemas. For example, the following WSDL fragment imports an external schema, which is not supported:
Check this link.
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_callouts_wsdl2apex.htm