You need to sign in to do that
Don't have an account?
Mahilde Zucaro
Soap web service : failed to get next element
Hello everybody,
I got the error : System.CalloutException: Web service callout failed: Failed to get next element
at the line WebServiceCallout.invoke in my class.
The web service works i saw the callout response in the log but it doesn't work.
I search and i tried all the solutions but that doesn't resolve my problem.
I use the wsdl generator (Salesforce and FuseIT) and that doesn't resolve anything...
I hope that somebody can help me,
Best regards
Mathilde
I got the error : System.CalloutException: Web service callout failed: Failed to get next element
at the line WebServiceCallout.invoke in my class.
The web service works i saw the callout response in the log but it doesn't work.
I search and i tried all the solutions but that doesn't resolve my problem.
I use the wsdl generator (Salesforce and FuseIT) and that doesn't resolve anything...
I hope that somebody can help me,
Best regards
Mathilde
Are you able to share the WSDL in question?
Are there more details avaible in the exception, such as the stack trace? These might indicate which element is missing.
Regards,
Daniel
this is the WSDL :
and this is Log :
Thanks for your help !
Regards,
Mathilde
Two potential problems here.
- There could be a confict between the return element and the Apex reserved keyword for return. The FuseIT SFDC Explorer should handle that by changing it to return_x in getOrderStatusResponse_element.
- The HWSNOYGET_ORDER_STATU02Result class has an errors member. It should be optional, but it's absence from the response might be causing the problem.
One option would be to use the FuseIT version to generate the raw HTTP code and response parsing. This can be done when you select the methods and will give you full control of the callout and response handling.Cheers,
Daniel
Is it important ?
I tested with the HTTP method and i have this new problem :
Do you have an idea ?
Thanks,
Mathilde
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ns="http://wrappers.webservice.appservices.core.inteqnet.com"
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
xmlns:ax286="http://beans.webservice.components.inteqnet.com/xsd"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:ax284="http://beans.webservice.appservices.core.inteqnet.com/xsd"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:ns1="http://org.apache.axis2/xsd"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
targetNamespace="http://wrappers.webservice.appservices.core.inteqnet.com">
<wsdl:documentation>Utility</wsdl:documentation>
<wsdl:types>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://beans.webservice.appservices.core.inteqnet.com/xsd">
<xs:complexType name="Credentials">
<xs:sequence>
<xs:element minOccurs="0" name="authorizationToken" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="sliceToken" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="userName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="userPassword" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ExtendedSettings">
<xs:sequence>
<xs:element minOccurs="0" name="responseFormat" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://beans.webservice.components.inteqnet.com/xsd">
<xs:complexType name="DefaultServiceResponse">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="errors" nillable="true"
type="xs:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="notes" nillable="true"
type="xs:string"/>
<xs:element minOccurs="0" name="resourceName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="responseBean" nillable="true" type="ax286:Bean"/>
<xs:element minOccurs="0" name="responseFormat" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="responseStatus" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="responseText" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="statusCode" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="statusMessage" nillable="true" type="xs:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="warnings" nillable="true"
type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Bean">
<xs:sequence/>
</xs:complexType>
</xs:schema>
<xs:schema xmlns:ax287="http://beans.webservice.components.inteqnet.com/xsd"
xmlns:ax285="http://beans.webservice.appservices.core.inteqnet.com/xsd"
attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="http://wrappers.webservice.appservices.core.inteqnet.com">
<xs:import namespace="http://beans.webservice.appservices.core.inteqnet.com/xsd"/>
<xs:import namespace="http://beans.webservice.components.inteqnet.com/xsd"/>
<xs:element name="ping">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="credentials" nillable="true" type="ax285:Credentials"/>
<xs:element minOccurs="0" name="extendedSettings" nillable="true"
type="ax285:ExtendedSettings"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="pingResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax287:DefaultServiceResponse"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="getSQLQueryResults">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="credentials" nillable="true" type="ax285:Credentials"/>
<xs:element minOccurs="0" name="extendedSettings" nillable="true"
type="ax285:ExtendedSettings"/>
<xs:element minOccurs="0" name="declareSection" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="sqlSelect" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="orderByClause" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="getSQLQueryResultsResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax287:DefaultServiceResponse"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="getSQLQueryResultsRequest">
<wsdl:part name="parameters" element="ns:getSQLQueryResults"/>
</wsdl:message>
<wsdl:message name="getSQLQueryResultsResponse">
<wsdl:part name="parameters" element="ns:getSQLQueryResultsResponse"/>
</wsdl:message>
<wsdl:message name="pingRequest">
<wsdl:part name="parameters" element="ns:ping"/>
</wsdl:message>
<wsdl:message name="pingResponse">
<wsdl:part name="parameters" element="ns:pingResponse"/>
</wsdl:message>
<wsdl:portType name="UtilityPortType">
<wsdl:operation name="getSQLQueryResults">
<wsdl:input message="ns:getSQLQueryResultsRequest" wsaw:Action="urn:getSQLQueryResults"/>
<wsdl:output message="ns:getSQLQueryResultsResponse"
wsaw:Action="urn:getSQLQueryResultsResponse"/>
</wsdl:operation>
<wsdl:operation name="ping">
<wsdl:input message="ns:pingRequest" wsaw:Action="urn:ping"/>
<wsdl:output message="ns:pingResponse" wsaw:Action="urn:pingResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="UtilitySoap11Binding" type="ns:UtilityPortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="getSQLQueryResults">
<soap:operation soapAction="urn:getSQLQueryResults" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="ping">
<soap:operation soapAction="urn:ping" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<!-- wsdl:binding name="UtilitySoap12Binding" type="ns:UtilityPortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="getSQLQueryResults">
<soap12:operation soapAction="urn:getSQLQueryResults" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="ping">
<soap12:operation soapAction="urn:ping" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="UtilityHttpBinding" type="ns:UtilityPortType">
<http:binding verb="POST"/>
<wsdl:operation name="getSQLQueryResults">
<http:operation location="getSQLQueryResults"/>
<wsdl:input>
<mime:content type="application/xml" part="parameters"/>
</wsdl:input>
<wsdl:output>
<mime:content type="application/xml" part="parameters"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="ping">
<http:operation location="ping"/>
<wsdl:input>
<mime:content type="application/xml" part="parameters"/>
</wsdl:input>
<wsdl:output>
<mime:content type="application/xml" part="parameters"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding -->
<wsdl:service name="Utility">
<wsdl:port name="UtilityHttpSoap11Endpoint" binding="ns:UtilitySoap11Binding">
<soap:address location="https://trial.serviceaide.com/NimsoftServiceDesk/servicedesk/webservices/Utility.UtilityHttpSoap11Endpoint/"/>
</wsdl:port>
<!--wsdl:port name="UtilityHttpSoap12Endpoint" binding="ns:UtilitySoap12Binding">
<soap12:address location="https://trial.serviceaide.com/NimsoftServiceDesk/servicedesk/webservices/Utility.UtilityHttpSoap12Endpoint/"/>
</wsdl:port>
<wsdl:port name="UtilityHttpEndpoint" binding="ns:UtilityHttpBinding">
<http:address location="https://trial.serviceaide.com/NimsoftServiceDesk/servicedesk/webservices/Utility.UtilityHttpEndpoint/"/>
</wsdl:port-->
</wsdl:service>
</wsdl:definitions>