Fig*_*Out 7 java soap wsdl web-services xjc
我的任务是与 3rd 方网络服务集成。在他们的 WSDL 中,他们声明数组如下:
<?xml version="1.0"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ITransEazSvcservice" targetNamespace="http://tempuri.org/" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="urn:LandairSvcIntf">
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:LandairSvcIntf">
...
<complexType name="CustomItemArray">
<complexContent>
<restriction base="soapenc:Array">
<sequence/>
<attribute xmlns:n1="http://schemas.xmlsoap.org/wsdl/" ref="soapenc:arrayType" n1:arrayType="ns1:CustomItemRecord[]"/>
</restriction>
</complexContent>
</complexType>
...
Run Code Online (Sandbox Code Playgroud)
当我运行 xjc 以生成与 Web 服务集成的代码时,我收到以下错误消息:
[错误] 未定义的简单或复杂类型“soapenc:Array”
和
[错误] 未定义的属性 'soapenc:arrayType'
为了生成与他们的服务集成的正确代码,我需要做什么?我们使用Java。
| 归档时间: |
|
| 查看次数: |
664 次 |
| 最近记录: |