`
stoneuu
  • 浏览: 46589 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

wsimport 天气出错 undefined element declaration s:schema

 
阅读更多

http://blog.csdn.net/lgh1117/article/details/7771876

http://shuany.iteye.com/blog/976920

 

我用的是wsimport  -s . 文件名

 

解决方式:

1

http://www.webxml.com.cn/WebServices/WeatherWebService?wsdl  另存  WeatherWebService.wsdl于wsdl2java相同目录下;打开 WeatherWebService.wsdl,将出现 <s:element ref="s:schema" />的地方全部删除;然后E:\05_core_source\03_apache\02_cxf\apache-cxf-2.3.3\bin>wsdl2java WeatherWebService.wsdl 即可;

 

我用的是wsimport

2

如果不保留xml文件或移动xml文件,需要将WeatherWebService中的第22行和第35行中的本地xml文件路径替换掉,最好为web路径

 

分享到:
评论

相关推荐

    dubbo找不到dubbo.xsd报错

    - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document '...

    dubbo.xsd文件下载

    declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document 'http:// code.alibabatech.com/schema/dubbo/dubbo.xsd', because 1) could not find ...

    解决:dubbo找不到dubbo.xsd报错

    - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document '...

    解决dubbo找不到dubbo.xsd报错

    - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document '...

    dubbo.xsd文件资源

    - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document '...

    dubbo.xsd 约束文件 解决标签识别报红

    - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document '...

    JAVA 文法1

    4. **类体声明** (class body declarations): 类体中可以包含字段声明(field declaration)、方法声明(method declaration)、静态初始化器(static initializer)和构造器(constructor declaration)。...

    物流信息化管理系统海运部分运抵报告报文结构.docx

    - **element Declaration/BorderTransportMeans**:边境运输工具信息。 - **element Declaration/UnloadingLocation**:卸货地点。 - **element Declaration/Consignment**:托运信息。 - **element Declaration...

    PTA选择题答案

    针对“According to the declaration: char c1=92, c2=92; the value of expression __ is 0.”(根据声明:char c1=92, c2=92; 表达式 __ 的值为 0。)的知识点,C语言中的异或操作符 '^',当两个操作数相等时,结果...

    ANTLR写的ANSI C的语法

    - **External Declaration:** ```antlr external_declaration options{k=1;} :(declaration_specifiers? declarator '{')=&gt;function_definition | declaration ; ``` - `external_declaration`:可以是函数...

    施耐德电气 Twido可编程控制器产品认证——CE Manufacturer’s Declaration TWD.pdf

    施耐德电气 Twido可编程控制器产品认证——CE Manufacturer’s Declaration TWDpdf,施耐德电气 Twido可编程控制器产品认证——CE Manufacturer’s Declaration TWD

    spring配置文件解析失败报”cvc-elt.1: 找不到元素 &#39;&#39;beans&#39;&#39; 的声明”异常解决

    当解析器在XML文件头部找不到对应的Schema定义,或者Schema文件本身存在问题时,就会出现这个错误。下面我们将深入探讨这个问题及其解决方案: 1. **检查XML文件头**:确保你的Spring配置文件的开头正确引用了...

    实现语法分析器-编译原理

    1 : ID Declaration, symbol: a Children: 2 : ID Declaration, symbol: b Children: 3 : Var Declaration, Children: 0 1 2 4 : ID Declaration, symbol: a Children: 5 : Const Declaration, value:0, Children: 6...

    修复RzBorder.pas Number of elements differs from declaration

    RzBorder.pas Number of elements differs from declaration TRzLEDCharacters 在装完Raize控件之后编译老是出如下错误: [Pascal Error] RzBorder.pas(1429): E2072 Number of elements (125) differs from ...

    CompilerProject_SimplifiedPascal:用于 C 的简化 PASCAL 编译器。该编译器是在 2015 年在 UFSCar Sorocaba 参加的编译器课程期间开发的

    ' body '.' body ::= [declarationPart] compositeStatement declarationPart ::= VAR dclList [subList] | subList dclList ::= declaration {declaration} declaration ::= idList ':' type ';' idList ::= id {',...

    FPGA常见问题解答

    "FPGA常见问题解答" FPGA(Field-Programmable Gate Array)是一种可编程逻辑器件,广泛应用于数字电路设计和实现中。然而,在使用FPGA时,常常会遇到一些问题和困惑,本资源旨在解决这些问题,总结常见的FPGA问题...

    ESWA的Declaration of Interest statement(利益声明)word版

    "ESWA的Declaration of Interest statement(利益声明)word版"是一个重要的文件,它涉及到作者在发表论文时必须公开的任何可能影响其研究成果公正性的财务或个人关系。这份声明通常会伴随论文一同发布,以确保读者...

Global site tag (gtag.js) - Google Analytics