Web Services--gSOAP 2.7.6 第七章(7.1.2)

soapdoc2.pdf gsoap开发文档 pdf 英文版 求中文版 立即下载

下载地址:http://sourceforge.net/projects/gsoap2

官方网站:http://genivia.com/Products/gsoap/index.html

本文翻译只是出于学习的目的,中文部分仅代表个人观点,有错误还望指正,英文部分来自gsoap-win32-2.7\doc\soapdoc2.pdf。其中复制可能有误,可以看懂英文的还请到官网下载。如有版权争议,请联系QQ:643166601,本人会及处理。翻译新手,有错是必然的,求高人指点。欢迎同为新手的你共同学习。

 

7.1.2 Namespace Considerations

7.1.2 命名空间注意事项

The declaration of the ns1__getQuote function prototype (discussed in the previous section) uses the namespace prefix ns1__ of the remote method namespace, which is distinguished by a pair of underscores in the function name to separate the namespace prefix from the remote method name. 

the ns1__getQuote函数原型的声明(在之前的部分讨论过)使用命名空间前缀ns1__的,远程方法命名空间是通过一对下划线辨别的,从远程方法名的函数名称中分离命名空间前缀。

The purpose of a namespace prefix is to associate a remote method name with a service in order to prevent naming conflicts, e.g. to distinguish identical remote method names used by different services.

命名空间前缀是目的是关联一个远程方法名和一个服务为了防止命名冲突,例如区别相同的远程方法名称使用不同的服务。

Note that the XML response of the XMethods Delayed Stock Quote service example uses the namespace prefix n which is bound to the namespace name urn:xmethods-delayed-quotes through the xmlns:n="urn:xmethods-delayed-quotes binding. 

注意XML响应XMethods股票报价服务例子使用的是命名空间前缀是n,帮定到命名空间名称urn:xmethods-delayed-quotes通过xmlns:n="urn:xmethods-delayed-quotes 绑定的。

The use of namespace prefixes and namespace names is also required to enable SOAP applications to validate the content of SOAP messages. 

使用命名空间前缀和命名空间名称是使用SOAP应用所需要的,以验证SOAP消息内容。

The namespace name in the service response is verified by the stub routine by using the information supplied in a namespace mapping table that is required to be part of gSOAP client and service application codes. 

在服务响应的命名空间名称是被stub程序使用信息提供检验的,在命名空间映射表中是请求的部分gSOAP客户段和服务端程序代码。

The table is accessed at run time to resolve namespace bindings, both by the generated stub’s data structure serializer for encoding the client request and by the generated stub’s data structure deserializer to decode and validate the service response. 

这个表在运行时被访问去解决命名空间绑定,通过生成stub的数据结构的序列化的编码的客户端请iuhe生成stub的数据结构的反序列化解码和检验服务响应。

The namespace mapping table should not be part of the header file input to the gSOAP stub and skeleton compiler.

命名空间映射表不应该是头文件输入到gSOAP stub和 skeleton编译器的的一部分。

Service details including namespace bindings may be provided with gSOAP directives in a header file, see Section 18.2.

服务详细包括命名空间绑定可以在gSOAP官方的头文件中提供(找到),请看18.2部分。

 

The namespace mapping table for the Delayed Stock Quote client is:

延迟股票报价客户端的命名空间映射表:

 

struct Namespace namespaces[] =

