如何在wsdl中增加了RequestHeader和ResponseHeader

zlq4863947 2009-01-06 10:53:18
wsdl中增加了RequestHeader和ResponseHeader等内容
变成如下wsdl:

<wsdl:definitions xmlns:tns="http://service.xxxx.xxxx.com" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://service.xxxx.xxx.com">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://service.xxxx.xxxx.com">
<xsd:complexType name="RequestHeader">
<xsd:sequence>
<xsd:element name="serviceId" nillable="true" type="xsd:string"/>
<xsd:element name="businessAcceptId" nillable="true" type="xsd:string"/>
<xsd:element name="serialNumber" nillable="true" type="xsd:string"/>
<xsd:element name="version" nillable="true" type="xsd:string"/>
<xsd:element name="cmdType" nillable="true" type="xsd:string"/>
<xsd:element name="requester" nillable="true" type="xsd:string"/>
<xsd:element name="channel" nillable="true" type="xsd:string"/>
<xsd:element name="requestTimeStamp" nillable="true" type="xsd:string"/>
<xsd:element name="organizationUnitId" nillable="true" type="xsd:string"/>
<xsd:element name="teller1" nillable="true" type="xsd:string"/>
<xsd:element name="teller2" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ResponseHeader">
<xsd:sequence>
<xsd:element name="hostSerialNo" nillable="true" type="xsd:string"/>
<xsd:element name="responseTimeStamp" nillable="true" type="xsd:string"/>
<xsd:element name="errorNo" nillable="true" type="xsd:string"/>
<xsd:element name="errorInfo" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="getUser">
<xsd:complexType>
<xsd:sequence>
.......


RequestHeader、ResponseHeader如上,只有wsdl,要用这个规范修改WebService程序。。。。。

不知如何改。。。。-_-b 囧

拜求各路神仙、菩萨、武林高手。。。。。。普渡一下偶吧。。。。。
...全文
252 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zlq4863947 2009-01-06
  • 打赏
  • 举报
