Bonjour,

J'ai un problème lors de l'importation de la référence web de mon web service dans Visual Studio.
En effet, deux méthodes de mon wsdl passent mais la troisième passe pas : getIdentite().

Visual Studio me sort :
Avertissement 1 Custom tool warning: Au moins une importation Operation est d'un type non pris en charge et a été ignorée. C:\Documents and Settings\xxxx\Mes documents\Visual Studio 2005\Projects\ClientWebService\TestClientWS\WindowsApplication2\Properties\Settings.settings 1 1 WindowsApplication2
Voici mon 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
 
<?xml version="1.0" encoding="UTF-8"?>
 
<definitions name="masocieteWebService"
    targetNamespace="http://masociete/webservicetest/fichier.wsdl"
    xmlns:tns="http://masociete/webservicetest/fichier.wsdl"
    xmlns:xsd1="http://www.masociete.com/schema"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
 
<wsdl:types>
      <xsd:schema 
      	 targetNamespace="http://masociete/webservicetest/fichier.wsdl"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
 
	<xsd:element name="identite">
		<xsd:complexType>
	  		<xsd:sequence>
	    		<xsd:element name="prenom" type="xsd:string"/>
	       		<xsd:element name="nom" type="xsd:string"/>
	  		</xsd:sequence>
		</xsd:complexType>
	 </xsd:element> 
</wsdl:types>
 
<wsdl:message name="getHelloRequest">
</wsdl:message>
<wsdl:message name="getHelloResponse">
    <wsdl:part name="retour" type="xsd:string"/>
</wsdl:message>
 
<wsdl:message name="getAdditionRequest">
    <wsdl:part name="nombre1" type="xsd:int"/>       
    <wsdl:part name="nombre2" type="xsd:int"/>
</wsdl:message>
<wsdl:message name="getAdditionResponse">
    <wsdl:part name="somme" type="xsd:int"/>
</wsdl:message>
 
<wsdl:message name="getIdentiteRequest">
</wsdl:message>
<wsdl:message name="getIdentiteResponse">
    <wsdl:part name="body" element="xsd1:identite"/>
</wsdl:message>
 
 
<portType name="masociete_PortType">
    <wsdl:operation name="getHello">
        <wsdl:input  message="tns:getHelloRequest"/>
        <wsdl:output message="tns:getHelloResponse"/>
    </wsdl:operation>
    <wsdl:operation name="getAddition">
        <wsdl:input  message="tns:getAdditionRequest"/>
        <wsdl:output message="tns:getAdditionResponse"/>
    </wsdl:operation>   
    <wsdl:operation name="getIdentite">
        <wsdl:input  message="tns:getIdentiteRequest"/>
        <wsdl:output message="tns:getIdentiteResponse"/>
    </wsdl:operation>          
</portType>
 
<binding name="masociete_Binding"  type="tns:masociete_PortType">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
      <wsdl:operation name="getHello">
          <soap:operation soapAction="getHello"/>
        <wsdl:input>
            <soap:body use="literal" namespace="http://www.masociete.com/ns" />
        </wsdl:input>
        <wsdl:output>
            <soap:body use="literal" namespace="http://www.masociete.com/ns"/>
        </wsdl:output>
    </wsdl:operation>
      <wsdl:operation name="getAddition">
          <soap:operation soapAction="getAddition"/>
        <wsdl:input>
            <soap:body use="literal" namespace="http://www.masociete.com/ns"/>
        </wsdl:input>
        <wsdl:output>
            <soap:body use="literal" namespace="http://www.masociete.com/ns"/>
        </wsdl:output>
    </wsdl:operation>   
      <wsdl:operation name="getIdentite">
          <soap:operation soapAction="getIdentite"/>
        <wsdl:input>
            <soap:body use="literal" namespace="http://www.masociete.com/ns"/>
        </wsdl:input>
        <wsdl:output>
            <soap:body use="literal" namespace="http://www.masociete.com/ns"/>
        </wsdl:output>
    </wsdl:operation>     
</binding>
 
<service name="WebServiceTest">
    <documentation>Web Services Test</documentation>
        <port name="masociete_Port" binding="tns:masociete_Binding">
      <soap:address location="http://masociete/webservicetest/index.php"/>
    </port>
</service>
 
</definitions>
Est-ce que quelqu'un sait pkoi, visual n'aime pas la fonction getIdentite() ?

Merci d'avance pour votre aide.

Eric.