{ // {”ns-prefix”, ”ns-name”}

{”SOAP-ENV”, ”http://schemas.xmlsoap.org/soap/envelope/”}, // MUST be first

{”SOAP-ENC”, ”http://schemas.xmlsoap.org/soap/encoding/”}, // MUST be second

{”xsi”, ”http://www.w3.org/2001/XMLSchema-instance”}, // MUST be third

{”xsd”, ”http://www.w3.org/2001/XMLSchema”}, // 2001 XML Schema

{”ns1”, ”urn:xmethods-delayed-quotes”}, // given by the service description

{NULL, NULL} // end of table

};

 

The first four namespace entries in the table consist of the standard namespaces used by the SOAP 1.1 protocol.

在这个表中的前4行命名空间入口是使用SOAP 1.1协议的标准的命名空间。

In fact, the namespace mapping table is explicitly declared to enable a programmer to specify the SOAP encoding style and to allow the inclusion of namespace-prefix with namespace name bindings to comply to the namespace requirements of a specific SOAP service. 

实际上,命名空间映射表是显示声明使程序员能够指定SOAP编码样式和允许包含命名空间前缀到命名空间名称绑定去遵从一个指定的SOAP服务的命名空间要求。

For example, the namespace prefix ns1, which is bound to urn:xmethods-delayed-quotes by the namespace mapping table shown above, is used by the generated stub routine to encode the getQuote request. 

例如,命名空间前缀是ns1,他是绑定到urn:xmethods-delayed-quotes同过上面显示的命名空间映射表,是被使用的通过生成stub程序去编码getQuote请求。

This is performed automatically by the gSOAP compiler by using the ns1 prefix of the ns1__getQuote method name specified in the getQuote.h header file. 

这个是gSOAP编译器自动执行的使用ns1前缀的ns1__getQuote方法名称是在getQuote.h的头文件中指定的。

In general, if a function name of a remote method, struct name, class name, enum name, or field name of a struct or class has a pair of underscores, the name has a namespace prefix that must be defined in the namespace mapping table.

一般来说,一个远程方法的函数名,stuct名,class名,enum名,或结构体或类的字段名一个对下划线,名称中有一个命名空间前缀,必须在命名空间映射表中定义的。

The namespace mapping table will be output as part of the SOAP Envelope by the stub routine.

命名空间映射表将输出由stub程序SOAP信封的一部分。

For example:

例如:

 

...

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:ns1="urn:xmethods-delayed-quotes"

SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

...

 

The namespace bindings will be used by a SOAP service to validate the SOAP request.

命名空间的绑定将使用SOAP服务去检验SOAP请求。

soapdoc2(gSOAP 2.7.8 User Guide) gosap用户使用手册 gSOAP 2.7.8 User Guide Robert van Engelen Florida State University and Genivia, Inc. engelen@genivia.com & engelen@acm.org June 26, 2006 Contents 1 Introduction 2 Notational Conventions 3 Differences Between gSOAP Versions 2.4 (and Earlier) and 2.5 4 Differences Between gSOAP Versions 2.1 (and Earlier) and 2.2 5 Differences Between gSOAP Versions 1.X and 2.X 6 Interoperability 7 Quick User Guide 8 Using the gSOAP Stub and Skeleton Compiler 9 The gSOAP Remote Method Specification Format 10 gSOAP Serialization and Deserialization Rules 11 SOAP Fault Processing 12 SOAP Header Processing 13 MIME Attachments 14 DIME Attachments 15 MTOM Attachments 16 XML Validation 17 SOAP-over-UDP 18 Advanced Features 立即下载

相关推荐

Ubuntu安装ToDesk远程控制软件

前几天有同学问我怎么在 Ubuntu 系统上安装 ToDesk 远程控制软件, 帮他安装完成后就 顺手整理了一下安装过程,所以就顺手有了这篇在 Ubuntu 系统上安装 todesk 的文章。

小白的博客 8672

SOAP namespace(命名空间) 错误生成到 body 里的解决方案

最近维护就项目出现个问题,在server上生成的  SOAP 的 namespace 生成到了 里面, 如下                      100          而本地却没有这个问题,xml如下:                      100               1. 试试加上这个这个 jar

lwdlouis的专栏 5823

手机相机基础技术解析:从硬件到算法的全面指南

手机相机的成像过程可简化为的链路,其核心硬件包括 镜头、CMOS传感器、ISP(图像信号处理器) 以及配套的软件算法。

weixin_44239603的博客 2456

解决springboot整合webservice,使用SOAP Web服务遇到的坑

记录一下springboot整合webservice遇到的问题: 首先,项目需求是,客户那边希望通过webservice来发送数据到本地的服务器,而在本地是希望使用springboot框架,打成的war包在tomcat中启动服务。所以在这里就准备使用springboot整合webservice来完成这一需求。 在网上找了大部分的资料,大多都是关于用webservice的CXF框架,打成war包...

无形存在的博客 1万+

Navcat最新版的激活和安装教程(全网最靠谱,最快捷的方式)

现在最新版本navcat已经出到了16.3了,并且新版navcat也支持连接redis和图标等更多样化的功能,但是比较头疼的一件事就是,只能试用14天。那么接下来小编教大家如何用最简单的方式使用最新版navcat16.

weixin_50737119的博客 2万+

FlowPic实战:从流量到图像的端到端加密应用识别

本文深入解析了FlowPic技术如何将网络流量转化为图像,并利用CNN模型进行端到端加密应用识别。该方法通过分析数据包大小和时序信息生成流量图像,有效绕过加密内容,实现对视频、聊天、文件传输等应用的精准分类。文章提供了从流量抓取、图像生成到轻量级CNN模型设计与训练的完整实战指南,并探讨了在VPN、Tor等复杂场景下的应用与挑战。

weixin_29046035的博客 154

prefix wsdp is not bound to a namespace手把手解决

    首先这个问题是因为用了rs-webservice,maven里面引用了cxf3.1.*的包,在服务器运行一会后就会报这个错,但是不影响服务器运行。    具体的原因解释本文参考:http://blog.csdn.net/bigtree_3721/article/details/51160168    解决方案很简单,是删除jar包    cxf-services-ws-discovery-...

qq_35338695的博客 2824

电影台词预测类型:NLP小样本多标签分类实战

电影类型预测本质上是短文本语义建模问题,核心在于从高度碎片化、低语义密度的台词(平均仅12.7词)中挖掘隐含的类型学编码规则。其技术难点在于:需应对省略主语、倒装、拟声词等非规范表达;处理Drama与Comedy等类型强共现的多标签耦合;并克服领域迁移障碍——维基文本预训练模型在台词上性能骤降0.11。解决方案聚焦RoBERTa微调、类型感知注意力机制与标签平滑策略,兼顾小样本鲁棒性与业务可解释性,广泛适用于影视元数据标注、智能推荐系统及NLP教学实践。

weixin_33309048的博客 293

Web Services--gSOAP 2.7.6 第七章(7.2.1)

下载地址:http://sourceforge.net/projects/gsoap2 官方网站:http://genivia.com/Products/gsoap/index.html 本文翻译只是出于学习的目的,中文部分仅代表个人观点,有错误还望指正,英文部分来自gsoap-win32-2.7\doc\soapdoc2.pdf。其中复制可能有误,可以看懂英文的还请到官网下载。如

Coperator 745

VLA算法总结对比——RT1 / RT2 / Pi0 / Octo/ RDT / OpenVLA

本文主要针最近比较经典的VLA算法进行对比总结,暂不涉及到代码细节和实验细节上的展开,仅仅是从大面上掌握下目前VLA的一些思路和方法。

weixin_44580210的博客 9553

ROSTCM6软件下载及语义网络分析详细操作教程(附网盘链接)

ROSTCM6是武汉大学沈阳教授研发编码的国内目前唯一的以辅助人文社会科学研究的大型免费社会计算平台。该软件可以实现微博分析、聊天分析、全网分析、网站分析、浏览分析、分词、词频统计、英文词频统计、流量分析、聚类分析等一系列文本分析。

m0_64336780的博客 4万+

Web Services--gSOAP 2.7.6 第七章(7.1.3)

下载地址:http://sourceforge.net/projects/gsoap2 官方网站:http://genivia.com/Products/gsoap/index.html 本文翻译只是出于学习的目的,中文部分仅代表个人观点,有错误还望指正,英文部分来自gsoap-win32-2.7\doc\soapdoc2.pdf。其中复制可能有误,可以看懂英文的还请到官网下载。如有版

Coperator 753

C# 上位机之海康工业相机开发(SDK)实战教程

海康工业相机的C#开发核心是基于MVS SDK的“初始化→枚举→连接→采集→释放”流程,其中图像回调处理和格式转换是关键。严格按照SDK文档处理设备类型(网口/USB)和像素格式;及时释放图像资源,避免内存泄漏;错误码是排查问题的重要依据(可参考SDK中的“错误码说明”文档)。掌握这些基础后,可结合机器视觉算法(如OpenCV)实现缺陷检测、尺寸测量等高级功能,构建完整的工业视觉系统。

这里只有干货:从 Modbus 通信到 MES 对接,从 YOLO 训练到工控机部署,带你搞定工业软件开发全流程。 3864

Web Services--gSOAP 2.7.6 第七章(7.1)

下载地址:http://sourceforge.net/projects/gsoap2 官方网站:http://genivia.com/Products/gsoap/index.html 本文翻译只是出于学习的目的,中文部分仅代表个人观点,有错误还望指正,英文部分来自gsoap-win32-2.7\doc\soapdoc2.pdf。其中复制可能有误,可以看懂英文的还请到官网下载。如有版

Coperator 786

IEM模型,地表粗糙度模拟

利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟

大中型超市收银系统(可直接运行)

光步前台收银系统系统功能:商品销售、商品退货、挂单、收银员权限、会员销售、单品取消、整单取消、商品查询、脱机销售、脱机数据上传,基本资料下载,开钱箱、小票打印、收款结算,支持多币种付款方式(现金、储值卡、礼券、微信等),支持多种促销。运行环境:.net 4.0登陆信息用户名:1001 密码:123456内置商品信息,商品编码可输入00001000 - 00010000,测试效果相关功能键F5 结算 F9挂单 F11商品查询 F8退货 Insert单品取消 Del整单取消 F12开钱箱F2 会员 Ctrl+Z退出系统 Home 锁屏 相关源码待公开

Web Services--gSOAP 2.7.6 第七章(7.1.1)

下载地址:http://sourceforge.net/projects/gsoap2 官方网站:http://genivia.com/Products/gsoap/index.html 本文翻译只是出于学习的目的,中文部分仅代表个人观点,有错误还望指正,英文部分来自gsoap-win32-2.7\doc\soapdoc2.pdf。其中复制可能有误,可以看懂英文的还请到官网下载。如有版

Coperator 849

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

Web Services--gSOAP 2.7.6 第七章(7.1.5)

下载地址:http://sourceforge.net/projects/gsoap2 官方网站:http://genivia.com/Products/gsoap/index.html 本文翻译只是出于学习的目的,中文部分仅代表个人观点,有错误还望指正,英文部分来自gsoap-win32-2.7\doc\soapdoc2.pdf。其中复制可能有误,可以看懂英文的还请到官网下载。如有版

Coperator 660

RU DOS版、EFI版32bit/64bit BIOS常用工具

DOS版、EFI版的RU工具,可用来查看IO、MEM、PCI、SMBIOS等资源。亲测在EFI SHELL下可用。

Web Services--gSOAP 2.7.6 第七章(7.1.4)

下载地址:http://sourceforge.net/projects/gsoap2 官方网站:http://genivia.com/Products/gsoap/index.html 本文翻译只是出于学习的目的,中文部分仅代表个人观点,有错误还望指正,英文部分来自gsoap-win32-2.7\doc\soapdoc2.pdf。其中复制可能有误,可以看懂英文的还请到官网下载。如有版

Coperator 693

通过双向证书认证使用 gSOAP 访问 web services

概述 本文通过一系列的实验步骤描述,向您展示如何使用 gSOAP 编写的客户端,通过双向证书认证,访问由 tomcat7 和 Axis2 搭建的 web 服务。全文循序渐进,分为几个阶段逐步展开,每个阶段相关的注意事项和遇到过的一些问题也一并记录下来供读者参考。 先简单介绍一下需要准备的工具。 服务端:由 tomcat7+axis2 搭建而成 客户端:由 gSOAP 工具生成 证书 :用...

PeterCuiy 794

Symbian学习笔记(20) - 用gSOAP更简单地实现Web Services Client

昨天折腾了一下那个gSOAP,发现这东西比Symbian自带的WebServiceAPI更简单方便,推荐使用!gSOAP的官方网站是:http://gsoap2.sourceforge.net/具体使用方法不多说,因为网上GOOGLE 一下很多资料。下面只对在symbian环境下使用略说几点。我下载的是最新版的v2.7.10,下载的压缩包里就有一个symbian目录,里面是在symbi

SHARE & TOP 6108

ONVIF学习【2】——SOAP介绍以及gSOAP使用

onvif

holly的专栏 2240

Web Services--gSOAP 2.7.6 User Guide 目录

下载地址:http://sourceforge.net/projects/gsoap2   官方网站:http://genivia.com/Products/gsoap/index.html 本文翻译只是出于学习的目的,中文部分仅代表个人观点,有错误还望指正,英文部分来自gsoap-win32-2.7\doc\soapdoc2.pdf。其中复制可能有误,可以看懂英文的还请到官网下载。如有

Coperator 937

Web Services--gSOAP 2.7.6 第七章(7.2.2)

下载地址:http://sourceforge.net/projects/gsoap2 官方网站:http://genivia.com/Products/gsoap/index.html 本文翻译只是出于学习的目的,中文部分仅代表个人观点,有错误还望指正,英文部分来自gsoap-win32-2.7\doc\soapdoc2.pdf。其中复制可能有误,可以看懂英文的还请到官网下载。如

Coperator 820

使用C++编写web services

这篇文章原文在我的blog : www.breezemind.com你可以在上面下载到本文的代码。gSOAP Tutorial : Part IIntroduction:The gSOAP toolkit provides a SOAP/XML-to-C/C++ language binding toease the development of SOAP/XML Web serv

tcysb的专栏 898
上一篇: WMI--Windows API--CoInitializeSecurity
下一篇: Web Services--gSOAP 2.7.6 第七章(7.1.3)
dblion
博客等级 码龄16年 23粉丝 104原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值