AnsweredAssumed Answered

Failed to Parse WSDL : targetNameSpace can not be null

Question asked by sushant.panigrahi020786 on Jan 20, 2017

I have wsdl , when salesforce parsing to generate apex code it is showing this errro : TargetNamespace can not be bull.

 

I did nt get solution, Please help me. below is my wsdl: https://test.connect.boomi.com/ws/soap/GERsdW/HSEROKU/proces#OpportunityDetails?wsdl=single 

 

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.boomi.com/connector/wss"xmlns:xs="http://www.w3.org/2001/XMLSchema" name="WebServiceProvider" targetNamespace="http://www.boomi.com/connector/wss">
<wsdl:types>
<xs:schema elementFormDefault="qualified" version="1.0">
<xs:element name="Opportunity_Info" type="Opportunity_Info"/>
<xs:complexType name="Opportunity_Info">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="0" name="OPPORTUNITY_NUMBER" type="xs:string"/>
<xs:element maxOccurs="1" minOccurs="0" name="OPPORTUNITY_NAME" type="xs:string"/>
<xs:element maxOccurs="1" minOccurs="0" name="INSTALL_COUNTRY" type="xs:string"/>
<xs:element maxOccurs="1" minOccurs="0" name="INSTALL_STATE" type="xs:string"/>
<xs:element maxOccurs="1" minOccurs="0" name="SITE_VAVG" type="xs:string"/>
<xs:element maxOccurs="1" minOccurs="0" name="SITE_K_FACTOR" type="xs:string"/>
<xs:element maxOccurs="1" minOccurs="0" name="SITE_AIR_DENSITY" type="xs:string"/>
<xs:element maxOccurs="1" minOccurs="0" name="SITE_WIND_SHEAR" type="xs:string"/>
<xs:element maxOccurs="1" minOccurs="0" name="SITE_STUDY_HEIGHT" type="xs:string"/>
<xs:element maxOccurs="1" minOccurs="0" name="SITE_CTI" type="xs:string"/>
<xs:element maxOccurs="1" minOccurs="0" name="PLANNED_COD" type="xs:string"/>
<xs:element maxOccurs="1" minOccurs="0" name="PROJECT_SCOPE" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="element" type="element"/>
<xs:complexType name="element">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="0" name="Internal_ID" type="xs:string"/>
<xs:element maxOccurs="1" minOccurs="0" name="StatusMessage" type="xs:string"/>
<xs:element maxOccurs="1" minOccurs="0" name="ERROR" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
<xs:schema elementFormDefault="qualified" targetNamespace="http://www.boomi.com/connector/wss" version="1.0">
<xs:import namespace=""/>
<xs:element name="getOpportunity" type="tns:getOpportunity"/>
<xs:complexType name="getOpportunity">
<xs:sequence>
<xs:element minOccurs="0" ref="Opportunity_Info"/>
</xs:sequence>
</xs:complexType>
<xs:element name="getOpportunityResponse" type="tns:getOpportunityResponse"/>
<xs:complexType name="getOpportunityResponse">
<xs:sequence>
<xs:element minOccurs="0" ref="element"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</wsdl:types>
<wsdl:message name="getOpportunity">
<wsdl:part element="tns:getOpportunity" name="parameters"/>
</wsdl:message>
<wsdl:message name="getOpportunityResponse">
<wsdl:part element="tns:getOpportunityResponse" name="parameters"/>
</wsdl:message>
<wsdl:portType name="WebServiceProviderPortType">
<wsdl:operation name="getOpportunity">
<wsdl:input message="tns:getOpportunity"/>
<wsdl:output message="tns:getOpportunityResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="WebServiceProviderPortBinding" type="tns:WebServiceProviderPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getOpportunity">
<soap:operation soapAction="getOpportunity"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="WebServiceProvider">
<wsdl:port binding="tns:WebServiceProviderPortBinding" name="WebServiceProviderPort">
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

Outcomes