如何解决如何使用WSDL在Python中发送肥皂请求?
我想在Python中发送一个soap请求以获得响应。
方法名称为:getCDUsStatus
我有WSDL
与该方法有关的所有内容:
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-rest'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage',module: 'junit-vintage-engine'
}
implementation 'org.springdoc:springdoc-openapi-ui:1.4.3'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.kafka:spring-kafka'
implementation 'org.projectlombok:lombok'
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
}
并且:
<wsdl:operation name="getCDUsStatus">
<soap:operation soapAction="http://tempuri.org/getCDUsStatus" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
并且:
<wsdl:message name="getCDUsStatusSoapIn">
<wsdl:part name="parameters" element="tns:getCDUsStatus" />
</wsdl:message>
<wsdl:message name="getCDUsStatusSoapOut">
<wsdl:part name="parameters" element="tns:getCDUsStatusResponse" />
</wsdl:message>
最后,
<wsdl:operation name="getCDUsStatus">
<wsdl:input message="tns:getCDUsStatusSoapIn" />
<wsdl:output message="tns:getCDUsStatusSoapOut" />
</wsdl:operation>
请问如何在Python中发送肥皂请求?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。