• Pranati
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies

Hi,

 

I have a simple WSDL file which I need to parse in SFDC. When I am trying to do a 'generate from wsdl' I am getting below error.

 

Error: Failed to parse wsdl: Found more than one wsdl:binding. WSDL with multiple binding not supported

 

WSDL:-

 

<?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://ws.apache.org/axis2" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" 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://ws.apache.org/axis2">
    <wsdl:documentation>
        Please Type your service description here
    </wsdl:documentation>
    <wsdl:types>
        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://ws.apache.org/axis2">
            <xs:element name="summation">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="a" type="xs:int"/>
                        <xs:element minOccurs="0" name="b" type="xs:int"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="summationResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="return" type="xs:int"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
    </wsdl:types>
    <wsdl:message name="summationRequest">
        <wsdl:part name="parameters" element="ns:summation"/>
    </wsdl:message>
    <wsdl:message name="summationResponse">
        <wsdl:part name="parameters" element="ns:summationResponse"/>
    </wsdl:message>
    <wsdl:portType name="FirePortType">
        <wsdl:operation name="summation">
            <wsdl:input message="ns:summationRequest" wsaw:Action="urn:summation"/>
            <wsdl:output message="ns:summationResponse" wsaw:Action="urn:summationResponse"/>
        </wsdl:operation>
    </wsdl:portType>
 
    <wsdl:binding name="FireSoap12Binding" type="ns:FirePortType">
        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
        <wsdl:operation name="summation">
            <soap12:operation soapAction="urn:summation" 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="FireHttpBinding" type="ns:FirePortType">
        <http:binding verb="POST"/>
        <wsdl:operation name="summation">
            <http:operation location="Fire/summation"/>
            <wsdl:input>
                <mime:content type="text/xml" part="summation"/>
            </wsdl:input>
            <wsdl:output>
                <mime:content type="text/xml" part="summation"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="Fire">
        <wsdl:port name="FireHttpSoap11Endpoint" binding="ns:FireSoap11Binding">
            <soap:address location="http://10.227.75.47:8080/Webservice_provider/services/Fire.FireHttpSoap11Endpoint/"/>
        </wsdl:port>
        <wsdl:port name="FireHttpSoap12Endpoint" binding="ns:FireSoap12Binding">
            <soap12:address location="http://10.227.75.47:8080/Webservice_provider/services/Fire.FireHttpSoap12Endpoint/"/>
        </wsdl:port>
        <wsdl:port name="FireHttpEndpoint" binding="ns:FireHttpBinding">
            <http:address location="http://10.227.75.47:8080/Webservice_provider/services/Fire.FireHttpEndpoint/"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

 

 

I tried to remove the second binding tag as found in the error but still the error persists. Any idea would be of

great help

 

 

Thanks

indranily81

 

hi

 

can u please tell me how to send email to multiple users by using visual force email template. if i send email to single user i am using setTargetObjectId(objContact.Id) and setWhatId(SR.Id). but i am not getting how to send to multiple users.

 

Please help me

  • September 17, 2009
  • Like
  • 0

My requirement is to send emails to multiple users. My apex works for contact and Lead object, but not for user object.sendEmail method executed successfully, but users are not reveing mails. Can anyone help why it is working for Contact/Lead but not for user