- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 JAX-WS RI 与第三方 Web 服务 (Adyen) 集成。我已经下载了他们的 wsdl 副本,并在我的构建中使用了 jaxws:wsdl2java
来生成 Web 服务实现源代码。在运行时,当我尝试通过调用自动生成的付款服务类的 getPort() 方法来设置端口时,我收到以下异常,声称有一个方法已公开,但它不存在于 wsdl portType 元素中:
javax.xml.ws.WebServiceException: Method adjustAuthorisation is exposed as WebMethod, but there is no corresponding wsdl operation with name {http://payment.services.adyen.com}adjustAuthorisation in the wsdl:portType{http://payment.services.adyen.com}PaymentPortType
但是,它存在于 portType 元素中。这是 wsdl 的相关片段:
<wsdl:portType name="PaymentPortType">
<wsdl:operation name="adjustAuthorisation">
<wsdl:input name="adjustAuthorisationRequest" message="tns:adjustAuthorisationRequest" />
<wsdl:output name="adjustAuthorisationResponse" message="tns:adjustAuthorisationResponse" />
<wsdl:fault name="ServiceException" message="tns:ServiceException" />
</wsdl:operation>
...
</wsdl:portType>
完整的 wsdl 可以在这里看到:https://pal-live.adyen.com/pal/servlet/Payment/v30?wsdl
wsdl 包含在类路径为/wsdl/Payment.wsdl 的目标 jar 中。我在配置类中使用此代码在运行时加载它:
URL wsdl = getClass().getResource(wsdlLocation);
onlineService = new Payment(wsdl, new QName(serviceUrl, serviceName));
其中 serviceUrl = "http://payment.services.adyen.com"
和 serviceName = "Payment"
匹配 wsdl。
最后,这是我尝试打开端口并最终得到异常的代码片段:
ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
try
{
port = config.getOnlineService().getPaymentHttpPort(); // exception thrown here
}
finally
{
Thread.currentThread().setContextClassLoader(oldClassLoader);
}
为什么它似乎误读了 wsdl?另一个可能重要的信息是我最近更新了 wsdl,之前我的应用程序使用 Adyen API 的版本 12 和相应的 wsdl,现在我升级到版本 30。该应用程序使用之前的相同代码运行良好。
最佳答案
您用于生成类的 wsdl 文件与您在运行时加载的 wsdl 文件不匹配。
adjustAuthorisation
。adjustAuthorization
方法。关于javax.xml.ws.WebServiceException : Method X is exposed as WebMethod, 但是没有对应的wsdl操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63850416/
任何人都知道是否可以在 webMethods developer 7.1 中使用流服务创建新包。我想要做的是创建一个流服务,它将一个字符串(包名称)作为输入,结果它将创建一个以该字符串作为名称的新包。
在 webMethods 流服务中,我有一个包含 (n) 个文档的文档列表。每个文档有 3 个值。每个文档必须是字符串表中的新行(有 3 列)。 如何使用 webMethods 流程做到这一点? In
几天以来我一直在使用 Software AG Designer 和 webMethods,我想知道是否可以为我的流程添加时间线? 让我更准确地解释一下:当我在 SAG Designer 上发布和运行我
我想映射一个数组,在 WebMethods 中它是一个文档列表。我认为您可以只映射该变量而不映射所有子项。我已经这样做了,但 PassArea 中没有显示任何内容。 (PassArea是之后发送给主机
我如何在 Integration Server 中为 http-503 请求服务不可用错误设置响应 header 。由于它没有命中我的服务,我无法使用 pub.flow:setResponseHead
我必须在工作中切换计算机,而我的 WEBMethods 项目没有移至新计算机。安装 WEBMethods 后,我们注意到我的项目尚未被复制。 所以我进入笔记本电脑并找到包含 webmethods 项目
我有一个 jQuery Ajax WebMethod 调用,如下所示: $(document).ready(function () { $("#btnsubmit").cli
目的是创建一组人们可以重用的 Web 服务。这些服务主要与创建、检索和处理数据的后端数据库交互。 我们希望公开服务,以便人们可以用来创建数据混搭和其他应用程序。 最终用户是可以在我们的域内或域外的网页
如何在 webMethods 中创建/安排调度程序来调用具有 2 个(或更多)输入选项的服务? 在这里,我需要通过选项(输入)调用服务,该服务将路由到另一个到 TN 的 map 服务,但我需要了解具有
我想在某些 Java 服务(WebMethod 设计器 9.7)中使用外部 jar。我在 Internet 文档中看到我必须将我的 jar 放在集成服务器上的包/code/jars/路径中,以及我在
我正在创建一个流服务,并在其中插入了另一个流,该流将文档列表作为输出并包含 5 个字符串字段。问题是我无法循环该文档列表,无论我在输入数组(getPropertyOutput,getPropertyO
我正在尝试在 Webmethods 映射步骤中使用正则表达式模式。问题是忽略使用正则表达式修饰符匹配字符串的情况。 例如: input is 'TEST' or 'test' or 'Test' Br
在 .NET 中,是否有一种标准的方法来指示 Web 服务方法已被 已弃用 ? 澄清一下,“Web 服务方法”是指一种用 [WebMethod] 修饰的方法。属性。 标准做法是只使用 [Obsolet
我第一次尝试从 javascript 调用服务器端函数,但没有成功,因为 webmethod 没有被调用。 aspx 文件包含一个 bootstrap 样式的按钮;单击时,我需要向用户的“收藏夹”列表
我正在创建一个模式,当我单击时,我会将 id 和操作传递到服务器端以保存日志。 这是我的示例代码,但无法使其工作。我正在使用用户控件。 $("a.modal_show2").click(functio
我想在设计器之外使用单独的 java 程序收集 webmethods 集成服务器特定包的依赖关系。 这些依赖项存储在文件系统中的什么位置? 谢谢 最佳答案 在包级别声明的包依赖项存储在包 list 文
我最近看到一个 jQuery 示例,其中对“Default.aspx/Test”进行了 POST,其中 Test 是 Default.aspx 中的 WebMethod,请求的内容类型是“applic
有谁知道如果传递了一个冗长的字符串对象,json 对象是否有任何问题。 我正在调用一个 web 方法,其内容作为编码的 html 数据。生成的字符串大约有 7000 个,并且没有从客户端传递到 web
我在 Asp.Net 中使用 C# 工作,我在用户控件中定义了一个 [WebMethod]。我不想使用网络服务。 如何调用具有[WebMethod] 属性的方法?我想从 jQuery (Ajax) 请
我在 Visual Studio 2008 中将 Virtual Basic 与 ASP.NET 结合使用。我正在使用 Webmethod 与客户端在服务器之间进行通信。可以查询和返回少量数据,但是当
我是一名优秀的程序员,十分优秀!