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

仿百度文库网站源码商业版dedecms(梦织)系统内核新网如何管理网站

仿百度文库网站源码商业版dedecms(梦织)系统内核,新网如何管理网站,全屋定制设计软件,惊艳的网站收到一个事情#xff0c;需要对接第三方API#xff0c;对方给了个service#xff0c;看了一下#xff0c;原来是webservices的。 上一次测试webervice的接口#xff0c;还是至少八九年前的时候了#xff0c;这种相对比较老旧的也好久不在使用。 于是#xff0c;简单搞了…收到一个事情需要对接第三方API对方给了个service看了一下原来是webservices的。 上一次测试webervice的接口还是至少八九年前的时候了这种相对比较老旧的也好久不在使用。 于是简单搞了一下从搭环境到测试完成基本花了10来分钟对比结果花点时间也抽空简单记录一下。  请求 http://www.shuce.com.cn/services/CommService?wsdl 接口call 参数 soapenv:Envelope xmlns:soapenvhttp://schemas.xmlsoap.org/soap/envelope/ xmlns:serhttp://service.shuce.com.cn soapenv:Header/ soapenv:Body ser:call ser:actdscx_lz/ser:act !--1 or more repetitions:-- ser:args74481885-4244-47d9-aa51-88e2aabebdbc/ser:args ser:argscxveh/ser:args ser:argsC372DD/ser:args ser:args02/ser:args /ser:call /soapenv:Body /soapenv:Envelope   返回 soapenv:Envelope xmlns:soapenvhttp://schemas.xmlsoap.org/soap/envelope/ xmlns:xsdhttp://www.w3.org/2001/XMLSchema xmlns:xsihttp://www.w3.org/2001/XMLSchema-instance soapenv:Body callResponse xmlnshttp://service.shuce.com.cn callReturn{ret:1,clpp:宝马牌,clxh:BMW7202ES(BMWX1),gcjk:国产,zzg:中国,zzcmc:华晨宝马汽车有限公司,fdjxh:N46B20E,hdzk:5,ckg:4477*1798*1577,csys:棕,rlzl:汽油,pl:1995,gl:122,cllx:小型轿车,syxz:非营运,ccdjrq:20130917,zt:正常,hbdbqk:GB18352.3-2005(国Ⅳ阶段),ccrq:20130522,yxqz:20190930,qzbfqz:20991231} /callReturn /callResponse /soapenv:Body /soapenv:Envelope   json格式化结果 { ret: 1, clpp: 宝马牌, clxh: BMW7202ES(BMWX1), gcjk: 国产, zzg: 中国, zzcmc: 华晨宝马汽车有限公司, fdjxh: N46B20E, hdzk: 5, ckg: 4477*1798*1577, csys: 棕, rlzl: 汽油, pl: 1995, gl: 122, cllx: 小型轿车, syxz: 非营运, ccdjrq: 20130917, zt: 正常, hbdbqk: GB18352.3-2005(国Ⅳ阶段), ccrq: 20130522, yxqz: 20190930, qzbfqz: 20991231 }   其他 后来我看了一下别的wsdl http://www.webxml.com.cn/WebServices/IpAddressSearchWebService.asmx?wsdl 做了一个测试结果测试OK简要也记录一下 request soapenv:Envelope xmlns:soapenvhttp://schemas.xmlsoap.org/soap/envelope/ xmlns:webhttp://WebXml.com.cn/soapenv:Header/soapenv:Bodyweb:getCountryCityByIp!--Optional:--web:theIpAddress115.239.210.27/web:theIpAddress/web:getCountryCityByIp/soapenv:Body /soapenv:Envelope response soap:Envelope xmlns:soaphttp://schemas.xmlsoap.org/soap/envelope/ xmlns:xsihttp://www.w3.org/2001/XMLSchema-instance xmlns:xsdhttp://www.w3.org/2001/XMLSchemasoap:BodygetCountryCityByIpResponse xmlnshttp://WebXml.com.cn/getCountryCityByIpResultstring115.239.210.27/stringstring浙江省绍兴市 电信/string/getCountryCityByIpResult/getCountryCityByIpResponse/soap:Body /soap:Envelope ... 如果你想要尝试一下进行一些测试这里提供了一些wsdl可以用来测试可以试试。   所谓授之以鱼不如授之以渔。这里也补上一些前提和方法 下载地址 官网https://www.soapui.org/professional/soapui-pro.html 文件地址http://cncspace.onlinedown.net/down/SoapUI-5.2.1-mac-bin.zip 下载地址http://www.onlinedown.net/soft/177299.htm 下载之后的安装很简单略过简要提一下启动。如果用的是mac的话这样启动 启动命令 cd /Users/hao/Downloads/SoapUI-5.2.1-mac-bin/SoapUI-5.2.1/bin ./soapui.sh haodeMBP:bin hao$ pwd /Users/hao/Downloads/SoapUI-5.2.1-mac-bin/SoapUI-5.2.1/bin haodeMBP:bin hao$ ls SoapUI-Spashscreen.png installationcomplete.sh mockservicerunner.sh soapui-errors.log soapui.sh toolrunner.sh wargenerator.sh actions listeners securitytestrunner.sh soapui-log4j.xml starter-page.html uninstallactiontrack.sh ext loadtestrunner.sh soapui-5.2.1.jar soapui.log testrunner.sh updateinstallation.sh haodeMBP:bin hao$ ./soapui.sh  SOAPUI_HOME /Users/hao/Downloads/SoapUI-5.2.1-mac-bin/SoapUI-5.2.1 Configuring log4j from [/Users/hao/Downloads/SoapUI-5.2.1-mac-bin/SoapUI-5.2.1/bin/soapui-log4j.xml] 16:26:15,406 INFO  [DefaultSoapUICore] Creating new settings at [/Users/hao/soapui-settings.xml] SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder. SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 16:26:16,523 INFO  [PluginManager] 0 plugins loaded in 3 ms 16:26:16,523 INFO  [DefaultSoapUICore] All plugins loaded Configuring log4j from [/Users/hao/Downloads/SoapUI-5.2.1-mac-bin/SoapUI-5.2.1/bin/soapui-log4j.xml] 16:26:16,729 INFO  [DefaultSoapUICore] Creating new settings at [/Users/hao/soapui-settings.xml] 16:26:16,740 INFO  [PluginManager] 0 plugins loaded in 0 ms 16:26:16,740 INFO  [DefaultSoapUICore] All plugins loaded 16:26:23,688 INFO  [DefaultSoapUICore] Defaulting to native LF for Mac OS X 16:26:23,740 INFO  [SoapUI] Used java version: 1.8.0_181 16:28:17,764 INFO  [SchemaUtils] Added default schema from file:/Users/hao/Downloads/SoapUI-5.2.1-mac-bin/SoapUI-5.2.1/bin/soapui-5.2.1.jar!/com/eviware/soapui/resources/xsds/xop.xsd with targetNamespace http://www.w3.org/2004/08/xop/include 16:28:17,781 INFO  [SchemaUtils] Added default schema from file:/Users/hao/Downloads/SoapUI-5.2.1-mac-bin/SoapUI-5.2.1/bin/soapui-5.2.1.jar!/com/eviware/soapui/resources/xsds/XMLSchema.xsd with targetNamespace http://www.w3.org/2001/XMLSchema 16:28:17,782 INFO  [SchemaUtils] Added default schema from file:/Users/hao/Downloads/SoapUI-5.2.1-mac-bin/SoapUI-5.2.1/bin/soapui-5.2.1.jar!/com/eviware/soapui/resources/xsds/xml.xsd with targetNamespace http://www.w3.org/XML/1998/namespace 16:28:17,782 INFO  [SchemaUtils] Added default schema from file:/Users/hao/Downloads/SoapUI-5.2.1-mac-bin/SoapUI-5.2.1/bin/soapui-5.2.1.jar!/com/eviware/soapui/resources/xsds/swaref.xsd with targetNamespace http://ws-i.org/profiles/basic/1.1/xsd 16:28:17,783 INFO  [SchemaUtils] Added default schema from file:/Users/hao/Downloads/SoapUI-5.2.1-mac-bin/SoapUI-5.2.1/bin/soapui-5.2.1.jar!/com/eviware/soapui/resources/xsds/xmime200505.xsd with targetNamespace http://www.w3.org/2005/05/xmlmime 可见启动之后就打开了对应的应用程序窗口。 至于工具的使用我向来觉得是不用看教程任何工具拿上来随便点两下就明白了这个soapUI也是一样的。   其实方法这里已经写的很清楚了而且没什么问题。照着操作即可。 以上是原创下面这一段是摘录的。 测试操作步骤如下   (1)首先找到cxf-webservice.xml配置信息中地址在浏览器中出入http://127.0.0.1:8080/ssg?wsdl会生成文档说明直接给要对接的用户即可 jaxws:endpoint idssg implementorcn.exchange.cxf.DataExchangeWebServiceImpladdresshttp://127.0.0.1:8080/ssg/jaxws:endpoint   (2)使用soapUI测试接口   注意在测试之前要先开启接口项目   ①在接口项目开启之后打开工具soapUi新建(file→create empty project),如下图所示   ②右击工程project——add wsdl,如下图所示   打开如下图的页面   ③然后进入如下页面(修改应该双击request1)   双击request1出现如下的窗口     ④在?号处输入相关的参数点击运行如果右侧空白没有出现错误的信息说明接口方法可以使用   测试失败如下所示(对于不同的项目可能提示信息有所不同要视情况而定这里不是绝对的结果)   测试成功如下图(对于不同的项目可能提示信息有所不同要视情况而定这里不是绝对的结果)   可见WSDL的测试相对比较简单如果没接触过的话花几分钟看下就会明白。 如上。   --20180912 15:49于沪 长宁白猫科技园
http://www.yutouwan.com/news/491485/

