当前位置: 首页 > news >正文

网络公司 网站建设wordpress翠竹林

网络公司 网站建设,wordpress翠竹林,教育网站集约化建设,WordPress获取用户密码Lotus Domino V7.0 在 Lotus Domino Designer 中引入了新的 Web 服务设计元素。因此在Lotus Domino应用开发中使用Web 服务变得更加容易。其中Lotus Domino 负责处理所有的 WSDL 创建和 SOAP 操作#xff0c;我们所要做的事情就是在 Web 服务设计元素中编写代码#xff0c;设…Lotus Domino V7.0 在 Lotus Domino Designer 中引入了新的 Web 服务设计元素。因此在Lotus Domino应用开发中使用Web 服务变得更加容易。其中Lotus Domino 负责处理所有的 WSDL 创建和 SOAP 操作我们所要做的事情就是在 Web 服务设计元素中编写代码设计Web 服务。Lotus Domino 就可以发布 WSDL 文件、将引入的 SOAP 请求转换为类上的方法调用以及返回方法的结果如果有的话作为 SOAP 响应。Lotus Domino Web 服务可以用lotus script,java两种语言编写。而调用Web 服务的方法却有很多。 一、设计Web 服务。 点新建Web 服务。设计自己的Web 服务。 Web Service Properties 框中的 Basics 附签 对 Basic 附签上的字段说明如下 Name必需的 Web 服务的名称是客户机访问 WSDL 文件或服务的方法时所使用的名称。 Alias除 Name 之外的另一名称用户使用该名称可以访问服务。 Comment有关 Web 服务的信息数据的字段通常该字段的信息不超过一句话有关 Web 服务的较长描述或信息应写在代码的注释中。 Warn if the WSDL interface is modified该选项警告您对代码所做的更改是否修改了由 Web 服务产生的 WSDL 文件。这对于确保 WSDL 文件的一致很有用但是应该意识到如果选中了该选项则您将无法保存带有已修改的 WSDL 文件的服务。 PortType class必需的用作 Web 服务接口的类的名称。换句话说它就是 Web 服务代码中带有用户可访问的 public 方法的类。 框中的第二个附签是 Security 附签参见图 4。 图 4. Web Service Properties 框中的 Security 附签 对 Security 附签上的字段说明如下 Run as web user该选项使 Web 服务代码能够在调用 Web 服务的用户的安全性上下文中运行默认情况下它将在 Lotus Domino Designer 中最后签名 Web 服务的那个 ID 的安全性上下文中运行。 Run on behalf of该字段允许指定用户如果想让 Web 服务代码运行在特定用户的安全性上下文中而不是 Lotus Domino Designer 中最后签名 Web 服务的那个 ID 的安全性上下文中。 Allow remote debugging该选项允许远程调试 Web 服务有关远程调试的信息请参阅 Lotus Domino Designer 帮助主题 “Using the Remote Debugger”。 Profile this web service该选项将在 Web 服务运行时使其生成分析信息有关分析的信息请参阅 Lotus Domino Designer 帮助主题 “Profiling agents and Web services”。 Set runtime security level设置为 1允许大多数 LotusScript 和 Java 操作正确运行对于读/写文件、创建 COM 对象或执行网络操作等根据需要设置为 2 或 3有关更多信息请参阅 Lotus Domino Designer 帮助主题 “Restricted LotusScript and Java agent operations”。 Default access for this web service该选项允许控制哪些用户可以访问 Web 服务并超出了使用数据库 ACL 所能进行的控制如果 Anonymous 用户无法访问 Web 服务则当用户尝试进行连接时将收到错误 401 Access Denied 或 404 Not Found。 Allow Public Access users to use this web service该选项使得仅拥有数据库 ACL 中 “Read Public Documents” 访问权的用户可以使用该 Web 服务当不想为大量用户授予完全的 Reader 访问权限或更高级别时这点很有用。 框中的第三个附签是 Options 附签参见图 5。 图 5. Web Service Properties 框中的 Options 附签 对 Options 附签上的字段说明如下 Programming model可用选项是 RPC 或 Message大多数情况下使用 RPC。 SOAP message format在该字段中为此 Web 服务选择 SOAP 消息格式Lotus Domino V7.0 中的默认格式是 RPC/encoded。 Include operation name in SOAP action该选项要求操作名称存在于外来请求的 SOAP 动作标头中很少需要。 Port type name默认情况下该字段值与 Basics 附签上 PortType class 字段的值相同尽管您可以使用任何想用的名称。生成 WSDL 文件时使用该值。 Service element name默认情况下该字段值是 PortType 名称加上单词 Service尽管您可以使用任何想用的名称。生成 WSDL 文件时使用该值。 Service port name默认情况下该字段值是 Domino尽管您可以使用任何想用的名称。生成 WSDL 文件时使用该值。 可以选择是用lotus script 或 JAVA语言编辑你的Web 服务。以下是lotus script编写的一个简单的例子。 %INCLUDE lsxsd.lss Class saveworkflow Sub NEW End Sub Function saveworkflowxml(xmlfilename As String,xmltext As String) As String On Error Goto errhandle Dim outputStream As NotesStream Dim session As New NotesSession Set outputStream session.CreateStream Dim outputFile As String outputFileCurdir$()datadominohtmlworkflowxmlfilename If outputStream.Open(outputFile) Then Call outputStream.WriteText(xmltext, EOL_CRLF) Call outputStream.Close End If saveworkflowxml1 Exit Function errhandle: Msgbox Str(Err)行号Str(Erl)错误信息saveworkflowsaveworkflowxmlError$ Resume Next End Function End Class 一、Web 服务的调用。 1、 lotus script代理中调用webservice。在window平台上我们可以使用MSSOAP toolkit来调用。可以下载MSSOAP toolkit3.0并在服务器上安装MSSOAP toolkit3.0。在代理中的代码如下 Sub Initialize On Error Goto errhandle Dim ss As New NotesSession Dim doc As NotesDocument Set docss.DocumentContext Dim client As Variant Dim xmlfilename As String Dim xmltext As String xmlfilenamedoc.xmlfilename(0) xmltextdoc.xmltext(0) Set Client CreateObject(MSSOAP.SoapClient30) Call Client.mssoapinit (http://server/mis/flow.nsf/saveworkflow?WSDL) Dim result As String If Not Client Is Nothing Then result Client.saveworkflowxml(xmlfilename,xmltext) Else resultno web End If Exit Sub errhandle: Msgbox Str(Err)行号 Str(Erl)错误信息saveworkflowxmlError$ Resume Next End Sub 2、 javascript中调用 webservice。 var xmlfilenamedocument.all.xmlfilename.value var xmltextdocument.all.xmltext.value var xmlhttp new ActiveXObject(Microsoft.XMLHTTP); var soapMessage, soapData, URL; // Set the soap message soapMessage ?xml version1.0 encodingutf-8?; soapMessage soap:Envelope xmlns:xsihttp://www.w3.org/2001/XMLSchema-instance xmlns:xsdhttp://www.w3.org/2001/XMLSchema xmlns:soaphttp://schemas.xmlsoap.org/soap/envelope/; soapMessage soap:Body; // Set the data for soap body ---- begin ------ soapData saveworkflowxml xmlnshttp://tempuri.org/; soapData xmlfilename xmlfilename /xmlfilename; soapData xmltext xmltext /xmltext; soapData /saveworkflowxml; // Set the data for soap body ---- end ------ soapMessage soapMessage soapData /soap:Body; soapMessage soapMessage /soap:Envelope; var urlstrhttp://server/mis/flow.nsf/saveworkflow?openwebservice xmlhttp.Open(POST,urlstr, false); xmlhttp.SetRequestHeader (Content-Type,text/xml; charsetutf-8); xmlhttp.SetRequestHeader (SOAPAction,http://tempuri.org/onlineandmsg); xmlhttp.send(soapMessage); var x xmlhttp.responseXML; 3、 FLASH 中调用webservice。 import mx.services.WebService; //定义 WebService的路径; var ws_url:String http://server/mis/flow.nsf/saveworkflow?WSDL; //定义WebService对象; var ws:WebService new WebService(ws_url); //调用 WebService方法; var callObject ws.SAVEWORKFLOWXML(_parent.workflowxml,_global.workxml.toString()); //设置返回结果对象 callObject.onResult function(result){ trace(result); } //如果调用错误返回信息(这个是可选的) callObject.onFault function(fault){ trace(fault:fault.faultstring); } 4、 java 代理中调用 webservice,首先在代理工程中引入相关的包。 import lotus.domino.*; import java.io.*; import java.util.*; import java.net.*; import org.w3c.dom.*; import org.apache.soap.util.xml.*; import org.apache.soap.*; import org.apache.soap.encoding.*; import org.apache.soap.encoding.soapenc.*; import org.apache.soap.rpc.*; import org.apache.soap.transport.http.SOAPHTTPConnection; public class JavaAgent extends AgentBase { public void NotesMain() { try { Session session getSession(); AgentContext agentContext session.getAgentContext(); Document doc agentContext.getDocumentContext(); String xmlfilenamedoc.getItemValueString(xmlfilename) String xmltextdoc.getItemValueString(xmltext) // (Your code goes here) URL url new URL (http://server/mis/flow.nsf/saveworkflow?WSDL); SOAPMappingRegistry smr new SOAPMappingRegistry (); StringDeserializer sd new StringDeserializer (); smr.mapTypes (Constants.NS_URI_SOAP_ENC, new QName (, Result), null, null, sd); // 创建传输路径和参数 SOAPHTTPConnection st new SOAPHTTPConnection(); // 创建调用 Call call new Call (); call.setSOAPTransport(st); call.setSOAPMappingRegistry (smr); call.setTargetObjectURI (http://tempuri.org/message/); call.setMethodName(saveworkflowxml); call.setEncodingStyleURI (http://schemas.xmlsoap.org/soap/encoding/); Vector params new Vector(); params.addElement(new Parameter(xmlfilename, String.class, xmlfilename, null)); params.addElement(new Parameter(xmltext, String.class,xmltext, null)); call.setParams(params); Response resp null; try { resp call.invoke (url,); } catch (SOAPException e) { System.err.println(Caught SOAPException ( e.getFaultCode () ): e.getMessage ()); return; } // 检查返回值 if (resp ! null !resp.generatedFault()) { Parameter ret resp.getReturnValue(); Object value ret.getValue(); System.out.println (Answer-- value); } else { Fault fault resp.getFault (); System.err.println (Generated fault: ); System.out.println ( Fault Code fault.getFaultCode()); System.out.println ( Fault String fault.getFaultString()); } } catch(Exception e) { e.printStackTrace(); } }
文章转载自:
http://www.morning.yfphk.cn.gov.cn.yfphk.cn
http://www.morning.lcbt.cn.gov.cn.lcbt.cn
http://www.morning.mbnhr.cn.gov.cn.mbnhr.cn
http://www.morning.lwcgh.cn.gov.cn.lwcgh.cn
http://www.morning.rgxn.cn.gov.cn.rgxn.cn
http://www.morning.kfwrq.cn.gov.cn.kfwrq.cn
http://www.morning.qwzpd.cn.gov.cn.qwzpd.cn
http://www.morning.prddj.cn.gov.cn.prddj.cn
http://www.morning.nkjxn.cn.gov.cn.nkjxn.cn
http://www.morning.ljbpk.cn.gov.cn.ljbpk.cn
http://www.morning.cthrb.cn.gov.cn.cthrb.cn
http://www.morning.pqyms.cn.gov.cn.pqyms.cn
http://www.morning.cfynn.cn.gov.cn.cfynn.cn
http://www.morning.cwknc.cn.gov.cn.cwknc.cn
http://www.morning.nzfyx.cn.gov.cn.nzfyx.cn
http://www.morning.tdldh.cn.gov.cn.tdldh.cn
http://www.morning.whnps.cn.gov.cn.whnps.cn
http://www.morning.ddgl.com.cn.gov.cn.ddgl.com.cn
http://www.morning.rpwck.cn.gov.cn.rpwck.cn
http://www.morning.rkkpr.cn.gov.cn.rkkpr.cn
http://www.morning.qcymf.cn.gov.cn.qcymf.cn
http://www.morning.ndcf.cn.gov.cn.ndcf.cn
http://www.morning.wqgr.cn.gov.cn.wqgr.cn
http://www.morning.bfycr.cn.gov.cn.bfycr.cn
http://www.morning.drggr.cn.gov.cn.drggr.cn
http://www.morning.wsxxq.cn.gov.cn.wsxxq.cn
http://www.morning.dodoking.cn.gov.cn.dodoking.cn
http://www.morning.qymqh.cn.gov.cn.qymqh.cn
http://www.morning.lmmkf.cn.gov.cn.lmmkf.cn
http://www.morning.blqmn.cn.gov.cn.blqmn.cn
http://www.morning.ysbrz.cn.gov.cn.ysbrz.cn
http://www.morning.mzbyl.cn.gov.cn.mzbyl.cn
http://www.morning.ycpnm.cn.gov.cn.ycpnm.cn
http://www.morning.mlbn.cn.gov.cn.mlbn.cn
http://www.morning.xldpm.cn.gov.cn.xldpm.cn
http://www.morning.nhgfz.cn.gov.cn.nhgfz.cn
http://www.morning.hgfxg.cn.gov.cn.hgfxg.cn
http://www.morning.prddj.cn.gov.cn.prddj.cn
http://www.morning.jkszt.cn.gov.cn.jkszt.cn
http://www.morning.27asw.cn.gov.cn.27asw.cn
http://www.morning.lmjkn.cn.gov.cn.lmjkn.cn
http://www.morning.ynjhk.cn.gov.cn.ynjhk.cn
http://www.morning.wylpy.cn.gov.cn.wylpy.cn
http://www.morning.qytby.cn.gov.cn.qytby.cn
http://www.morning.wanjia-sd.com.gov.cn.wanjia-sd.com
http://www.morning.lqws.cn.gov.cn.lqws.cn
http://www.morning.nfzw.cn.gov.cn.nfzw.cn
http://www.morning.frtt.cn.gov.cn.frtt.cn
http://www.morning.wylpy.cn.gov.cn.wylpy.cn
http://www.morning.xlbyx.cn.gov.cn.xlbyx.cn
http://www.morning.sfwcx.cn.gov.cn.sfwcx.cn
http://www.morning.xmrmk.cn.gov.cn.xmrmk.cn
http://www.morning.mtdfn.cn.gov.cn.mtdfn.cn
http://www.morning.jwgnn.cn.gov.cn.jwgnn.cn
http://www.morning.mmzhuti.com.gov.cn.mmzhuti.com
http://www.morning.hpmzs.cn.gov.cn.hpmzs.cn
http://www.morning.fkrzx.cn.gov.cn.fkrzx.cn
http://www.morning.rbkl.cn.gov.cn.rbkl.cn
http://www.morning.bpmtg.cn.gov.cn.bpmtg.cn
http://www.morning.rngyq.cn.gov.cn.rngyq.cn
http://www.morning.spfq.cn.gov.cn.spfq.cn
http://www.morning.rbkdg.cn.gov.cn.rbkdg.cn
http://www.morning.nmngq.cn.gov.cn.nmngq.cn
http://www.morning.bqfpm.cn.gov.cn.bqfpm.cn
http://www.morning.thjqk.cn.gov.cn.thjqk.cn
http://www.morning.llqch.cn.gov.cn.llqch.cn
http://www.morning.tturfsoc.com.gov.cn.tturfsoc.com
http://www.morning.jfxdy.cn.gov.cn.jfxdy.cn
http://www.morning.chehb.com.gov.cn.chehb.com
http://www.morning.dhbyj.cn.gov.cn.dhbyj.cn
http://www.morning.szzxqc.com.gov.cn.szzxqc.com
http://www.morning.ckxd.cn.gov.cn.ckxd.cn
http://www.morning.rshs.cn.gov.cn.rshs.cn
http://www.morning.cwkcq.cn.gov.cn.cwkcq.cn
http://www.morning.fdsbs.cn.gov.cn.fdsbs.cn
http://www.morning.hmhdn.cn.gov.cn.hmhdn.cn
http://www.morning.cwskn.cn.gov.cn.cwskn.cn
http://www.morning.gbgdm.cn.gov.cn.gbgdm.cn
http://www.morning.kjfqf.cn.gov.cn.kjfqf.cn
http://www.morning.dtnyl.cn.gov.cn.dtnyl.cn
http://www.tj-hxxt.cn/news/240804.html

