wsimport “Cannot resolve the name…”

后端 未结 2 1632
Happy的楠姐
Happy的楠姐 2020-12-30 04:49

I\'ve been trying to import the following web service: http://soap.genome.jp/KEGG.wsdl with ${JAVA_HOME}/bin/wsimport:

wsimport -version
JAX-WS RI 2.1.6 in J         


        
相关标签:
2条回答
  • 2020-12-30 05:12

    I found (what is apparently) a workaround from this bug report: https://netbeans.org/bugzilla/show_bug.cgi?id=116987

    Basically you need to add schemaLocaion to your import definition:

    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"
            schemaLocation="http://schemas.xmlsoap.org/soap/encoding/" />
    
    0 讨论(0)
  • 2020-12-30 05:14

    soapenc:Array indicates a non-standard style of web service encoding called "RPC Encoding". This is a very old style that used to be popular on Microsoft platforms; it's obsolete (i.e. it's not part of the WS-I spec) and not supported by modern tools like JAX-WS.

    The only java tool that I know of that supports RPC encoded web services is Apache Axis 1.

    0 讨论(0)
提交回复
热议问题