Bonjour

J'utilise axis 1.4 pour déployer mon webservice et pour générer mon client.
Mon wsdd est le suivant

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
 
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<globalConfiguration>
	<parameter name="adminPassword" value="admin"/>
	<parameter name="attachments.implementation" value="org.apache.axis.attachments.AttachmentsImpl"/>
	<parameter name="sendXsiTypes" value="true"/>
	<parameter name="sendMultiRefs" value="true"/>
	<parameter name="sendXMLDeclaration" value="true"/>
	<parameter name="axis.sendMinimizedElements" value="true"/>
</globalConfiguration>
 
<handler type="java:org.apache.axis.handlers.SimpleSessionHandler" name="SimpleSessionHandler"/> 
<handler name="URLMapper" type="java:org.apache.axis.handlers.http.URLMapper"/>
<handler type="java:com.sopra.loans.businessservices.business.web.WebServiceSessionHandler" name="WebServiceSessionHandler"/> 
 
<service name="GeneralConsultService" provider="java:RPC" style="wrapped" use="literal">
	<parameter name="allowedMethods" value="readTA"/>
	<parameter name="className" value="com.sopra.loans.businessservices.business.service.web.RemoteWebConsultService"/>
</service>
 
<transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"> 
	<requestFlow>
		<handler type="WebServiceSessionHandler"/>
		<handler type="URLMapper"/>
	</requestFlow> 
	<responseFlow>
		<handler type="WebServiceSessionHandler"/>
	</responseFlow> 
</transport>
 
 
<beanMapping qname="ns:TaOutputSimple" xmlns:ns="http://business.loans.service"
             languageSpecificType="java:com.sopra.loans.businessservices.business.service.smg000s.TaOutputSimple"/>
 
<beanMapping qname="ns:Erreur" xmlns:ns="http://business.loans.service"
             languageSpecificType="java:com.sopra.loans.businessservices.business.service.smg000s.Erreur"/>
 
</deployment>
Lorsque je passe mon service en style="wrapped" use="literal" je n'arrive plus à générer mon client (je n'ai pas aucun soucis si je n'indique pas de style, mais bien sûr j'ai absolument besoin de le faire..)
A priori le pb vient du fait que mon objet en sortie du service (TaOutputSimple) contient un tableau d'objet Erreur et quand dans le wsdl généré par axis (via son url d'appel) me sort un objet ArrayOf_tns2_Erreur non typé :

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
 
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://localhost:8080/loans200/services/GeneralConsultService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8080/loans200/services/GeneralConsultService" xmlns:intf="http://localhost:8080/loans200/services/GeneralConsultService" xmlns:tns1="http://web.service.business.businessservices.loans.sopra.com" xmlns:tns2="http://smg000s.service.business.businessservices.loans.sopra.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
 <wsdl:types>
  <schema elementFormDefault="qualified" targetNamespace="http://web.service.business.businessservices.loans.sopra.com" xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://localhost:8080/loans200/services/GeneralConsultService"/>
   <import namespace="http://smg000s.service.business.businessservices.loans.sopra.com"/>
   <element name="readTA">
    <complexType>
     <sequence>
      <element name="numeroSociete" type="xsd:string"/>
      <element name="numeroDossier" type="xsd:string"/>
      <element name="codeLangue" type="xsd:string"/>
      <element name="motDePasse" type="xsd:string"/>
      <element name="codeUtilisateur" type="xsd:string"/>
      <element maxOccurs="unbounded" name="parametres" type="impl:ArrayOf_xsd_string"/>
      <element maxOccurs="unbounded" name="criteres" type="impl:ArrayOf_xsd_string"/>
     </sequence>
    </complexType>
   </element>
   <element name="readTAResponse">
    <complexType>
     <sequence>
      <element name="readTAReturn" type="tns2:TaOutputSimple"/>
     </sequence>
    </complexType>
   </element>
  </schema>
  <schema elementFormDefault="qualified" targetNamespace="http://localhost:8080/loans200/services/GeneralConsultService" xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://smg000s.service.business.businessservices.loans.sopra.com"/>
   <complexType name="ArrayOf_xsd_string">
    <sequence>
     <element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="ArrayOf_tns2_Erreur">
    <sequence>
     <element maxOccurs="unbounded" minOccurs="0" name="item" type=""/>
    </sequence>
   </complexType>
  </schema>
  <schema elementFormDefault="qualified" targetNamespace="http://smg000s.service.business.businessservices.loans.sopra.com" xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://localhost:8080/loans200/services/GeneralConsultService"/>
   <complexType name="TaOutputSimple">
    <sequence>
     <element name="codeErreur" nillable="true" type="xsd:string"/>
     <element name="erreurs" nillable="true" type="impl:ArrayOf_tns2_Erreur"/>
     <element name="libelleErreur" nillable="true" type="xsd:string"/>
     <element name="nombreDecimales" type="xsd:int"/>
     <element name="rubriques" nillable="true" type="impl:ArrayOf_xsd_string"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>
 
   <wsdl:message name="readTAResponse">
 
      <wsdl:part element="tns1:readTAResponse" name="parameters"/>
 
   </wsdl:message>
 
   <wsdl:message name="readTARequest">
 
      <wsdl:part element="tns1:readTA" name="parameters"/>
 
   </wsdl:message>
 
   <wsdl:portType name="RemoteWebConsultService">
 
      <wsdl:operation name="readTA">
 
         <wsdl:input message="impl:readTARequest" name="readTARequest"/>
 
         <wsdl:output message="impl:readTAResponse" name="readTAResponse"/>
 
      </wsdl:operation>
 
   </wsdl:portType>
 
   <wsdl:binding name="GeneralConsultServiceSoapBinding" type="impl:RemoteWebConsultService">
 
      <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
 
      <wsdl:operation name="readTA">
 
         <wsdlsoap:operation soapAction=""/>
 
         <wsdl:input name="readTARequest">
 
            <wsdlsoap:body use="literal"/>
 
         </wsdl:input>
 
         <wsdl:output name="readTAResponse">
 
            <wsdlsoap:body use="literal"/>
 
         </wsdl:output>
 
      </wsdl:operation>
 
   </wsdl:binding>
 
   <wsdl:service name="RemoteWebConsultServiceService">
 
      <wsdl:port binding="impl:GeneralConsultServiceSoapBinding" name="GeneralConsultService">
 
         <wsdlsoap:address location="http://localhost:8080/loans200/services/GeneralConsultService"/>
 
      </wsdl:port>
 
   </wsdl:service>
 
</wsdl:definitions>

Quelqu'un a une idée?