soap xml_SOAP XML消息–使用Liquid XML Studio进行了解和创建

soap xml

什么是SOAP? (What Is SOAP?)

Soap is an XML based transport protocol. Soap stands for Simple Object Access Protocol. Soap is a lightweight mechanism for exchanging structured and typed information. As it is XML based so it is language and platform independent. SOAP has been a widely accepted protocol for XML based system- to- system communications so several web services rely on SOAP.

肥皂是一种基于XML的传输协议。 Soap代表简单对象访问协议 。 Soap是用于交换结构化和类型化信息的轻量级机制。 由于它基于XML,所以它与语言和平台无关。 SOAP已经成为基于XML的系统间通信的一种广泛接受的协议,因此一些Web服务都依赖SOAP。

SOAP has the following Elements:

SOAP具有以下元素:

  • Envelope

    信封
  • Header

    标头
  • Body

    身体
  • Fault

    故障

SOAP Envelope:  You can consider Envelope as the Root Element in XML. It is configured to get notified that when the message transfer is over and when you need to stop receiving the message and process it. Just like XML Root is mandatory, Envelope is also a mandatory part of Soap. Every Envelope must contain one body Element in it. Inside the Envelope positions, all the elements are fixed and cannot be changed. The Element is prefixed by ENV Namespace.

SOAP信封 :您可以将信封视为XML中的根元素。 它被配置为在消息传输结束以及何时需要停止接收消息并对其进行处理时得到通知。 就像XML Root是必需的一样,信封也是Soap的必需部分。 每个信封中都必须包含一个身体元素。 在“包络”位置内,所有元素都是固定的,无法更改。 元素以ENV命名空间为前缀。

An Envelope looks like this

信封看起来像这样

<?xml version="1.0"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="https://www.w3.org/2001/12/soap-envelope"

SOAP-ENV:encodingStyle="https://www.w3.org/2001/12/soap-encoding">
  ...
  Message information goes here
  ...
</SOAP-ENV:Envelope>

SOAP Header: Header in Element can exist multiple times in the soap. The header element will always be the first child of the Envelope. Header Elements are used to add new features and functionality in the soap. All the List Header Elements come after Envelope Start Element and Body Start Element. Header Element has the following two Attributes.

SOAP标头 :Element中的头可以在肥皂中多次存在。 标头元素将始终是信封的第一个子元素。 标头元素用于在肥皂中添加新功能。 所有列表标题元素都位于信封开始元素和正文开始元素之后。 标头元素具有以下两个属性。

SOAP Body: Body is a mandatory part of a soap message. It contains the data which needs to be exchanged in a soap message. The body should be inside an Envelope and below a Header. Soap based web services can be implemented on IIS Server and then the Soap processor will map the body information to .net based objects.

SOAP正文:正文是肥皂消息的必需部分。 它包含需要在肥皂消息中交换的数据。 主体应位于信封内且标题下。 可以在IIS服务器上实现基于Soap的Web服务,然后Soap处理器会将主体信息映射到基于.net的对象。

SOAP Faults: For Error Handling Fault element is included in a soap message. This is also present inside Envelope and after a body element. Fault element has the following sub-elements.

SOAP Faults :肥皂消息中包含“错误处理错误”元素。 这也存在于Envelope内部和body元素之后。 故障元素具有以下子元素。

  • Fault Code: This is an error code which details the type of error code that has been generated.

    故障代码:这是一个错误代码,详细说明了已生成的错误代码的类型。
  • Fault String: small description about the error.

    故障字符串:有关错误的简短描述。
  • Fault Actor: Possible cause of error. This is useful when the service is served through many hope and it is intended that this will tell you which hope had created the error.

    故障角色:可能的错误原因。 当通过许多希望提供服务时,这很有用,它可以告诉您是哪个希望导致了错误。
  • Details: Detailed description of error caused.

    详细信息:引起的错误的详细描述。

To create a SOAP Message for SOAP-based web service from the Liquid XML Editor is very easy to do, here’s how;

要从Liquid XML Editor创建基于SOAP的Web服务的SOAP消息非常容易,这就是方法。

Step 1: Download the Liquid Xml Editor from here and install.

步骤1:从此处下载Liquid Xml Editor,然后安装。

Step 2: Create a new project.

步骤2:创建一个新项目。

Step 3: Right click on documents Add a new item.

