简体   繁体   English

了解Axis2端点

[英]Understanding Axis2 Endpoints

I'm attempting to consume a SOAP web service, now, the example I've been given is using SoapUI. 我正在尝试使用SOAP Web服务,现在,给出的示例是使用SoapUI。

The endpoint at the top points to https://www.URL-A/example.ashx but then the addressing module (wsa:To) points to https://www.URL-B/example.svc . 顶部的端点指向https://www.URL-A/example.ashx,但是寻址模块(wsa:To)指向https://www.URL-B/example.svc

What is the URL at the top of soapUI? soapUI顶部的URL是什么? and why is there a different endpoint in the addressing module? 为什么在寻址模块中有一个不同的端点?

What is the URL at the top of soapUI? soapUI顶部的URL是什么?

That is the URL where the request is really sent 那是真正发送请求的URL

and why is there a different endpoint in the addressing module? 为什么在寻址模块中有一个不同的端点?

In the addressing - effectively there can be anything (any URL) and in most of the time this information is ignored. 在寻址中-实际上可以有任何内容(任何URL),并且在大多数情况下,此信息将被忽略。

The purpose of the addressing is to provide some addressing information (To, ReplyTo, messageId, ..) independently from the protocol (http). 寻址的目的是独立于协议(http)提供一些寻址信息(To,ReplyTo,messageId等)。 So the message could be resent by different protocols (eg using JMS) passed to different endpoints, etc. 因此,可以通过传递给不同端点的不同协议(例如,使用JMS)重新发送消息。

Long story short - you should pay attention what's in the soapUI top field, that's the reals endpoint where the request will be sent. 长话短说-您应该注意soapUI top字段中的内容,这是将发送请求的实数端点。

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

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