IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Services Web Discussion :

Valider un fichier WSDL avec Altova XmlSpy


Sujet :

Services Web

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Mai 2004
    Messages
    144
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2004
    Messages : 144
    Par défaut Valider un fichier WSDL avec Altova XmlSpy
    Salut a tout le monde,
    J'ai développé un WebServices en C# avec VS 2005.
    Mon problème c'est que lorsque j'ouvre le WSDL générer para le VS 2005 avec Altova XmlSpy et j'essaye de le valider j'ai l'erreur suivant:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    This file is not valid: While validating against complex type ‘wsdl:tBinding’, element ‘soap12:binding’ matched wildcard {any except from namespace ‘http://schema.xmlsoap.org/wsdl/) but no element declaration was found.
    le fichier WSDL:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
      <?xml version="1.0" encoding="utf-8" ?> 
      <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
       xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" 
       xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
       xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" 
       xmlns:tns="http://mondomaine.org/crm/" xmlns:s="http://www.w3.org/2001/XMLSchema" 
       xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" 
       xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" 
       targetNamespace="http://mondomaine.org/crm/" 
       xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
        <wsdl:types>
          <s:schema elementFormDefault="qualified" targetNamespace="http://mondomaine.org/crm/">
           <s:element name="GetData_target">
               <s:complexType>
                  <s:sequence>
                      <s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" /> 
                  </s:sequence>
               </s:complexType>
           </s:element>
           <s:element name="GetData_targetResponse">
               <s:complexType>
                  <s:sequence>
                      <s:element minOccurs="0" maxOccurs="1" name="GetData_targetResult">
                         <s:complexType>
                            <s:sequence>
                               <s:element ref="s:schema" /> 
                               <s:any /> 
                            </s:sequence>
                         </s:complexType>
                      </s:element>
                  </s:sequence>
               </s:complexType>
           </s:element>
           <s:element name="GetData_broker">
               <s:complexType>
                  <s:sequence>
      		  <s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" /> 
                  </s:sequence>
               </s:complexType>
           </s:element>
           <s:element name="GetData_brokerResponse">
          	   <s:complexType>
     	      <s:sequence>
                      <s:element minOccurs="0" maxOccurs="1" name="GetData_brokerResult">
                         <s:complexType>
                            <s:sequence>
                               <s:element ref="s:schema" /> 
                               <s:any /> 
                            </s:sequence>
                         </s:complexType>
                      </s:element>
                  </s:sequence>
               </s:complexType>
           </s:element>
          </s:schema>
        </wsdl:types>
        <wsdl:message name="GetData_targetSoapIn">
          <wsdl:part name="parameters" element="tns:GetData_target" /> 
        </wsdl:message>
        <wsdl:message name="GetData_targetSoapOut">
          <wsdl:part name="parameters" element="tns:GetData_targetResponse" /> 
        </wsdl:message>
        <wsdl:message name="GetData_brokerSoapIn">
          <wsdl:part name="parameters" element="tns:GetData_broker" /> 
        </wsdl:message>
        <wsdl:message name="GetData_brokerSoapOut">
          <wsdl:part name="parameters" element="tns:GetData_brokerResponse" /> 
        </wsdl:message>
        <wsdl:portType name="ServiceSoap">
          <wsdl:operation name="GetData_target">
             <wsdl:input message="tns:GetData_targetSoapIn" /> 
             <wsdl:output message="tns:GetData_targetSoapOut" /> 
          </wsdl:operation>
          <wsdl:operation name="GetData_broker">
             <wsdl:input message="tns:GetData_brokerSoapIn" /> 
             <wsdl:output message="tns:GetData_brokerSoapOut" /> 
          </wsdl:operation>
        </wsdl:portType>
        <wsdl:binding name="ServiceSoap" type="tns:ServiceSoap">
           <soap:binding transport="http://schemas.xmlsoap.org/soap/http" /> 
           <wsdl:operation name="GetData_target">
              <soap:operation soapAction="http://mondomaine.org/crm/GetData_target" style="document" /> 
              <wsdl:input>
                 <soap:body use="literal" /> 
              </wsdl:input>
              <wsdl:output>
                 <soap:body use="literal" /> 
              </wsdl:output>
           </wsdl:operation>
           <wsdl:operation name="GetData_broker">
              <soap:operation soapAction="http://mondomaine.org/crm/GetData_broker" style="document" /> 
              <wsdl:input>
                 <soap:body use="literal" /> 
              </wsdl:input>
              <wsdl:output>
                 <soap:body use="literal" /> 
              </wsdl:output>
           </wsdl:operation>
        </wsdl:binding>
        <wsdl:binding name="ServiceSoap12" type="tns:ServiceSoap">
           <soap12:binding ransport="http://schemas.xmlsoap.org/soap/http" /> 
           <wsdl:operation name="GetData_target">
              <soap12:operation soapAction="http://mondomaine.org/crm/GetData_target" style="document" /> 
              <wsdl:input>
                 <soap12:body use="literal" /> 
              </wsdl:input>
              <wsdl:output>
                 <soap12:body use="literal" /> 
              </wsdl:output>
           </wsdl:operation>
           <wsdl:operation name="GetData_broker">
              <soap12:operation soapAction="http://mondomaine.org/crm/GetData_broker" style="document" /> 
                 <wsdl:input>
                    <soap12:body use="literal" /> 
                 </wsdl:input>
                 <wsdl:output>
                    <soap12:body use="literal" /> 
                 </wsdl:output>
           </wsdl:operation>
        </wsdl:binding>
        <wsdl:service name="Service">
           <wsdl:port name="ServiceSoap" binding="tns:ServiceSoap">
              <soap:address location="http://mondomaine.org/crm/service.asmx" /> 
           </wsdl:port>
           <wsdl:port name="ServiceSoap12" binding="tns:ServiceSoap12">
              <soap12:address location="http://mondomaine.org/crm/service.asmx" /> 
           </wsdl:port>
        </wsdl:service>
      </wsdl:definitions>
    L'erreur est dans la ligne qu'est en rouge.
    Merci pour votre aide.

  2. #2
    Expert confirmé
    Avatar de anapurna
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Mai 2002
    Messages
    3 491
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Arts - Culture

    Informations forums :
    Inscription : Mai 2002
    Messages : 3 491
    Par défaut
    salut


    regarde ta ligne
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <soap12:binding transport="" ransport="http://schemas.xmlsoap.org/soap/http"/>
    corrige la en

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <soap12:binding type="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    et ca devrais passer

    @+ Phil

Discussions similaires

  1. création d'un fichier wsdl avec WSDL4J (pblm et quest)
    Par mina86 dans le forum Services Web
    Réponses: 0
    Dernier message: 30/07/2008, 00h56
  2. [DTD] valider un fichier XML avec une DTD
    Par Anubis dans le forum Format d'échange (XML, JSON...)
    Réponses: 1
    Dernier message: 18/02/2008, 18h00
  3. comment obtenir un fichier WSDL avec Eclipse
    Par thomas3 dans le forum Services Web
    Réponses: 6
    Dernier message: 20/12/2006, 09h01
  4. [Xml/Xsd]valider son fichier Xml avec un schéma xsd
    Par ePoX dans le forum Général JavaScript
    Réponses: 3
    Dernier message: 09/02/2006, 22h30
  5. Valider un fichier XML avec un Schema
    Par Groove dans le forum Valider
    Réponses: 4
    Dernier message: 09/11/2005, 08h15

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo