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
Yishay1Yishay1 

System.CalloutException: Web service callout failed: Failed to get next element

Hi,

 

I found only 2 messages regarding the above exception and none of them helped me.

Can anyone explain me when this happens?

 

I'm trying to connect to the attached WSDL with no success.

Any help will be appreciated.

Thanks,

Yishay

 

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://example.com" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ax24="http://text.lowagie.com/xsd" xmlns:ax21="http://io.java/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://example.com">
<wsdl:documentation>
Example
</wsdl:documentation>
<wsdl:types>
<xs:schema xmlns:ax28="http://example.com/xsd" xmlns:ax26="http://text.lowagie.com/xsd" xmlns:ax23="http://io.java/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://example.com">
<xs:import namespace="http://io.java/xsd"/>
<xs:import namespace="http://text.lowagie.com/xsd"/>
<xs:import namespace="http://example.com/xsd"/>
<xs:element name="convert">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="html" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="convertResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax28:MergeXfdfToFormResult"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://example.com/xsd">
<xs:complexType name="MergeXfdfToFormResult">
<xs:sequence>
<xs:element minOccurs="0" name="errorMessage" nillable="true" type="xs:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="pdf" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="resultCode" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</wsdl:types>
<wsdl:message name="convertRequest">
<wsdl:part name="parameters" element="ns:convert"/>
</wsdl:message>
<wsdl:message name="convertResponse">
<wsdl:part name="parameters" element="ns:convertResponse"/>
</wsdl:message>
<wsdl:portType name="ConvertionServiceServicePortType">
<wsdl:operation name="convert">
<wsdl:input message="ns:convertRequest" wsaw:Action="urn:convert"/>
<wsdl:output message="ns:convertResponse" wsaw:Action="urn:convertResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ConvertionServiceServiceSoap11Binding" type="ns:ConvertionServiceServicePortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="convert">
<soap:operation soapAction="urn:convert" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ConvertionServiceService">
<wsdl:port name="ConvertionServiceServiceHttpSoap11Endpoint" binding="ns:ConvertionServiceServiceSoap11Binding">
<soap:address location="http://localhost:8080/axis2/services/ConvertionServiceService.ConvertionServiceServiceHttpSoap11Endpoint/"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

 

Yishay1Yishay1

Problem solved.

We only needded to turn off the MTOM on server side.

Frédéric ProvotFrédéric Provot
Hello,
hoping you're still reachable 3 years after... can you post how you managed to turn off MTOM?
regards
Frederic
narasimharaju monapati 13narasimharaju monapati 13
Hi @Yishay1, Can you let me know how you turn off the MTOM?