guhy2000 发表于 2012-10-25 17:38:59

WebService Import WSDL是出错问题

小弟用的是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/AXDS/services/DocumentRepository?wsdl
Thu Oct 25 09:00:47 GMT 2012: WSDLException (at /definitions/types/xsd:schema): 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/AXDS/services/DocumentRepository?xsd=schema/IHE/XDS.b_DocumentRepository.xsd
Thu Oct 25 09:00:47 GMT 2012: WSDL2Java throw an exception:
com.mercury.ws.exception.LiterateException: WSDLException (at /definitions/types/xsd:schema): 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/AXDS/services/DocumentRepository?xsd=schema/IHE/XDS.b_DocumentRepository.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): 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/AXDS/services/DocumentRepository?xsd=schema/IHE/XDS.b_DocumentRepository.xsd

yao815730501 发表于 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“

guhy2000 发表于 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="urn:oasis: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>

guhy2000 发表于 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="urn:oasis: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>

guhy2000 发表于 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): 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/AXDS/services/DocumentRepository?xsd=schema/IHE/XDS.b_DocumentRepository.xsd
3) See detailed report in C:\Users\Troy\AppData\Local\Temp\noname9\WSDL\AxisToolkit.log(details report 就是我贴出来的信息)
页: [1]
查看完整版本: WebService Import WSDL是出错问题