Web服务 - WSDL无法下载XSD定义 [英] Web Service - WSDL not able to download XSD definition

查看:64
本文介绍了Web服务 - WSDL无法下载XSD定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要尽快解决以下问题。请帮助我。

关于合同优先开发的Web服务解决方案。

我们有Web服务开发的WSDL和XSD文件。在Web服务类中,我使用了属性
[ ValidationSchemaCache " ./ schemas" )]。现在我们有 SD schemas文件夹中的WSDL和XSD文件。当我在同一个wsdl文件中包含xsd定义,然后如果我运行任何客户端应用程序,如soapUI 3.0.1定位到schemas文件夹下的相同WSDL文件,它运行正常。

Hi All,

I need solution for the following issue as soon as possible. please help me.

on Contract first devlopment approach on Web Service solution.

we have got WSDL and XSD file for the web Service devlopment. At web Service class I used the attribute
[ValidationSchemaCache("./schemas")]. Now we have WSDL and XSD file in SD schemas folder. When I include xsd definition in same wsdl file and then if I run any client application like soapUI 3.0.1 targeting to same WSDL file under schemas folder it is running fine.

 

但是如果我在WSDL文件中使用以下import元素定位到XSD文件,则会出现错误,无法下载XSD文件。

 

以下是xml文件中的定义

 

< ?XML版本= QUOT; 1.0" encoding =" UTF-8"?>

< wsdl:definitions name =" myService"

&NBSP;&NBSP;&NBSP; 的targetNamespace = QUOT; HTTPS://xyz.com/services/myService/"

    targetNamespace="https://xyz.com/services/myService/"

&NBSP;&NBSP;&NBSP; 的xmlns:WSDL = QUOT; HTTP://schemas.xmlsoap.org/wsdl/"

    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

&NBSP;&NBSP;&NBSP; xmlns:tns =" https://xyz.com/services/myService/"

    xmlns:tns="https://xyz.com/services/myService/"

    的xmlns:XSD = QUOT; HTTP://www.w3.org/2001/XMLSchema"

    xmlns:xsd="http://www.w3.org/2001/XMLSchema"

&NBSP;&NBSP;&NBSP; xmlns:soap =" http://schemas.xmlsoap.org/wsdl/soap/">

    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">

    < xsd:import namespace =" https://xyz.com/services/myService/"

    <xsd:import namespace="https://xyz.com/services/myService/"

        schemaLocation =" DataTypes.xsd" />

        schemaLocation="DataTypes.xsd"/>

   

    < wsdl:types>< xsd:schema xmlns:xsd =" http://www.w3.org/2001/XMLSchema"

    <wsdl:types><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; targetNamespace =" https://xyz.com/services/myService/"

        targetNamespace="https://xyz.com/services/myService/"

        的xmlns:DNS = QUOT; HTTPS://xyz.com/services/myService/dataTypes"

        xmlns:dns="https://xyz.com/services/myService/dataTypes"

&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; >

        >

        < xsd:import namespace =" https://xyz.com/services/myService/dataTypes"

        <xsd:import namespace="https://xyz.com/services/myService/dataTypes"

&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; schemaLocation =" DataTypes.xsd" />

            schemaLocation="DataTypes.xsd"/>

         < xsd:element name =" GetIndicators">

        <xsd:element name="GetIndicators">

推荐答案

你使用什么命令行?此外,DataTypes.xsd与WSDL位于同一文件夹中。

BTW, ValidationSchemaCache 与此问题无关。
What command line are you using? Also, is DataTypes.xsd in the same folder as the WSDL.

BTW, ValidationSchemaCache does not matter to this question.


这篇关于Web服务 - WSDL无法下载XSD定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