简体   繁体   English

Eclipse Java - Jaxb2 插件和 WSDL

[英]Eclipse Java - Jaxb2 plugin and WSDL

Hi I have to generate a WSDL.嗨,我必须生成一个 WSDL。 I have this xsd schema我有这个 xsd 架构

 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.ima.eu/xml/cattolica" targetNamespace="http://www.ima.eu/xml/cattolica" elementFormDefault="qualified"> <xs:element name="CreateRequestInput"> <xs:complexType> <xs:sequence> <xs:element name="customer" type="xs:string" minOccurs="1"/> <xs:element name="user" type="xs:string" minOccurs="1"/> <xs:element name="company" type="xs:string" minOccurs="1"/> <xs:element name="insuranceNumber" type="xs:string"/> <xs:element name="number" type="xs:string"/> <xs:element name="creationDate" type="xs:string" minOccurs="1"/> <xs:element name="answer" type="xs:string"/> <xs:element name="answerType" type="xs:string"/> <xs:element name="description" type="xs:string" minOccurs="1"/> <xs:element name="idquintuple" type="xs:string" minOccurs="1"/> <xs:element name="status" type="xs:string"/> <xs:element name="priority" type="xs:string"/> <xs:element name="idOTRS" type="xs:string" minOccurs="1"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="CreateRequestOutput"> <xs:complexType> <xs:sequence> <xs:element name="CreateRequest" type="tns:CreateRequest"/> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="CreateRequest"> <xs:sequence> <xs:element name="idCRM" type="xs:string"/> <xs:element name="status" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:schema>

Maven plugin Jaxb2 generate java objects correctly. Maven 插件 Jaxb2 正确生成 java 对象。 I did also soap config java file.我也做了soap config java文件。

but the wsdl generated doesn't have xs:message part so with for example soap ui i cannot make request:但是生成的 wsdl 没有 xs:message 部分,所以对于例如soap ui我不能提出请求:

Why method CreateRequest is not generated in wsdl.... Thx为什么在 wsdl 中没有生成方法 CreateRequest .... Thx

也许有命名响应和请求的标准?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM