errors found while importing the contract

Dec 31, 2010 at 8:51 AM

when i click on the generate button in wscf.blue to generate the web service code for the below wsdl, i get a error box saying

"errors found while importing the contract.Please check the "WSCF.blue pane" in the output window for more information"

Can anyone please help as to what this error means

I cannot find any WSCF.blue pane" in the output window.So i cannot find what is the reason of the error.

Below the is the wsdl code im using to generate

<!--WSDL generated by thinktecture WSCF; version 1.0.5.0-->
<!--Friday, 31-12-2010 - 11:03 AM-->
<definitions xmlns:tns="http://www.xmlns.walmartstores.com/Technical/Messaging/wsdl/2.0/SendEMailInterface.wsdl"
             xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
             xmlns:import0="http://www.xmlns.walmartstores.com/Technical/Messaging/xsd/2.0/EMailWrapperData.xsd"
             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
             name="SendEMailInterface"
             targetNamespace="http://www.xmlns.walmartstores.com/Technical/Messaging/wsdl/2.0/SendEMailInterface.wsdl"
             xmlns="http://schemas.xmlsoap.org/wsdl/"
             xmlns:subscriptionEnforcementDataNS="http://www.xmlns.walmartstores.com/Technical/Messaging/xsd/2.0/SubscriptionEnforcementData.xsd">
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
  <types>
    <xsd:schema>
      <xsd:import schemaLocation="EMailWrapperData.xsd" namespace="http://www.xmlns.walmartstores.com/Technical/Messaging/xsd/2.0/EMailWrapperData.xsd" />
      <xsd:import namespace="http://www.xmlns.walmartstores.com/Technical/Messaging/xsd/2.0/SubscriptionEnforcementData.xsd"
    schemaLocation="SubscriptionEnforcementData.xsd"/>
    </xsd:schema>
  </types>
  <message name="mailItIn">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
    <part name="parameters" element="import0:MailIt" />
  </message>
  <message name="mailItOut">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
    <part name="parameters" element="import0:MailItResponse" />
  </message>
  <message name="mailItHttpGetIn">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
    <part name="parameters" element="import0:MailItHttpGet" />
  </message>
  <message name="mailItHttpPostIn">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
    <part name="parameters" element="import0:MailItHttpPost" />
  </message>
  <message name="stringIn">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
    <part name="parameters" element="import0:string" />
  </message>
  <message name="StandardRequestMessage">
    <part element="subscriptionEnforcementDataNS:SubscriptionEnforcement" name="subscriptionEnforcement" />
  </message>
  <portType name="SendEMailInterfaceInterface">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
    <operation name="MailIt">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
      <input message="tns:mailItIn" />
      <output message="tns:mailItOut" />
    </operation>
    <operation name="MailItHttpGet">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
      <input message="tns:mailItHttpGetIn" />
    </operation>
    <operation name="MailItHttpPost">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
      <input message="tns:mailItHttpPostIn" />
    </operation>
    <operation name="string">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
      <input message="tns:stringIn" />
    </operation>
  </portType>
  <binding name="BasicHttpBinding_SendEMailInterfaceInterface" type="tns:SendEMailInterfaceInterface">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <operation name="MailIt">
      <soap:operation soapAction="http://www.xmlns.walmartstores.com/Technical/Messaging/wsdl/2.0/SendEMailInterface.wsdl:mailItIn" style="document" />
      <input>
        <soap:body use="literal" />
        <soap:header message="subscriptionEnforcementDataNS:StandardRequestMessage"
     part="subscriptionEnforcement" use="literal" />
      </input>
      <output>
        <soap:body use="literal" />
      </output>
    </operation>
    <operation name="MailItHttpGet">
      <soap:operation soapAction="http://www.xmlns.walmartstores.com/Technical/Messaging/wsdl/2.0/SendEMailInterface.wsdl:mailItHttpGetIn" style="document" />
      <input>
        <soap:body use="literal" />
        <soap:header message="subscriptionEnforcementDataNS:StandardRequestMessage"
     part="subscriptionEnforcement" use="literal" />
      </input>
    </operation>
    <operation name="MailItHttpPost">
      <soap:operation soapAction="http://www.xmlns.walmartstores.com/Technical/Messaging/wsdl/2.0/SendEMailInterface.wsdl:mailItHttpPostIn" style="document" />
      <input>
        <soap:body use="literal" />
        <soap:header message="subscriptionEnforcementDataNS:StandardRequestMessage"
     part="subscriptionEnforcement" use="literal" />
      </input>
    </operation>
    <operation name="string">
      <soap:operation soapAction="http://www.xmlns.walmartstores.com/Technical/Messaging/wsdl/2.0/SendEMailInterface.wsdl:stringIn" style="document" />
      <input>
        <soap:body use="literal" />
        <soap:header message="subscriptionEnforcementDataNS:StandardRequestMessage"
     part="subscriptionEnforcement" use="literal" />
      </input>
    </operation>
  </binding>
  <!--<service name="SendEMailInterfacePort">
    <port name="SendEMailInterfacePort" binding="tns:BasicHttpBinding_SendEMailInterfaceInterface">
      <soap:address location="http://localhost/SendEMailInterface" />
    </port>
  </service>-->
</definitions>

Developer
Jan 4, 2011 at 11:01 AM

There should be a WSCF.blue option in the drop down menu in the Output window.

I noticed the WSDL was generated in 1.0.5.0. If you are still using this earlier version can you please try upgrading to the latest version (1.0.10). This might fix the problem with the missing item in the Output window and give you more information about the error.

Cheers,

Alex.

Aug 14, 2014 at 6:59 AM
I am receiving the following error "Style Rpc on header session does not match expected style Document." when I am trying to generate service contract code using WSCF blue tool. The wsdl has a soap header included in it. Any idea, what this means?. Thanks