soap 相关问题

简单对象访问协议(SOAP)是用于在Web服务的实现中交换结构化信息的协议规范。

Java 从 SOAP 服务 URL 调用获取响应

我想从 SOAP URL 的请求中获取响应。为此,我使用下面的代码 导入 javax.xml.soap.MessageFactory; 导入 javax.xml.soap.MimeHeaders; 导入javax.xml.soap.SOAPBody; 导入java...

回答 2 投票 0

coldfusion:ws-security X.509 / SOAP 加密

我是coldfusion程序员,没有JAVA知识经验。 我正在处理一个小项目,从网络服务中获取一些信息。我们正在使用 Coldfusion 服务器 9。 SSL 证书 /

回答 1 投票 0

有谁知道如何在 SOAP WSSE 标头的 BinarySecurityToken 中生成 X509PKIPathv1 的 ValueType 吗?

在 SoapUI 中,我正在发送一个 SOAP 请求,其中我使用 BinarySecurityToken 构造了一个 WSSE 标头,我将其理解为 base64 编码的客户端证书,采用 PKCS12 格式。然而...

回答 1 投票 0

使用 JAX-WS 从 Web 服务返回自定义对象

问题有点长,但我想提前提供所有信息 我有以下课程: 包test.api.soap.server; 公共类测试类A { 公共测试A级...

回答 1 投票 0

无法使字段私有静态最终jdk.internal.misc.Unsafe可访问:模块java.base不会“打开jdk.internal.misc”

我正在尝试使用 Spring Tools 读取 SOAP Web 服务中的函数,然后使用 REST API 发送结果。所以,我使用了这段代码 服务接口 包 com.example.springbootsoapexample.service; ...

回答 2 投票 0

在 iPhone 中发出肥皂请求

我正在尝试使用肥皂网络服务,它只返回一个日期(测试)。但我无法连接网络服务。我只从网络服务接收 wsdl,但无法获取

回答 3 投票 0

如何在spyne中定义复杂模型?

我收到了来自soap客户端的这样一条soap消息。但我不知道如何定义一个基于spyne的服务来处理这个soap消息。 我收到了来自肥皂客户端的这样一条肥皂消息。但我不知道如何定义一个基于spyne的服务来处理这个soap消息。 <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sde1="http://www.aglaia-gmbh.de/xml/BaSS_SOAPd/" xmlns:sde2="http://www.aglaia-gmbh.de/xml/2013/05/17/BaSS_SOAPd.xsd"> <SOAP-ENV:Body> <sde2:notification_message> <sde2:startup_notification mac_address="00:0B:91:A0:0C:34" notification_ID="1" serverTask_ID="0" timestamp="2022-01-01T04:05:38.675327+00:00" ip_address="192.168.90.201" xml_version="http://www.aglaia-gmbh.de/xml/2013/05/17/BaSS_SOAPd.xsd" paramset_version=""> </sde2:startup_notification> </sde2:notification_message> </SOAP-ENV:Body> </SOAP-ENV:Envelope> from spyne import (Application, rpc, ServiceBase, Iterable, Integer, Unicode, ComplexModel, XmlAttribute) from spyne.protocol.soap import Soap11, Soap12 from spyne.server.wsgi import WsgiApplication class Request(ComplexModel): startup_notification = Unicode mac_address = XmlAttribute(Unicode) notification_ID = XmlAttribute(Integer) serverTask_ID = XmlAttribute(Integer) timestamp = XmlAttribute(Unicode) ip_address = XmlAttribute(Unicode) xml_version = XmlAttribute(Unicode) paramset_version = XmlAttribute(Unicode) class HelloWorldService(ServiceBase): @rpc(Unicode, Integer, _returns=Iterable(Unicode)) def SayHello(self, name, times): for i in range(times): yield 'Hello, %s' % name @rpc(Request, _returns=Unicode, _body_style='bare') def notification_message(self, startup_notification): print(startup_notification) return 'OK' application = Application([HelloWorldService], tns='targetNamespace', in_protocol=Soap12(validator='soft'), out_protocol=Soap12() ) wsgi_app = WsgiApplication(application) 它不起作用。正如他们所说,我如何定义这个接收函数的参数? from spyne import Application, rpc, ServiceBase, ComplexModel, Unicode, XmlAttribute from spyne.protocol.soap import Soap11 from spyne.server.wsgi import WsgiApplication class StartupNotification(ComplexModel): mac_address = Unicode(attribute=True) notification_ID = Unicode(attribute=True) serverTask_ID = Unicode(attribute=True) timestamp = Unicode(attribute=True) ip_address = Unicode(attribute=True) xml_version = Unicode(attribute=True) paramset_version = Unicode(attribute=True) class NotificationMessage(ComplexModel): startup_notification = StartupNotification class BaSSService(ServiceBase): @rpc(NotificationMessage, _returns=Unicode, _body_style='bare') def notification_message(self, notification): print(notification.startup_notification) return 'OK' application = Application([BaSSService], tns='http://www.aglaia-gmbh.de/xml/BaSS_SOAPd/', in_protocol=Soap11(validator='soft'), out_protocol=Soap11() ) wsgi_app = WsgiApplication(application) 您可以使用以下命令在 WSGI 服务器(例如,gunicorn)上启动 Spyne 服务: gunicorn -w 4 -b 0.0.0.0:8000 your_module:wsgi_app 将 your_module 替换为包含 Spyne 服务的 Python 模块的名称。根据需要,更改主机和端口。

回答 1 投票 0

Python XML SOAP 请求返回 400 但 Postman 返回 200

我正在尝试使用请求查询 SOAP API,并且我能够让它在 Postman 中正常工作。 但是,当我尝试使用 Python 中的请求发出请求时,我不断收到 400 响应...

回答 3 投票 0

GetSellerList 使用指定的另一个用户 ID 返回我自己的商品

因此,我在使用 GetSellerList 操作的 Trading API 中发现了一些异常活动。当我指定任何值时拨打任何电话都会导致我只返回我的 eBay 商品。我在看pu...

回答 1 投票 0

Onvif wsdl 的 wsimport - 无服务定义

有几个类似的问题,但没有一个明确回答这个问题。 我使用 wsimport 从 .wsdl 文件(Onvif 的 wsdl 文件)生成代码。跑步 wsimport -保留 https://www...

回答 2 投票 0

Soap 连接在 Java 客户端中超时,但在 SOAPUI 中却没有超时

我使用 wsimport 和给定的 wsdl 创建了一个 SOAP 客户端。我还使用 SoapUI 来测试该服务。使用 SoapUI 没有问题,但是当使用 Java 客户端时,我得到了 java.net.ConnectException:连接...

回答 2 投票 0

C# 核心 WCF SOAP1.2 与媒体类型 application/xml 绑定

我有一个任务要 POST 到 HTTP 服务端点,该端点接受 SOAP 信封形式的 Content-Type: application/xml 标头和正文。响应 Content-Type 也始终是 application/xml ...

回答 1 投票 0

如何从 Tomcat Java 应用程序捕获 SOAP 消息到外部服务器?

我有一个 Web 应用程序,它在 Tomcat6 内部运行,并通过 HTTPS 将 SOAP 消息发送到某个外部系统。 我想拦截这些消息。 为此,我在

回答 1 投票 0

WSDL 文件具有未定义的命名空间“ns1”和“xs”?

对 SOAP 和 WSDL 来说还是很陌生,但我有几个简单的问题。我在使用的 WSDL 文件中看到如下所示的部分,但名称空间 ns1 未在任何地方定义?元素

回答 1 投票 0

如何使用.NET Core 6接受soap请求

我需要将旧的肥皂服务转换为.NET Core 6,以便它可以与我们的其他服务驻留在同一服务器上。 我想接受soap请求,内容类型application/soap+xml,以及...

回答 2 投票 0

包含“http”协议超链接的 SOAP 消息安全吗?

最近我开始学习 Web 服务以在我的应用程序中使用它们。 我的目标是最大限度地降低 SOAP 请求被捕获的风险。 据我了解,SOAP消息应该被加密......

回答 1 投票 0

JAXB 生成的 Java 类不处理 SOAP 请求

这是我的 .xsd 文件中的请求,如下所示。正如您所看到的,一些首字母故意是大写和小写的。 这是我的 .xsd 文件中的请求,如下所示。正如您所看到的,一些首字母故意是大写和小写的。 <xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/" targetNamespace="http://tempuri.org/" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"> <xs:element name="Deneme"> <xs:complexType> <xs:sequence> <xs:element name="count" type="xs:int"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="CustomerRequest"> <xs:complexType> <xs:sequence> <xs:element name="CustomerName" type="xs:string" /> <xs:element name="Age" type="xs:int" /> <xs:element name="YearlyIncome" type="xs:long" /> <xs:element name="cibilScore" type="xs:int" /> <xs:element name="employmentMode" type="xs:string" /> <xs:element ref="tns:Deneme"/> </xs:sequence> </xs:complexType> </xs:element> 使用 JAXB 生成类后: CustomerRequest.java @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "customerName", "age", "yearlyIncome", "cibilScore", "employmentMode", "deneme" }) @XmlRootElement(name = "CustomerRequest") public class CustomerRequest { @XmlElement(name = "CustomerName", required = true) protected String customerName; @XmlElement(name = "Age") protected int age; @XmlElement(name = "YearlyIncome") protected long yearlyIncome; protected int cibilScore; @XmlElement(required = true) protected String employmentMode; @XmlElement(name = "Deneme", required = true) protected Deneme deneme; // getter and setters } 如您所见,@XmlElement 与 xsd 文件相同。但是,propOrder 值以小写字母开头。它给我带来了以下问题:当我尝试使用 SoapUI 发送请求时,这种情况问题会阻止请求。 如果我发送这样的请求,它会起作用: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:CustomerRequest> <customerName>5</customerName> <age>5</age> <yearlyIncome>5</yearlyIncome> <cibilScore>5</cibilScore> <employmentMode>5</employmentMode> <deneme> <count>55</count> </deneme> </tem:CustomerRequest> </soapenv:Body> </soapenv:Envelope> 但是,下面它无法访问以大写开头的元素。 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:CustomerRequest> <CustomerName>5</CustomerName> <Age>5</Age> <YearlyIncome>5</YearlyIncome> <cibilScore>5</cibilScore> <employmentMode>5</employmentMode> <Deneme> <count>55</count> </Deneme> </tem:CustomerRequest> </soapenv:Body> </soapenv:Envelope> 我认为问题出在 SOAP UI,但可能有不同的原因,所以我想问你。 获取某人的企业 Instagram 用户名可能并不总是一件容易的事。即使有人停用其帐户并声称帐户的用户名也涉及限制和解决方法。这并不像提交表单并获取所需的用户名那么简单。不过,Instagram 上的 SYLVESTER G. BRYANT(也称为 Yt7crackersz)等专业人士可以帮助您完成此过程,而不会提出任何警告或造成延误。我亲自与他一起申请我自己想要的用户名。您可以通过 [电子邮件受保护] 与他联系。

回答 1 投票 0

SOAP:HTTP 错误请求

请求 SOAP 调用后出现以下错误。 错误代码:HTTP,错误字符串:Bad Request 这是消息格式错误吗? 尝试{ $client = new SoapClient("http://ip_add/something.asmx?W...

回答 5 投票 0

使用 PHP 进行 SOAP API 调用

我已经为此工作了一个星期,但在执行这段代码时遇到了困难。我想通过 SOAP 检索数据并在 PHP 中使用它。我的问题是,我无法发送

回答 1 投票 0

Bing Ads API PollGenerateReport 下载 URL 显示“ResourceNotFound”

有点坚持这个。我能够使用 GeographicalPerformanceReportRequest 的“SubmitGenerateReport”API 请求报告,并且它以报告 ID 进行响应。附上回复...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.