2017-07-05 12 views
1

私はsoapには新しく、optained wsdlファイルでsoap接続を実装するように求められました。要素タイプ属性に関連付けられた属性wsdl:arrayTypeの接頭辞「wsdl」はバインドされていません

<?xml version="1.0" encoding="utf-8"?> 
<definitions 
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
    xmlns:tns="http://tempuri.org/" 
    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
    xmlns:ns2="urn:uSoapMwkInfo" 
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
    xmlns:ns3="urn:uSoapHistData" 
    xmlns:ns1="urn:uSoapType" name="INDAS_SOAP_SERVICEservice" 
    targetNamespace="http://tempuri.org/" 
    xmlns="http://schemas.xmlsoap.org/wsdl/"> 
    <types> 
    <schema xmlns="http://www.w3.org/2001/XMLSchema" 
      targetNamespace="urn:uSoapType"> 
     <complexType name="TActData"> 
     <sequence> 
      <element name="cIdFound" type="boolean" /> 
      <element name="ValS" type="ns1:TDoubleArr" /> 
     </sequence> 
     </complexType> 
     <complexType name="TDoubleArr"> 
     <complexContent mixed="false"> 
      <restriction base="soapenc:Array"> 
      <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:float[]" /> 
      </restriction> 
     </complexContent> 
     </complexType> 

私はまだ解決策を見つけることができませんでした:エラーは、WSDLのコードスニペットはこの1つであるライン14に発生した

The prefix "wsdl" for attribute wsdl:arrayType associated with an element type attribute is not bound

:このguideに従いながら、私は次のようなエラーに遭遇しましたしたがって、ここにいる誰かが私が問題を解決するのを助けることができるかどうかを知りたいですか?

更新:オリヴィエは、エラーがなくなって、私はエラーのトンを受けている、私に言ったものと

[ERROR]は、単純または複雑な型 'のsoapencを:配列' 未定義

ライン13、21、29、37、45、62、88

[ERROR]未定義の属性 'SOAPENC:のarrayType'

行15,23,31,39,47,64,90

ただし、宣言する必要がありますか?

 <xs:complexType name="THistDataArr"> 
     <xs:complexContent mixed="false"> 
      <xs:restriction base="soapenc:Array"> 
      <xs:sequence /> 
      <xs:attribute xmlns:n1="http://schemas.xmlsoap.org/wsdl/" n1:arrayType="ns3:THistData[]" ref="soapenc:arrayType" /> 
      </xs:restriction> 
     </xs:complexContent> 
     </xs:complexType> 

これ以上の.wsdl知識を持つ人は、何が間違っているか教えてくれるでしょうか?ありがとうございました。

答えて

0

wsdl名前空間が定義されていません。

しかし、http://schemas.xmlsoap.org/wsdl/は、ファイルのデフォルト名前空間です。特に参照する必要はありません。それでは削除してください:

<attribute ref="soapenc:arrayType" arrayType="xsd:float[]" />

関連する問題