51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 5588|回复: 4
打印 上一主题 下一主题

[求助] WebService Import WSDL是出错问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2012-10-25 17:38:59 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
小弟用的是Loadrunner11测试SAOP协议的通讯,在improt WSDL service是报错了求高手指点。

建立的是webservice协议,在添加Manage Services->import WSDL URL时出错,WSDL可正常打开
实在搞不懂问题出在哪里,开发坚持说loadrunner有问题service没问题,难道真的有不支持的webservice吗?

在parsing阶段报错信息如下...
Thu Oct 25 09:00:46 GMT 2012: Start logging .....
Thu Oct 25 09:00:46 GMT 2012: WSDL - http://192.168.140.159:18080/AXD ... mentRepository?wsdl
Thu Oct 25 09:00:47 GMT 2012: WSDLException (at /definitions/types/xsd:schema[1]): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at 'DocumentRepository?xsd=schema/IHE/XDS.b_DocumentRepository.xsd', relative to 'http://192.168.140.159:18080/AXDS/services/DocumentRepository?wsdl'.: java.io.FileNotFoundException: This file was not found: http://192.168.140.159:18080/AXD ... umentRepository.xsd
Thu Oct 25 09:00:47 GMT 2012: WSDL2Java throw an exception:
com.mercury.ws.exception.LiterateException: WSDLException (at /definitions/types/xsd:schema[1]): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at 'DocumentRepository?xsd=schema/IHE/XDS.b_DocumentRepository.xsd', relative to 'http://192.168.140.159:18080/AXDS/services/DocumentRepository?wsdl'.: java.io.FileNotFoundException: This file was not found: http://192.168.140.159:18080/AXD ... umentRepository.xsd
        at com.mercury.ws.util.WSDL2JavaInvoker$NoneExitWSDL2Java.run(WSDL2JavaInvoker.java:358)
        at com.mercury.ws.util.WSDL2JavaInvoker.invoke(WSDL2JavaInvoker.java:84)
        at com.mercury.ws.generator.ProxyGenerator.generateProxy(ProxyGenerator.java:174)
Thu Oct 25 09:00:47 GMT 2012: WSDLException (at /definitions/types/xsd:schema[1]): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at 'DocumentRepository?xsd=schema/IHE/XDS.b_DocumentRepository.xsd', relative to 'http://192.168.140.159:18080/AXDS/services/DocumentRepository?wsdl'.: java.io.FileNotFoundException: This file was not found: http://192.168.140.159:18080/AXD ... umentRepository.xsd
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

推荐
发表于 2012-10-26 17:33:41 | 只看该作者
囧 这能看出个啥子。。
看看出错信息,如果报:
Action.c(5): 错误: C interpreter run time error: Action.c (5):  Error -- memory violation : Exception ACCESS_VIOLATION received.
Action.c(5): 通知: CCI 跟踪: Action.c(5): web_service_call(0x00ee0272 "StepName=vote_102", 0x00ee023d "SOAPMethod=ISurveyServiceService.ISurvey...", 0x00ee0226 "ResponseParam=response", 0x00ee01e3 "WSDL=http://localhost:8080/CXF_Spring_Su...", 0x00ee01d5 "UseWSDLCopy=1", 0x00ee01bc "Sn.
Action.c(5): 通知: CCI 跟踪: apshot=t1212233850.inf", 0x00ee01ac "BEGIN_ARGUMENTS", 0x00ee019b "arg0=auto string", 0x00ee018c "arg1=123456789", 0x00ee017e "END_ARGUMENTS", 0x00ee0171 "BEGIN_RESULT", 0x00ee0166 "END_RESULT", 0x00ee0161 "LAST")
.
Action.c(5): 通知: CCI 跟踪: Compiled_code(0): Action()

错误的解决方法:

run-time 设置中选择“web services”- "客户端仿真"—“模拟特定的数据包”-“mssoap“
回复 支持 0 反对 1

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2012-10-26 09:10:26 | 只看该作者
补上出错的WSDL信息:
<definitions name="DocumentRepository" targetNamespace="urn:ihe:iti:xds-b:2007" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ihe="urn:ihe:iti:xds-b:2007" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:rs="urnasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/">
<documentation>IHE XDS.b Document Repository</documentation>

  <types>
    <xsd:schema elementFormDefault="qualified" targetNamespace="urn:ihe:iti:xds-b:2007" xmlns:ihe="urn:ihe:iti:xds-b:2007">
      <!-- Include the message schema -->
      <xsd:include schemaLocation="DocumentRepository?xsd=schema/IHE/XDS.b_DocumentRepository.xsd"/>
    </xsd:schema>
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2012-10-26 09:10:36 | 只看该作者
补上出错的WSDL信息:
<definitions name="DocumentRepository" targetNamespace="urn:ihe:iti:xds-b:2007" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ihe="urn:ihe:iti:xds-b:2007" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:rs="urnasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/">
<documentation>IHE XDS.b Document Repository</documentation>

  <types>
    <xsd:schema elementFormDefault="qualified" targetNamespace="urn:ihe:iti:xds-b:2007" xmlns:ihe="urn:ihe:iti:xds-b:2007">
      <!-- Include the message schema -->
      <xsd:include schemaLocation="DocumentRepository?xsd=schema/IHE/XDS.b_DocumentRepository.xsd"/>
    </xsd:schema>
回复 支持 反对

使用道具 举报

该用户从未签到

5#
 楼主| 发表于 2012-10-29 09:12:37 | 只看该作者
回复 4# yao815730501


    Hi yao815730501,

谢谢你的回复,我没找到你说修改路径,我用的是loadrunner11在 run-time设置里没找到web service。能在具体点吗~

我的错误是:
1. 新建脚本Protocols=Web Services。
2. Manage ?Services-> Import->输入WSDL.->点Import。
3. 然后就看到的出错信息
1) Parsing Error.
2) WSDLException (at /definitions/types/xsd:schema[1]): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at 'DocumentRepository?xsd=schema/IHE/XDS.b_DocumentRepository.xsd', relative to 'http://192.168.140.159:18080/AXDS/services/DocumentRepository?wsdl'.: java.io.FileNotFoundException: This file was not found: http://192.168.140.159:18080/AXD ... umentRepository.xsd
3) See detailed report in C:\Users\Troy\AppData\Local\Temp\noname9\WSDL\AxisToolkit.log(details report 就是我贴出来的信息)
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-9 04:48 , Processed in 0.069139 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表