Bonjour j'ai une application web sous tomcat
Cette application expose un web service via AXIS 1.4
Et je souhaite permettre au client de mon web service de m'envoyer un fichier de type mp3
Ma méthode est la suivante : je construis mon WSDL et je génère mes classes

J'ai déjà vu des exemples mais je n'arrive pas à les appliquer

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
 
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    name="MyService" targetNamespace="http://XXX"
    xmlns:xs4allSchema="urn:my.package"
    xmlns:ws="http://XXX">
 
    <wsdl:types>
        <xsd:schema targetNamespace="urn:my.package"
            xmlns:xs="http://www.w3.org/2001/XMLSchema">
 
            <xsd:element name="MyServiceRequest">
                <xsd:annotation>
                    <xsd:documentation>Blabla
                    </xsd:documentation>
                </xsd:annotation>
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="parameter1" type="xsd:int" />
                        <!-- ICI je voudrais mettre mon parametre à uplodader-->
 
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
 
 
            <!-- etc-->
        </xsd:schema>
    </wsdl:types>
    <!-- Messages -->
 
    <wsdl:message name="myMethodeRequest">
        <wsdl:part element="xs4allSchema:myMethodeRequest" name="myMethodeRequest" />
    </wsdl:message>
 
    <wsdl:message name="myMethodeResponse">
        <wsdl:part element="xs4allSchema:myMethodeRequest" name="myMethodeRequest" />
    </wsdl:message>
 
 
 
 
    <!-- Fin Messages -->
 
    <!-- Operations -->
    <wsdl:portType name="MyService">
        <wsdl:operation name="myMethode">
            <wsdl:input message="ws:myMethodeRequest" name="myMethodeRequest" />
            <wsdl:output message="ws:myMethodeResponse" name="myMethodePResponse" />
        </wsdl:operation>
 
 
 
 
 
 
 
 
 
 
    </wsdl:portType>
    <!-- Fin Operations -->
 
 
 
    <!-- Binding -->
 
    <wsdl:binding name="MyServiceSOAPBinding" type="ws:MyService">
        <soap:binding style="document"
            transport="http://schemas.xmlsoap.org/soap/http" />
 
        <!-- CreateVOIP -->
        <wsdl:operation name="myMethode">
            <soap:operation soapAction="" />
            <wsdl:input name="myMethodeRequest">
                <wsdlsoap:body use="literal" />
            </wsdl:input>
            <wsdl:output name="myMethodeResponse">
                <wsdlsoap:body use="literal" />
            </wsdl:output>
        </wsdl:operation>
        <!-- Fin CreateVOIP -->
 
 
 
 
 
    </wsdl:binding>
    <!-- Fin Binding -->
    <wsdl:service name="MyService">
        <wsdl:port binding="ws:MyServiceSOAPBinding" name="MyService">
            <soap:address location="http://localhost:8080/myappli/services/MyService" />
        </wsdl:port>
    </wsdl:service>
 
</wsdl:definitions>
merci