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 Java Discussion :

Problème WSDL2Java AXIS


Sujet :

Services Web Java

  1. #1
    Futur Membre du Club
    Profil pro
    Inscrit en
    Août 2006
    Messages
    5
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Août 2006
    Messages : 5
    Par défaut Problème WSDL2Java AXIS
    Bonjour le forum,

    voilà je me suis lancé dans les Web Services avec comme conteneur web apache tomcat 5.5, et j 'utilise axis 1.2. J ai déployer mon Web Service, et à partir du fichier WSDL généré par axis, j'ai tenté de créer les classes clients nécessaires(SOAPBINDING, STUB, etc...) en utilisant la fonction WSDL2Java d'axis.

    J ai donc tapé la commande DOS suivante, en me mettant préalablement dans le répertoire ou se trouve mon wsdl :

    java -cp %axis_libs% org.apache.axis.wsdl.WSDL2Java monfichier.wsdl

    où axis_libs est une variable d'environnement système, contenant le chemin d accès aux lib d'axis.

    Mais j'ai l'erreur suivante :

    java.io.IOException: Type {http://util.omegat.org} Language is referenced but not defined.
    Et voici le 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
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://localhost:8080/axis/services/OmegaT" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8080/axis/services/OmegaT" xmlns:intf="http://localhost:8080/axis/services/OmegaT" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://io.java" xmlns:tns2="http://matching.core.omegat.org" xmlns:tns3="http://core.omegat.org" xmlns:tns4="http://util.omegat.org" xmlns:tns5="http://main.gui.omegat.org" 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 targetNamespace="http://localhost:8080/axis/services/OmegaT" xmlns="http://www.w3.org/2001/XMLSchema">
       <import namespace="http://matching.core.omegat.org"/>
       <import namespace="http://xml.apache.org/xml-soap"/>
       <import namespace="http://core.omegat.org"/>
       <import namespace="http://main.gui.omegat.org"/>
       <import namespace="http://util.omegat.org"/>
       <import namespace="http://io.java"/>
       <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
       <complexType name="ArrayOf_xsd_anyType">
        <complexContent>
         <restriction base="soapenc:Array">
          <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:anyType[]"/>
         </restriction>
        </complexContent>
       </complexType>
       <complexType name="ArrayOf_tns5_DocumentSegment">
        <complexContent>
         <restriction base="soapenc:Array">
          <attribute ref="soapenc:arrayType" wsdl:arrayType="tns5:DocumentSegment[]"/>
         </restriction>
        </complexContent>
       </complexType>
       <complexType name="CommandExecution">
        <sequence>
         <element name="numberOfUniqueSegments" type="xsd:int"/>
         <element name="listOfSourceText" nillable="true" type="impl:ArrayOf_xsd_anyType"/>
         <element name="numberOfSegmentsTotal" type="xsd:int"/>
         <element name="numberofTranslatedSegments" type="xsd:int"/>
         <element maxOccurs="unbounded" name="STE" nillable="true" type="xsd:anyType"/>
         <element name="stringEntryList" nillable="true" type="impl:ArrayOf_xsd_anyType"/>
         <element name="projectProperties" nillable="true" type="tns3:ProjectProperties"/>
         <element name="m_config" nillable="true" type="tns3:ProjectProperties"/>
         <element name="m_strEntryHash" nillable="true" type="apachesoap:Map"/>
         <element name="m_strEntryList" nillable="true" type="impl:ArrayOf_xsd_anyType"/>
         <element name="m_srcTextEntryArray" nillable="true" type="impl:ArrayOf_xsd_anyType"/>
         <element name="m_tmList" nillable="true" type="impl:ArrayOf_xsd_anyType"/>
         <element name="m_legacyTMs" nillable="true" type="impl:ArrayOf_xsd_anyType"/>
         <element name="m_orphanedList" nillable="true" type="impl:ArrayOf_xsd_anyType"/>
         <element name="m_modifiedFlag" type="xsd:boolean"/>
         <element name="m_extensionList" nillable="true" type="impl:ArrayOf_xsd_anyType"/>
         <element name="m_extensionMapList" nillable="true" type="impl:ArrayOf_xsd_anyType"/>
         <element name="m_curEntryNum" type="xsd:int"/>
         <element name="m_xlFirstEntry" type="xsd:int"/>
         <element name="m_xlLastEntry" type="xsd:int"/>
         <element name="m_docSegList" nillable="true" type="impl:ArrayOf_tns5_DocumentSegment"/>
        </sequence>
       </complexType>
       <complexType name="APIOmegaT">
        <sequence>
         <element name="indiceSegment" type="xsd:int"/>
         <element name="fuzzyMatches" nillable="true" type="impl:ArrayOf_xsd_anyType"/>
         <element name="segment" nillable="true" type="xsd:string"/>
         <element name="commandExecution" nillable="true" type="impl:CommandExecution"/>
         <element name="translation" nillable="true" type="xsd:string"/>
        </sequence>
       </complexType>
      </schema>
      <schema targetNamespace="http://core.omegat.org" xmlns="http://www.w3.org/2001/XMLSchema">
       <import namespace="http://matching.core.omegat.org"/>
       <import namespace="http://xml.apache.org/xml-soap"/>
       <import namespace="http://localhost:8080/axis/services/OmegaT"/>
       <import namespace="http://main.gui.omegat.org"/>
       <import namespace="http://util.omegat.org"/>
       <import namespace="http://io.java"/>
       <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
       <complexType name="ProjectProperties">
        <sequence>
         <element name="projectRoot" nillable="true" type="xsd:string"/>
         <element name="sourceRoot" nillable="true" type="xsd:string"/>
         <element name="TMRoot" nillable="true" type="xsd:string"/>
         <element name="projectInternal" nillable="true" type="xsd:string"/>
         <element name="sentenceSegmentingEnabled" type="xsd:boolean"/>
         <element name="projectFile" nillable="true" type="xsd:string"/>
         <element name="targetLanguage" nillable="true" type="xsd:anyType"/>
         <element name="targetRoot" nillable="true" type="xsd:string"/>
         <element name="projectName" nillable="true" type="xsd:string"/>
         <element name="sourceLanguage" nillable="true" type="tns4:Language"/>
         <element name="glossaryRoot" nillable="true" type="xsd:string"/>
        </sequence>
       </complexType>
      </schema>
      <schema targetNamespace="http://xml.apache.org/xml-soap" xmlns="http://www.w3.org/2001/XMLSchema">
       <import namespace="http://matching.core.omegat.org"/>
       <import namespace="http://localhost:8080/axis/services/OmegaT"/>
       <import namespace="http://core.omegat.org"/>
       <import namespace="http://main.gui.omegat.org"/>
       <import namespace="http://util.omegat.org"/>
       <import namespace="http://io.java"/>
       <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
       <complexType name="mapItem">
        <sequence>
         <element name="key" nillable="true" type="xsd:anyType"/>
         <element name="value" nillable="true" type="xsd:anyType"/>
        </sequence>
       </complexType>
       <complexType name="Map">
        <sequence>
         <element maxOccurs="unbounded" minOccurs="0" name="item" type="apachesoap:mapItem"/>
        </sequence>
       </complexType>
       <complexType name="Vector">
        <sequence>
         <element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:anyType"/>
        </sequence>
       </complexType>
      </schema>
      <schema targetNamespace="http://main.gui.omegat.org" xmlns="http://www.w3.org/2001/XMLSchema">
       <import namespace="http://matching.core.omegat.org"/>
       <import namespace="http://xml.apache.org/xml-soap"/>
       <import namespace="http://localhost:8080/axis/services/OmegaT"/>
       <import namespace="http://core.omegat.org"/>
       <import namespace="http://util.omegat.org"/>
       <import namespace="http://io.java"/>
       <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
       <complexType name="DocumentSegment">
        <sequence>
         <element name="length" type="xsd:int"/>
        </sequence>
       </complexType>
      </schema>
     </wsdl:types>
     
       <wsdl:message name="createProjectRequest">
     
          <wsdl:part name="rootDirectory" type="xsd:string"/>
     
          <wsdl:part name="langSource" type="xsd:string"/>
     
          <wsdl:part name="targetLang" type="xsd:string"/>
     
       </wsdl:message>
     
       <wsdl:message name="nextSegmentResponse">
     
       </wsdl:message>
     
       <wsdl:message name="getTranslationResponse">
     
          <wsdl:part name="getTranslationReturn" type="xsd:string"/>
     
       </wsdl:message>
     
       <wsdl:message name="getTranslationRequest">
     
       </wsdl:message>
     
       <wsdl:message name="getSegmentRequest">
     
       </wsdl:message>
     
       <wsdl:message name="createFileTargetRequest">
     
       </wsdl:message>
     
       <wsdl:message name="updateTranslationRequest">
     
          <wsdl:part name="translation" type="xsd:string"/>
     
       </wsdl:message>
     
       <wsdl:message name="addFileToProjectRequest">
     
          <wsdl:part name="rootDirectory" type="xsd:string"/>
     
          <wsdl:part name="translationFile" type="xsd:anyType"/>
     
       </wsdl:message>
     
       <wsdl:message name="loadProjectRequest">
     
          <wsdl:part name="projectRoot" type="xsd:string"/>
     
       </wsdl:message>
     
       <wsdl:message name="getIndiceSegmentResponse">
     
          <wsdl:part name="getIndiceSegmentReturn" type="xsd:int"/>
     
       </wsdl:message>
     
       <wsdl:message name="loadProjectResponse">
     
          <wsdl:part name="loadProjectReturn" type="impl:APIOmegaT"/>
     
       </wsdl:message>
     
       <wsdl:message name="getFuzzyMatchesRequest">
     
       </wsdl:message>
     
       <wsdl:message name="addFileToProjectResponse">
     
          <wsdl:part name="addFileToProjectReturn" type="xsd:boolean"/>
     
       </wsdl:message>
     
       <wsdl:message name="updateTranslationResponse">
     
       </wsdl:message>
     
       <wsdl:message name="nextSegmentRequest">
     
       </wsdl:message>
     
       <wsdl:message name="getSegmentResponse">
     
          <wsdl:part name="getSegmentReturn" type="xsd:string"/>
     
       </wsdl:message>
     
       <wsdl:message name="getIndiceSegmentRequest">
     
       </wsdl:message>
     
       <wsdl:message name="closeProjectRequest">
     
       </wsdl:message>
     
       <wsdl:message name="getCommandExecutionResponse">
     
          <wsdl:part name="getCommandExecutionReturn" type="impl:CommandExecution"/>
     
       </wsdl:message>
     
       <wsdl:message name="numSegmentRequest">
     
       </wsdl:message>
     
       <wsdl:message name="closeProjectResponse">
     
       </wsdl:message>
     
       <wsdl:message name="getCommandExecutionRequest">
     
       </wsdl:message>
     
       <wsdl:message name="numSegmentResponse">
     
          <wsdl:part name="numSegmentReturn" type="xsd:int"/>
     
       </wsdl:message>
     
       <wsdl:message name="getFuzzyMatchesResponse">
     
          <wsdl:part name="getFuzzyMatchesReturn" type="impl:ArrayOf_xsd_anyType"/>
     
       </wsdl:message>
     
       <wsdl:message name="createProjectResponse">
     
          <wsdl:part name="createProjectReturn" type="xsd:boolean"/>
     
       </wsdl:message>
     
       <wsdl:message name="createFileTargetResponse">
     
       </wsdl:message>
     
       <wsdl:portType name="APIOmegaT">
     
          <wsdl:operation name="createProject" parameterOrder="rootDirectory langSource targetLang">
     
             <wsdl:input message="impl:createProjectRequest" name="createProjectRequest"/>
     
             <wsdl:output message="impl:createProjectResponse" name="createProjectResponse"/>
     
          </wsdl:operation>
     
          <wsdl:operation name="addFileToProject" parameterOrder="rootDirectory translationFile">
     
             <wsdl:input message="impl:addFileToProjectRequest" name="addFileToProjectRequest"/>
     
             <wsdl:output message="impl:addFileToProjectResponse" name="addFileToProjectResponse"/>
     
          </wsdl:operation>
     
          <wsdl:operation name="getSegment">
     
             <wsdl:input message="impl:getSegmentRequest" name="getSegmentRequest"/>
     
             <wsdl:output message="impl:getSegmentResponse" name="getSegmentResponse"/>
     
          </wsdl:operation>
     
          <wsdl:operation name="getCommandExecution">
     
             <wsdl:input message="impl:getCommandExecutionRequest" name="getCommandExecutionRequest"/>
     
             <wsdl:output message="impl:getCommandExecutionResponse" name="getCommandExecutionResponse"/>
     
          </wsdl:operation>
     
          <wsdl:operation name="getIndiceSegment">
     
             <wsdl:input message="impl:getIndiceSegmentRequest" name="getIndiceSegmentRequest"/>
     
             <wsdl:output message="impl:getIndiceSegmentResponse" name="getIndiceSegmentResponse"/>
     
          </wsdl:operation>
     
          <wsdl:operation name="createFileTarget">
     
             <wsdl:input message="impl:createFileTargetRequest" name="createFileTargetRequest"/>
     
             <wsdl:output message="impl:createFileTargetResponse" name="createFileTargetResponse"/>
     
          </wsdl:operation>
     
          <wsdl:operation name="nextSegment">
     
             <wsdl:input message="impl:nextSegmentRequest" name="nextSegmentRequest"/>
     
             <wsdl:output message="impl:nextSegmentResponse" name="nextSegmentResponse"/>
     
          </wsdl:operation>
     
          <wsdl:operation name="getTranslation">
     
             <wsdl:input message="impl:getTranslationRequest" name="getTranslationRequest"/>
     
             <wsdl:output message="impl:getTranslationResponse" name="getTranslationResponse"/>
     
          </wsdl:operation>
     
          <wsdl:operation name="getFuzzyMatches">
     
             <wsdl:input message="impl:getFuzzyMatchesRequest" name="getFuzzyMatchesRequest"/>
     
             <wsdl:output message="impl:getFuzzyMatchesResponse" name="getFuzzyMatchesResponse"/>
     
          </wsdl:operation>
     
          <wsdl:operation name="updateTranslation" parameterOrder="translation">
     
             <wsdl:input message="impl:updateTranslationRequest" name="updateTranslationRequest"/>
     
             <wsdl:output message="impl:updateTranslationResponse" name="updateTranslationResponse"/>
     
          </wsdl:operation>
     
          <wsdl:operation name="loadProject" parameterOrder="projectRoot">
     
             <wsdl:input message="impl:loadProjectRequest" name="loadProjectRequest"/>
     
             <wsdl:output message="impl:loadProjectResponse" name="loadProjectResponse"/>
     
          </wsdl:operation>
     
          <wsdl:operation name="closeProject">
     
             <wsdl:input message="impl:closeProjectRequest" name="closeProjectRequest"/>
     
             <wsdl:output message="impl:closeProjectResponse" name="closeProjectResponse"/>
     
          </wsdl:operation>
     
          <wsdl:operation name="numSegment">
     
             <wsdl:input message="impl:numSegmentRequest" name="numSegmentRequest"/>
     
             <wsdl:output message="impl:numSegmentResponse" name="numSegmentResponse"/>
     
          </wsdl:operation>
     
       </wsdl:portType>
     
       <wsdl:binding name="OmegaTSoapBinding" type="impl:APIOmegaT">
     
          <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
     
          <wsdl:operation name="createProject">
     
             <wsdlsoap:operation soapAction=""/>
     
             <wsdl:input name="createProjectRequest">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://api" use="encoded"/>
     
             </wsdl:input>
     
             <wsdl:output name="createProjectResponse">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/OmegaT" use="encoded"/>
     
             </wsdl:output>
     
          </wsdl:operation>
     
          <wsdl:operation name="addFileToProject">
     
             <wsdlsoap:operation soapAction=""/>
     
             <wsdl:input name="addFileToProjectRequest">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://api" use="encoded"/>
     
             </wsdl:input>
     
             <wsdl:output name="addFileToProjectResponse">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/OmegaT" use="encoded"/>
     
             </wsdl:output>
     
          </wsdl:operation>
     
          <wsdl:operation name="getSegment">
     
             <wsdlsoap:operation soapAction=""/>
     
             <wsdl:input name="getSegmentRequest">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://api" use="encoded"/>
     
             </wsdl:input>
     
             <wsdl:output name="getSegmentResponse">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/OmegaT" use="encoded"/>
     
             </wsdl:output>
     
          </wsdl:operation>
     
          <wsdl:operation name="getCommandExecution">
     
             <wsdlsoap:operation soapAction=""/>
     
             <wsdl:input name="getCommandExecutionRequest">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://api" use="encoded"/>
     
             </wsdl:input>
     
             <wsdl:output name="getCommandExecutionResponse">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/OmegaT" use="encoded"/>
     
             </wsdl:output>
     
          </wsdl:operation>
     
          <wsdl:operation name="getIndiceSegment">
     
             <wsdlsoap:operation soapAction=""/>
     
             <wsdl:input name="getIndiceSegmentRequest">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://api" use="encoded"/>
     
             </wsdl:input>
     
             <wsdl:output name="getIndiceSegmentResponse">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/OmegaT" use="encoded"/>
     
             </wsdl:output>
     
          </wsdl:operation>
     
          <wsdl:operation name="createFileTarget">
     
             <wsdlsoap:operation soapAction=""/>
     
             <wsdl:input name="createFileTargetRequest">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://api" use="encoded"/>
     
             </wsdl:input>
     
             <wsdl:output name="createFileTargetResponse">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/OmegaT" use="encoded"/>
     
             </wsdl:output>
     
          </wsdl:operation>
     
          <wsdl:operation name="nextSegment">
     
             <wsdlsoap:operation soapAction=""/>
     
             <wsdl:input name="nextSegmentRequest">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://api" use="encoded"/>
     
             </wsdl:input>
     
             <wsdl:output name="nextSegmentResponse">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/OmegaT" use="encoded"/>
     
             </wsdl:output>
     
          </wsdl:operation>
     
          <wsdl:operation name="getTranslation">
     
             <wsdlsoap:operation soapAction=""/>
     
             <wsdl:input name="getTranslationRequest">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://api" use="encoded"/>
     
             </wsdl:input>
     
             <wsdl:output name="getTranslationResponse">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/OmegaT" use="encoded"/>
     
             </wsdl:output>
     
          </wsdl:operation>
     
          <wsdl:operation name="getFuzzyMatches">
     
             <wsdlsoap:operation soapAction=""/>
     
             <wsdl:input name="getFuzzyMatchesRequest">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://api" use="encoded"/>
     
             </wsdl:input>
     
             <wsdl:output name="getFuzzyMatchesResponse">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/OmegaT" use="encoded"/>
     
             </wsdl:output>
     
          </wsdl:operation>
     
          <wsdl:operation name="updateTranslation">
     
             <wsdlsoap:operation soapAction=""/>
     
             <wsdl:input name="updateTranslationRequest">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://api" use="encoded"/>
     
             </wsdl:input>
     
             <wsdl:output name="updateTranslationResponse">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/OmegaT" use="encoded"/>
     
             </wsdl:output>
     
          </wsdl:operation>
     
          <wsdl:operation name="loadProject">
     
             <wsdlsoap:operation soapAction=""/>
     
             <wsdl:input name="loadProjectRequest">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://api" use="encoded"/>
     
             </wsdl:input>
     
             <wsdl:output name="loadProjectResponse">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/OmegaT" use="encoded"/>
     
             </wsdl:output>
     
          </wsdl:operation>
     
          <wsdl:operation name="closeProject">
     
             <wsdlsoap:operation soapAction=""/>
     
             <wsdl:input name="closeProjectRequest">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://api" use="encoded"/>
     
             </wsdl:input>
     
             <wsdl:output name="closeProjectResponse">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/OmegaT" use="encoded"/>
     
             </wsdl:output>
     
          </wsdl:operation>
     
          <wsdl:operation name="numSegment">
     
             <wsdlsoap:operation soapAction=""/>
     
             <wsdl:input name="numSegmentRequest">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://api" use="encoded"/>
     
             </wsdl:input>
     
             <wsdl:output name="numSegmentResponse">
     
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/OmegaT" use="encoded"/>
     
             </wsdl:output>
     
          </wsdl:operation>
     
       </wsdl:binding>
     
       <wsdl:service name="APIOmegaTService">
     
          <wsdl:port binding="impl:OmegaTSoapBinding" name="OmegaT">
     
             <wsdlsoap:address location="http://localhost:8080/axis/services/OmegaT"/>
     
          </wsdl:port>
     
       </wsdl:service>
     
    </wsdl:definitions>
    Je ne comprends pas très bien mon erreur, ca vient des tns. Mais tout ca a été fait automatiquement par AXIS. Alors est-ce que quelqu'un peut m'aider parce que je bloque.

    Mercie d avance.

  2. #2
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2002
    Messages
    91
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2002
    Messages : 91
    Par défaut
    Salut,

    je te donne une ligne de commande qui chez moi fonctionne tres bien et me genere toutes mes classes pour mon client :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    e:\j2sdk1.4.2_06\bin\java -cp F:\SRC\WEB-INF\lib\commons-discovery.jar;
    F:\SRC\WEB-INF\lib\commons-logging.jar;F:\SRC\WEB-INF\lib\axis.jar;
    F:\SRC\lib\saaj.jar; F:\SRC\WEB-INF\lib\wsdl4j.jar;
    F:\SRC\WEB-INF\lib\jaxrpc.jar 
    org.apache.axis.wsdl.WSDL2Java http://localhost:8080/MonApplication/services/MonService?wsdl
    (sur une seule ligne bien sur !)


    voila , en esperant que ca t'aidera
    ++

  3. #3
    Futur Membre du Club
    Profil pro
    Inscrit en
    Août 2006
    Messages
    5
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Août 2006
    Messages : 5
    Par défaut
    Lu Ifournial,

    merci pour ton aide mais hélas le problème n'est toujours aps résolu, j'ai essayé comme tu me l as dis, mais il me donne toujours la même erreur. C est apparement un des mes types complexes qu il n aime pas, ou je sais pas trop quoi.

    Je suis perdu, HELP.

    ++

  4. #4
    Membre chevronné
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    365
    Détails du profil
    Informations personnelles :
    Localisation : Maroc

    Informations forums :
    Inscription : Janvier 2006
    Messages : 365
    Par défaut
    Salut !
    En fait, l'erreur vient du fait que le type {http://util.omegat.org} Language est bel et bien référencé sur la ligne <element name="sourceLanguage" nillable="true" type="tns4:Language"/> (n'oublie pas que l'alias tns4 représente l'espace de nom "http://util.omegat.org" tel que déclaré par la ligne xmlns:tns4="http://util.omegat.org" au début du WSDL). Mais il se trouve que ce type {http://util.omegat.org} Language n'est défini nulle part. En gros, dans la section <types> du WSDL, il devrait y en avoir également une sous-section <schema> avec "targetNamespace=http://util.omegat.org" dans laquelle serait défini le type "Language". Ce qui n'est pas le cas, donc type inconnu.
    Désolé si je ne suis pas très clair, surtout que tu commences à peine avec les Web Services. Mais en principe Axis devrait le faire lors de la génération du WSDL. Tu devrais peut-être régénérer le WSDL afin que tous les types soient bien définis.
    Voilà, j'espère que ça aide.

  5. #5
    Futur Membre du Club
    Profil pro
    Inscrit en
    Août 2006
    Messages
    5
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Août 2006
    Messages : 5
    Par défaut
    Lu manblaizo,

    tout d'abord merci pour cette explication, que j ai comprise malgré que je débute dans les Web Services . Alors j'ai suivi tes conseils , mais hélas rien n'a changé. J ai regénérer le WSDL, mais je me suis dit que l'erreur vient peut-être de là. Pour générer celui-ci je déploie mon Web Service à l'aide de la ligne de commande :

    java -cp %axis_libs% org.apache.axis.client.AdminClient monfichier.wsdd

    où monfichier.wsdd vaut :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
     <service name="OmegaT" provider="java:RPC"> 
       <parameter name="className" value="api.APIOmegaT"/>
       <parameter name="allowedMethods" value="*"/>
       <parameter name="scope" value="session"/>
     </service>
    </deployment>
    Une fois cette opération effectuée, je vais sur http://localhost:8080/axis, et je clique sur List, où là apparaît mon Web Service que je viens de déployer, et enfin je clique sur WSDL, pour voir apparaître celui-ci. Ensuite je fais afficher source, et sauvegarde le fichier WSDL.

    Est ce qu'il y a qq chose de faux dans ce raisonnement ???

    Sinon je m'étais dit que je pouvais rajouter les lignes manquantes, comme tu me l as expliqué, tout seul. Mais j'imagine que j'aurai de toute façon une erreur par après, quand mon client invoquera le Web Service, car sur le serveur, ce type complexe (Language) ne saura toujours pas défini. Est-ce correct ?

    Sinon comment faire pour résoudre le problème, utiliser autre chose que axis ???

    Merci d'avance.

    jeblefou

  6. #6
    Membre chevronné
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    365
    Détails du profil
    Informations personnelles :
    Localisation : Maroc

    Informations forums :
    Inscription : Janvier 2006
    Messages : 365
    Par défaut
    Bonjour !
    Le problème vient de la génération du WSDL par Axis, il devrait s'occuper tout seul de la définition des types. N'utilisant pas Axis moi-même, je te proposerais d'essayer de générer le WSDL avec un autre outil pour voir si l'erreur persiste. Essaie par exemple wscompile qui vient avec Java Web Services Developer Pack (JWSDP) que tu peux télécharger sur le site de Sun. Sinon, tu pourrais aussi nous donner l'interface de définition de ton web service pour voir ce qu'on peut faire ensemble.
    Désolé pour le retard.

  7. #7
    Nouveau candidat au Club
    Profil pro
    Inscrit en
    Août 2006
    Messages
    3
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Août 2006
    Messages : 3
    Par défaut
    Bonjour,

    As tu essayé de définir tes types complexes (ceux qui participent à l'interface) dans ton fichier wsdd ?

    <beanMapping qname="ns:local" xmlns:ns="someNamespace"
    languageSpecificType="java:my.java.thingy"/>

    Doc Axis

  8. #8
    Futur Membre du Club
    Profil pro
    Inscrit en
    Août 2006
    Messages
    5
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Août 2006
    Messages : 5
    Par défaut
    Re salut all,

    alors manblaizo, j ai téléchargé WSDP mais par contre j'en touche pas une et je sais pas comment utiliser ce wscompile donc si tu pouvais un peu m'aiguiller ce sera très gentil, et pour le retard j'hésite à te pardonner . En tout cas merci pour tout.

    Sinon fabien51, c'est vrai que je pourrais faire ça mais alors pourquoi ca plante pas pour les autres types complexes ? Mais en tout cas je vais tenter ca et je te dirai quoi, Un grand merci également.

    ++

Discussions similaires

  1. Problème avec Axis 2
    Par splinternabs dans le forum Services Web
    Réponses: 1
    Dernier message: 04/02/2012, 20h52
  2. Problème avec Axis 1.4
    Par SyLvErStOrM dans le forum Services Web
    Réponses: 10
    Dernier message: 15/09/2008, 14h24
  3. Erreur lors de génération avec WSDL2Java ( AXIS )
    Par jf_j2ee dans le forum Services Web
    Réponses: 1
    Dernier message: 28/05/2008, 18h30
  4. probleme avec WSDL2Java AXIS
    Par zette dans le forum Services Web
    Réponses: 2
    Dernier message: 07/02/2007, 23h15
  5. problème exemple axis
    Par mlequim dans le forum Services Web
    Réponses: 2
    Dernier message: 18/04/2006, 13h55

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