有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java通过SOAP操作生成SOAP服务

我对SOAP服务是新手,因为我总是使用REST,所以这个问题可能会让我觉得很愚蠢,我只是需要一些关于这项技术的指导,因为我不知道从哪里开始

因此,我有一个SOAP服务将被另一个软件使用,该软件显示了一个警告:缺少SOAP操作

据我所知,soap操作是标头的属性,但目前生成的wsdl文件没有任何标头,如下所示:

    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns="http://foo.bar.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" targetNamespace="http://adomingo.gdxgroup.com">
<wsdl:documentation> Please Type your service description here </wsdl:documentation>
<wsdl:types>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://foo.bar.com">
<xs:element name="version">
<xs:complexType>
<xs:sequence/>
</xs:complexType>
</xs:element>
<xs:element name="versionResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="methodName">

我部署此服务的目的是使用Axis2和Tomcat 9.0在Eclipse中的POJO类中(在动态Web项目中)右键单击“创建Web服务”。当一切正常时,我将其导出为war文件

这一直有效,直到该软件的版本升级,这需要对自定义web服务执行此SOAP操作。(Docuware 7.1)

所以我的问题是,我应该使用哪种技术来生成这个带有头部及其soap操作的web服务


共 (0) 个答案