0

次のサービス定義があります(不完全ですが、エラーが示されています。VisualStudioは、定義した行に「このスキーマの名前空間ではhttp://schemas.xmlsoap.org/wsdl/は使用できません」と表示します(ドイツ語から翻訳)。 OffertXML。

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="TestOffertverwaltung"
 targetNamespace="urn:TestOffertverwaltung"
 xmlns:tns="urn:TestOffertverwaltung"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:types="urn:Test/types"
 xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
 xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
 xmlns="http://schemas.xmlsoap.org/wsdl/">

    <wsdl:types>

        <xsd:schema targetNamespace="urn:Test/types">

            <xsd:element name="OffertXML" type="string"/>
            <xsd:element name="OffertPDF" xmime:expectedContentTypes='image/jpeg' type="xmime:base64Binary"/>
            <xsd:element name="OffertMeta" type="string"/>
            <xsd:element name="OffertId" type="string"/>

        </xsd:schema>

    </wsdl:types>

<!-- ... -->
</wsdl:definitions>
4

1 に答える 1

0

タイプを設定する必要があります

type="xsd:string"

現在使用されているのは、デフォルトの名前空間であるhttp://schemas.xmlsoap.org/wsdl/stringでタイプを文字列に設定しているため、これは使用できないタイプです。

于 2010-09-20T14:01:58.963 に答える