depress
V2EX  ›  Java

求助关于 WebLogic 部署 WebService 后生成客户端错误的令人头疼的问题

  •  
  •   depress · Jan 9, 2016 · 3021 views
    This topic created in 3798 days ago, the information mentioned may be changed or developed.
    Spring+WebService , MyEclipse 开发,在 Tomcat 里部署后一切 OK ,用 MyEclipse 的生成 WebService Client 功能生成客户端一点问题没有,但是在 WebLogic 里部署之后服务都正常可用,用 MyEclipse 生成客户端会出现如下的错误提示:



    如果我不管它直接点 finish ,就会跳出这个错误提示:



    点击忽略这个错误,完成后客户端工程里啥也没有。(上图中的 tradeBaseDTO 是一个入口参数继承的基础 dto)

    这个问题已经搞了好几天了,因为第一次用 WebLogic ,不知道到底是哪的问题,现在和外部系统联调,他们无法通过 wsdl 地址生成客户端,只能我本地生成后传给他们。所以求助看看谁能指点一下,真的是万分感激。
    7 replies    2016-01-11 18:53:33 +08:00
    funky
        1
    funky  
       Jan 11, 2016
    错误提示说你的 DTO 没有 namespace,这种方式不行的话你就用 CXF ?
    depress
        2
    depress  
    OP
       Jan 11, 2016
    @funky 就是 cxf...关键是 tomcat 一点问题都没
    funky
        3
    funky  
       Jan 11, 2016
    Myeclipse 生成 ws 的客户端是用的 jax-ws 的方式,你是不是搞错了?
    funky
        4
    funky  
       Jan 11, 2016
    depress
        5
    depress  
    OP
       Jan 11, 2016
    @funky 木有,用的就是这个...
    depress
        6
    depress  
    OP
       Jan 11, 2016
    @funky 等等...我知道你说的啥意思了...
    depress
        7
    depress  
    OP
       Jan 11, 2016
    @funky cxf 会在每个出入参都提示 undefined simple or complex type....
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1050 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:52 · PVG 06:52 · LAX 15:52 · JFK 18:52
    ♥ Do have faith in what you're doing.