首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >解析Aramex文件时出错

解析Aramex文件时出错
EN

Stack Overflow用户
提问于 2013-07-02 14:47:08
回答 1查看 533关注 0票数 0

当我试图解析Aramex shipping services WSDL (这是创建发货所需的)时,出现了一个名称空间错误,错误日志如下:

代码语言:javascript
复制
C:\Program Files\Java\jdk1.6.0_37\bin>wsimport.exe -keep -verbose D:\ATG\aramex\shipping-services-api-wsdl\shipping-services-api-wsdl.wsdl -d D:\ATG\aramex\java\
parsing WSDL...

[WARNING] src-resolve.4.2: Error resolving component 'ser:guid'. It was detected that 'ser:guid' is in namespace 'http://schemas.microsoft.com/2003/10/Serialization/', but components from this namespace are not referenceable from schema document 'file:/D:/ATG/aramex/shipping-services-api-wsdl/shipping-services-api-wsdl.wsdl#types?schema1'. If this is the incorrect namespace, perhaps the prefix of 'ser:guid'
needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:/D:/ATG/aramex/shipping-services-api-wsdl/shipping-services-api-wsdl.wsdl#types?schema1'.
  line 331 of file:/D:/ATG/aramex/shipping-services-api-wsdl/shipping-services-api-wsdl.wsdl#types?schema1

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 126 of file:/D:/ATG/aramex/shipping-services-api-wsdl/shipping-services-api-wsdl.wsdl

[ERROR] (Related to above error) This is the other declaration.
  line 57 of file:/D:/ATG/aramex/shipping-services-api-wsdl/shipping-services-api-wsdl.wsdl

我怎样才能摆脱这个错误?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-07-05 10:22:02

好了,我解决了它。我更改了一个声明,之后它就起作用了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17419116

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档