相关文章:

  • asp网站500错误公司网站模版 dedecms
  • 兴国网站建设电子商务网站建设招标书
  • 郑州网站快速制作游戏推广员判几年
  • 网站开发的流程是etc工程承包模式
  • 企业网站seo优化网站超级链接怎么做
  • 网站建设运营策划书企业建设网站有什么作用
  • 深圳有哪些网站是做餐饮沙龙的什么网站可以销售自己的产品
  • 网站建设策划稿企业公司网页
  • 公司制作网站申请一个电子邮箱号
  • 有教做路桥质检资料的网站吗wordpress建站教程pdf
  • 主流门户网站有哪些有自己的网站做淘宝联盟号做吗
  • 广州做网站费用如何做摄影网站
  • 创意产品网站优质的网站制作
  • 上海做高端网站建什么是可信网站
  • 新网站如何做推广边个网站可以接模具做
  • 南昌网站建设_南昌做网站公司顺德高端网站建设
  • 广东省建设教育协会官方网站首页宁德东侨建设局网站
  • 北京市官方网站网站的定位分析
  • 做淘宝客怎么建网站网站排名如何提升
  • 让自己的电脑做网站的服务器如何防范恶意网站
  • 关于数据机房建设的网站用wordpress搭建娱乐网
  • 如何做漂亮的网站首页大连企业网站建设
  • 家具网站怎么做招聘类网站该怎么做
  • 最专业的营销网站建设公司哪家好合肥网站优化搜索
  • 免费网站建设品牌中企网站案例
  • 网站建设技术选择优秀网站大全
  • 网站产品展示系统物业公司网站建设策划书
  • 云南火电建设有限公司网站企业网站建设服务好
  • 网站开发 文学九江门户网站建设
  • seo网站服务公司网页找什么公司维护