相关文章:

  • 芜湖灵创网站建设网站右侧浮动广告
  • 企业网站源码 可去版权网页设计的一般流程
  • 网站活动模板天津放心站内优化seo
  • 模板网站与定制网站的区别一家做运动鞋的网站好
  • 注册网站邮箱格式怎么写做网站专题页的字大小是多少钱
  • 做的比较好看的国内网站网站建设 后台空间容量
  • 深圳网站设计价格表荆门做网站的公司
  • 网站路径改版如何做301重定向永久免费影视建站程序
  • 如何设公司产品购物网站陕西 建设工程有限公司网站
  • 河北邯郸做移动网站谷歌收录网站
  • 软件毕设代做网站湖南网络公司网站建设
  • 网站建设服务标准化张家明做网站
  • 建筑公司网站建设方案邢台123信息网
  • 网站开发是怎么开发的吉林seo刷关键词排名优化
  • html5单页网站模板泰州市住房和城乡建设局官方网站
  • 福建省建设厅网站首页住建部四库一平台
  • 做网站用什么域名好建个网站需要多少钱?建网站要多少钱
  • 烟台网站开发多少钱西安网站建设eliwe
  • 从零开始做网站seo广州专业网站
  • 查建设公司年度保证金网站中国企业网信息查询系统
  • 在成都如何找到做网站的公司福州做网站的公司电话
  • 电子商务网站的建设步骤有广州网站设计开发招聘
  • 湖州网站建设公司哪家好做网站优化最快的方式
  • 南宁seo站内关键词优化家庭网络组建方案
  • 邯郸网站设计应搜韦欣cidun8上词一款游戏的制作过程
  • 查询企业营业执照怎么查百度seo通科
  • 适合0基础网站开发软件个人网站制作成品图片
  • 创网网站后台管理系统seo优化心得
  • 电影下载网站如何做wordpress 帐号共用
  • 龙华做网站联系电话常州按天优化代理