公司需要,调用其他公司java下的Web服务,在.net下添加引用后出现错误,代理类都没生成:
Warning: This web reference does not conform to WS-I Basic Profile v1.1.Error: 无法从命名空间“http://impl.ivr.cooperation.unison.net”导入绑定“UserToneManageSoapBinding”。  - 无法导入操作“queryToneLib”。  - 缺少数据类型“http://schema.ivr.cooperation.unison.net:QueryToneLibEvt”。好像是.net找不到自定义类型queryToneLib
下面是WSDL片段
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:tns1="http://schema.ivr.cooperation.unison.net" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:impl="http://impl.ivr.cooperation.unison.net" xmlns:intf="http://impl.ivr.cooperation.unison.net" targetNamespace="http://impl.ivr.cooperation.unison.net" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://schema.ivr.cooperation.unison.net">
      <import namespace="http://impl.ivr.cooperation.unison.net" />
      <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
      <complexType name="QueryToneLibEvt">        <sequence>
          <element name="DID" nillable="true" type="soapenc:string" />
          <element name="DIDPwd" nillable="true" type="soapenc:string" />
          <element name="MSISDN" nillable="true" type="soapenc:string" />
          <element name="SEQ" nillable="true" type="soapenc:string" />
          <element name="queryType" nillable="true" type="soapenc:string" />
          <element name="toneType" nillable="true" type="soapenc:string" />
        </sequence>
      </complexType>。。
       <wsdl:service name="UserToneManageService">
      </wsdl:service>
</wsdl:definitions>
紧急求救,不胜感激啊。