第3步:右键单击文档添加新项目。

 Step 4: Now click on icon which says Call A Webservice.

  第4步:现在,单击“ 调用Web服务”图标

Step 5: Provide the webservice URL and click on Test.

第5步:提供Web服务URL,然后单击“ 测试”。

Step 6: Once the test is successful, click on New .

步骤6:测试成功后,点击新建。

Step 7: A list of soap methods is displayed.

步骤7:显示肥皂方法列表。

Step 8: Click on any of the methods for which you need to create SOAP-based XML.

步骤8:单击您需要创建基于SOAP的XML的任何方法。

Step 9: Now click Finish to complete the operation.

步骤9:现在,单击Finish(完成)以完成操作。

SOAP will be generated for your operation.

将为您的操作生成SOAP。

翻译自: https://www.journaldev.com/458/soap-xml-message-understanding-and-creating-with-liquid-xml-studio

soap xml

支持所有xml,xdtd,xsd等相关功能操作修改,转换xmltoxsd,xsdtoxml等等1、新 JSON编辑器版 一个新的入门级版本,专门针对需要图形JSON模式编辑器相关JSON工具的开发人员。这还包括免费社区版的所有功能。 2、新的 JSON Schema Draft 6支持 与JSON Schema Draft 4一起,图形JSON Schema编辑器现在支持JSON Schema Draft 6,JSON编辑器现在为JSON Schema规范提供验证。 3、新的 JSON文档大纲视图 提供一个简单的树,可以快速可视化导航JSON文档。 4、新的 JSON模式库 自动将JSON文档与基于JSON文件名的通用标准模式相关联,从而为标准JSON文件类型启用验证智能感知。还允许从“新建文件”对话框中创建标准JSON文档的新实例。 5、适用于HTMLPDF的新 JSON模式文档工具 为JSON模式(草案4草案6)创建文档,可以是带有可导航图表的丰富HTML,也可以是可打印的PDF。 6、新的 Schematron编辑验证 Schematron,RelaxNGXSD的验证规则现在可以与文档关联,允许使用多个模式模式类型来验证XML实例文档。 7、新的 XSLT 3.0支持 提供对最新XSLT 3.0函数子句的支持。 8、新的 Git源代码控制集成支持 通过在TortoiseGit上提供包装器,为Git源代码控制提供支持。显示项目树中每个文档的状态。 9、XML Data Binder中的新 .Net标准支持 Liquid XML Data Binder现在支持为.Net Standard(1.62.0)生成C#Visual Basic .Net源代码项目文件。 10、XML Data Binder中的新 .Net Core支持 Liquid XML Data Binder现在支持为.Net Core(1.12.0)生成C#Visual Basic .Net源代码项目文件。 二、修复改进 1、Liquid StudioXML编辑器 添加了对XML Schema Documentation Tool的PDF支持。 在文本编辑器中添加了前进后退导航点。 添加了将文档“编码”设置为所有编辑器的属性网格的选项。 添加了将文档“行结束”设置为所有编辑器的属性网格的选项。 改进了XML Schema到JSON Schema的转换。 在JSON Schema编辑器中添加了default,const,enumexamples值编辑器的编辑器。 2、液体数据映射器 数据库源SQL现在可以参数化,从而可以轻松限制从数据库读取的数据。 添加了SQLite支持 - 在数据转换中使用SQLite作为数据源。 添加了时区功能(toLocal,toUTC,setTimezone)。 为XML Writer属性添加了“行结尾”。 3、Liquid XML Data Binder 为.Net项目添加了“生成可空的简单类型”选项。这会生成可选的简单类型,如.Net Nullable Types,例如int,而不是生成IsValid属性。这意味着可选的简单类型像复杂类型一样工作,允许您测试并将它们设置为null(或VB中的Nothing)。 为所有Visual Studio 2017 C#Visual Basic .Net项目添加了选项,以使用LiquidTechnologies.Runtime Nuget而不是本地安装的Liquid Runtime文件。 添加.Net项目选项以指定“强名称密钥文件”。这会将指定的值作为强名称密钥文件(例如MyKey.snk)添加到项目文件中,并将“将程序集签名”设置为“true”。 4、Visual Studio扩展 现在,所有Visual Studio扩展都是从单个VSIX文件安装的。 5、一般改进 除了上面概述的新功能外,现有功能还通过我们的用户请求的功能得到了增强改进。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值