回复
可能我没太说清楚。。。。
就是将WebService程序增加RequestHeader、ResponseHeader两个对象。。。。
仅此而已,大侠们回答的好我再+分。。。。
小弟在此拜谢了!
Web Services 教程 5 内容目录 5 Web Services 简介 6 您应当具备的基础知识 6 什么是Web Services? 6 它如何工作? 6 Web services 的未来 6 Why Web Services? 7 最重要的事情是协同工作 7 Web services 把 Web 应用程序提升到了另外一个层面 7 Web services 有两种类型的应用 7 Web Services 平台元素 8 什么是 SOAP? 8 什么是 WSDL? 8 什么是UDDI? 8 Web Service 实例 9 一个实例:ASP.NET Web Service 9 要运行这个例子,我们需要一个 .NET 服务器 10 ASP.NET 的自动化处理 11 Web Service 使用 11 使用我们的 ASP.NET Web Service 例子 11 这些函数会向您发送一个 XML 回答 11 使用表单来访问 Web Service 12 您可以把 web service 置于您的站点上 12 您已经学习了 Web Services,下一步学习什么内容呢? 13 Web Services 概要 13 您已经学习了 Web Services,下一步呢? 14 WSDL 教程 14 内容目录 14 WSDL 简介 15 您应当具备的基础知识 15 什么是 WSDL? 15 WSDL 可描述网络服务(Web Services) 15 在 W3C 的 WSDL 发展史 15 WSDL 文档 16 WSDL 文档结构 16 WSDL 端口 17 WSDL 消息 17 WSDL types 17 WSDL Bindings 18 WSDL 实例 18 WSDL 端口 18 WSDL 端口 19 操作类型 19 One-Way 操作 19 Request-Response 操作 20 WSDL 绑定 20 绑定到 SOAP 21 WSDL 和 UDDI 22 什么是 UDDI? 22 UDDI 基于什么? 23 UDDI 的好处 23 UDDI 如何被使用 23 谁在支持 UDDI? 23 完整的 WSDL 语法 23 您已经学习了 WSDL,下一步呢? 26 WSDL 概要 26 您已经学习了 WSDL,下一步呢? 26 SOAP 教程 27 内容目录 27 SOAP 简介 28 您应当具备的基础知识 28 什么是 SOAP? 28 Why SOAP? 28 Microsoft 和 SOAP 29 SOAP 1.1 被提交到 W3C 29 W3C 正在发展 SOAP 1.2 29 SOAP 语法 29 SOAP 构建模块 29 语法规则 29 SOAP 消息的基本结构 30 SOAP Envelope 元素 30 SOAP Envelope 元素 31 xmlns:soap 命名空间 31 encodingStyle 属性 31 SOAP Header 元素 32 SOAP Header 元素 32 actor 属性 33 mustUnderstand 属性 34 encodingStyle 属性 35 SOAP Body 元素 35 SOAP Body 元素 35 SOAP Fault 元素 36 SOAP Fault 元素 36 SOAP Fault 代码 37 SOAP HTTP Binding 37 HTTP 协议 37 SOAP HTTP Binding 38 Content-Type 38 Content-Length 38 SOAP 实例 39 一个 SOAP 实例 39 您已经学习了 SOAP,下一步呢? 40 SOAP 概要 40 您已经学习了 SOAP,下一步呢? 40 JSON 教程 41 每一章用到的实例 41 什么是 JSON ? 41 JSON - 转换为 JavaScript 对象 42 JSON 简介 42 亲自试一试 - 实例 42 类似 XML 43 相比 XML 的不同之处 43 为什么使用 JSON? 43 JSON 语法 44 JSON 语法规则 44 JSON 名称/值对 44 JSON 值 44 JSON 对象 44 JSON 数组 45 JSON 使用 JavaScript 语法 45 JSON 文件 46 JSON 部署 46 把 JSON 文本转换为 JavaScript 对象 46 JSON 实例 - 来自字符串的对象 46 JSON 解析器 47 XQuery 教程 48 XQuery 参考手册 48 内容目录 48 XQuery 简介 49 您应该具备的基础知识: 49 什么是 XQuery? 49 XQuery 和 XML 查询有关 50 XQuery 与 XPath 50 XQuery - 应用举例 50 XQuery 是一个 W3C 推荐标准 50 XQuery 实例 50 XML 实例文档 51 如何从 "books.xml" 选取节点? 52 XQuery FLWOR 表达式 53 XML 实例文档 53 如果使用 FLWOR 从 "books.xml" 选取节点 53 XQuery FLWOR + HTML 55 XML 实例文档 55 在一个 HTML 列表提交结果 55 XQuery 术语 56 XQuery 术语 56 节点关系 58 XQuery 语法 60 XQuery 的基础语法规则: 60 XQuery 条件表达式 60 XQuery 比较 61 XQuery 添加元素和属性 61 XML 实例文档 61 向结果添加元素和属性 61 XQuery 选择和过滤 64 XML实例文档 64 选择和过滤元素 65 XQuery 函数 68 XQuery 函数 68 XQuery 内建函数 68 函数调用实例 68 XQuery 用户定义函数 69 您已经学习了 XQuery,下一步呢? 70 XQuery 概要 70 您已经学习了 XQuery,接下来该学习什么内容呢? 70 XLink 和 XPointer 教程 70 内容目录 71 XLink 以及 XPointer 简介 71 您应当具备的基础知识 71 什么是 XLink? 71 什么是 XPointer? 72 XLink 和 XPointer 是 W3C 标准 72 XLink 和 XPointer 的浏览器支持 72 XLink 和 XPointer 语法 72 XLink 语法 72 XPointer 语法 73 XLink 实例 73 XML 实例文档 74 XPointer 实例 75 XPointer 实例 75 目标XML文档 75 XML 链接文档 76
The world of web services has been on a fast track to supernova ever since the architect astronauts spotted another meme to rocket out of pragmatism and into the universe of enterprises. But, thankfully, all is not lost. A renaissance of HTTP appreciation is building and, under the banner of REST, shows a credible alternative to what the merchants of complexity are trying to ram down everyone’s throats; a simple set of principles that every day developers can use to connect applications in a style native to the Web. Table of Contents Foreword........ . . . xi Preface........ . . . xiii 1. The Programmable Web and Its Inhabitants... . . . . . . 1 Kinds of Things on the Programmable Web 4 HTTP: Documents in Envelopes 5 Method Information 8 Scoping Information 11 The Competing Architectures 13 Technologies on the Programmable Web 18 Leftover Terminology 20 2. Writing Web Service Clients..... . . . . 23 Web Services Are Web Sites 23 del.icio.us: The Sample Application 26 Making the Request: HTTP Libraries 29 Processing the Response: XML Parsers 38 JSON Parsers: Handling Serialized Data 44 Clients Made Easy with WADL 47 3. What Makes RESTful Services Different?.... . 49 Introducing the Simple Storage Service 49 Object-Oriented Design of S3 50 Resources 52 HTTP Response Codes 54 An S3 Client 55 Request Signing and Access Control 64 Using the S3 Client Library 70 Clients Made Transparent with ActiveResource 71 Parting Words 77 vii 4. The Resource-Oriented Architecture.... . . . . . 79 Resource-Oriented What Now? 79 What’s a Resource? 81 URIs 81 Addressability 84 Statelessness 86 Representations 91 Links and Connectedness 94 The Uniform Interface 97 That’s It! 105 5. Designing Read-Only Resource-Oriented Services..107 Resource Design 108 Turning Requirements Into Read-Only Resources 109 Figure Out the Data Set 110 Split the Data Set into Resources 112 Name the Resources 117 Design Your Representations 123 Link the Resources to Each Other 135 The HTTP Response 137 Conclusion 140 6. Designing Read/Write Resource-Oriented Services.. . . . . . . 143 User Accounts as Resources 144 Custom Places 157 A Look Back at the Map Service 165 7. A Service Implementation..... . . . . 167 A Social Bookmarking Web Service 167 Figuring Out the Data Set 168 Resource Design 171 Design the Representation(s) Accepted from the Client 183 Design the Representation(s) Served to the Client 184 Connect Resources to Each Other 185 What’s Supposed to Happen? 186 What Might Go Wrong? 187 Controller Code 188 Model Code 205 What Does the Client Need to Know? 209 8. REST and ROA Best Practices..... . . 215 Resource-Oriented Basics 215 viii | Table of Contents The Generic ROA Procedure 216 Addressability 216 State and Statelessness 217 Connectedness 218 The Uniform Interface 218 This Stuff Matters 221 Resource Design 227 URI Design 233 Outgoing Representations 234 Incoming Representations 234 Service Versioning 235 Permanent URIs Versus Readable URIs 236 Standard Features of HTTP 237 Faking PUT and DELETE 251 The Trouble with Cookies 252 Why Should a User Trust the HTTP Client? 253 9. The Building Blocks of Services..... 259 Representation Formats 259 Prepackaged Control Flows 272 Hypermedia Technologies 284 10. The Resource-Oriented Architecture Versus Big Web Services. . . . . . 299 What Problems Are Big Web Services Trying to Solve? 300 SOAP 300 WSDL 304 UDDI 309 Security 310 Reliable Messaging 311 Transactions 312 BPEL, ESB, and SOA 313 Conclusion 314 11. Ajax Applications as REST Clients.... . . . . . . 315 From AJAX to Ajax 315 The Ajax Architecture 316 A del.icio.us Example 317 The Advantages of Ajax 320 The Disadvantages of Ajax 320 REST Goes Better 322 Making the Request 323 Handling the Response 324 JSON 325 Table of Contents | ix Don’t Bogart the Benefits of REST 326 Cross-Browser Issues and Ajax Libraries 327 Subverting the Browser Security Model 331 12. Frameworks for RESTful Services.... . . . . . . 339 Ruby on Rails 339 Restlet 343 Django 354 A. Some Resources for REST and Some RESTful Resources.. . . . 365 Standards and Guides 365 Services You Can Use 367 B. The HTTP Response Code Top 42....371 Three to Seven Status Codes: The Bare Minimum 372 1xx: Meta 373 2xx: Success 374 3xx: Redirection 377 4xx: Client-Side Error 380 5xx: Server-Side Error 387 C. The HTTP Header Top Infinity..... . 389 Standard Headers 390 Nonstandard Headers 404 Index........ . . . . 409

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