Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 97482 invoked from network); 22 Jan 2004 21:48:24 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 22 Jan 2004 21:48:24 -0000 Received: (qmail 82690 invoked by uid 500); 22 Jan 2004 21:48:08 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 82670 invoked by uid 500); 22 Jan 2004 21:48:08 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 82648 invoked from network); 22 Jan 2004 21:48:08 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3E12E.0B755F10" Subject: RE: Regarding importing XML Schema files... Date: Thu, 22 Jan 2004 15:23:57 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Regarding importing XML Schema files... Thread-Index: AcPhGcwbjyzJsFY8QxeRAxDKDWRvMQAEn7Hw From: "Wagh, Shrikant" To: , Cc: "Wagh, Shrikant" X-OriginalArrivalTime: 22 Jan 2004 21:23:58.0385 (UTC) FILETIME=[0C136A10:01C3E12E] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C3E12E.0B755F10 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Somesh, =20 Here is the sample for your scenario. =20 WSDL excerpts ----------------------- =20 =20 = =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 Sample schema which is imported in this wsdl file, which imports/includes another schema =20 =20 =20 =20 =20 =20 Hope this helps. =20 Thanks, Shrikant Wagh QA Lead, HPP/Eprofile, HP =20 For those who are interested in Web Services testing: ----------------------------------------------------- I found that WebServiceTester from Optimyz software is a very good tool for testing any types of web services, and I'm great fan of this tool. It supports all types of web services, and all simple and complex types and it very usable than any other tool in the market I ever used/evaluated. It automatically generates the SOAP requests and invokes the intended web services. It can perform functional, regression and load testing of web services. Result analysis and status reporting is just wonderful. I'll highly recommend this tool for testing web services, saves lots of time and efforts in testing web services. For more information visit http://www.optimyz.com .=20 =20 DISCLAIMER=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D THESE ARE MY PERSONAL VIEWS/OPINIONS AND DOES NOT REPRESENT HP, AND THE INFORMATION PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE I/HP BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS INFORMATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.=20 =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 =20 -----Original Message----- From: Marepalli, Somesh [mailto:Somesh.Marepalli@ca.com]=20 Sent: Thursday, January 22, 2004 10:59 AM To: axis-user@ws.apache.org Subject: Regarding importing XML Schema files... =20 Hi: In my WSDL - I need to import a .xsd file which needs to import another .xsd file What is the correct way (per WS-I) checks to make Axis import these files? Any e.g.s. would be most appreciated =20 regards Somesh Marepalli Software Engineer, CleverPath Analytics Dev tel: +1 216 643-9214 somesh.marepalli@ca.com =20 ------_=_NextPart_001_01C3E12E.0B755F10 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi Somesh,

 

Here is the sample for your = scenario.

 

WSDL excerpts

-----------------------

<?xml version=3D"1.0" encoding=3D"UTF-8"?>

<definitions = targetNamespace=3D"http://wstesting.com" xmlns=3D"http://schemas.xmlsoap.org/wsdl/"

xmlns:wsdl=3D"http://schemas.xm= lsoap.org/wsdl/" xmlns:wsdlsoap=3D"http://schemas.xmlsoap.org/wsdl/soap/" = xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema"

xmlns:eprofile=3D"http://wstest= ing.com"

xmlns:tns0=3D"http://wstesting.= com/eProfileService"

xmlns:tns1=3D"http://wstesting.= com/CreateProfile" xmlns:tns2=3D"http://wstesting.com/UpdateProfile" xmlns:tns3=3D"http://wstesting.com/RetrieveProfile" xmlns:tns4=3D"http://wstesting.com/RetrieveTemplate" xmlns:tns5=3D"http://wstesting.com/RetrieveTemplateAndProfile" xmlns:tns6=3D"http://wstesting.com/CheckTemplate">

 

<types>

      =       <schema targetNamespace=3D"http://wstesting.com/eProfileService" = xmlns=3D"http://www.w3.org/2001/XMLSchema">

      =      

      =       <import namespace=3D"http://wstesting.com/CreateProfile" = schemaLocation=3D"http://localhost:8070/CreateProfile.xsd"/>=

      =       <import namespace=3D"http://wstesting.com/UpdateProfile" = schemaLocation=3D"http://localhost:8070/UpdateProfile.xsd"/>=

      =       <import namespace=3D"http://wstesting.com/RetrieveProfile" = schemaLocation=3D"http://localhost:8070/RetrieveProfile.xsd"/&g= t;

      =       <import namespace=3D"http://wstesting.com/RetrieveTemplate" = schemaLocation=3D"http://localhost:8070/RetrieveTemplate.xsd"/&= gt;

      =       <import namespace=3D"http://wstesting.com/RetrieveTemplateAndProfile" schemaLocation=3D"http://localhost:8070/RetrieveTemplateAndProfile.x= sd"/>

      =       <import namespace=3D"http://wstesting.com/CheckTemplate" = schemaLocation=3D"http://localhost:8070/CheckTemplate.xsd"/>=

 

      =             &= nbsp;     <element name=3D"eProfileHeader" = type=3D"tns0:eProfileHeader"/>

   =             &= nbsp;        <complexType name=3D"eProfileHeader">

    =             &= nbsp;           &n= bsp;       = <sequence>

      =                       &= nbsp;           &n= bsp;       <element minOccurs=3D"1" maxOccurs=3D"1" = name=3D"ApplicationID" type=3D"xsd:string"/>

      =                   =             &= nbsp;           = <element minOccurs=3D"0" maxOccurs=3D"1" = name=3D"LanguageCode" type=3D"xsd:string"/>

      =                       &= nbsp;           &n= bsp;       <element minOccurs=3D"1" maxOccurs=3D"1" = name=3D"TemplateID" type=3D"xsd:string"/>

    =             &= nbsp;           &n= bsp;       = </sequence>

   =             &= nbsp;        = </complexType>

      =      

      =             &= nbsp;     <element name=3D"createProfileReturn" = type=3D"xsd:anyType"/>

      =      

      =             &= nbsp;     <element name=3D"updateProfileReturn" = type=3D"xsd:anyType"/>

 

      =             &= nbsp;     <element name=3D"retrieveProfileReturn" = type=3D"xsd:anyType"/>

      =      

      =             &= nbsp;     <element name=3D"retrieveTemplateReturn" = type=3D"xsd:anyType"/>

      =      

      =             &= nbsp;     <element name=3D"retrieveTemplateAndProfileReturn" = type=3D"xsd:anyType"/>

      =             &= nbsp;    

      =             &= nbsp;     <element name=3D"checkTemplateReturn" = type=3D"xsd:anyType"/>

      =       </schema>

</types>

 

  <message = name=3D"createProfileRequestMessage">

    <part element=3D"tns1:UserProfile" = name=3D"createProfile"/>

  = </message>

  <message = name=3D"createProfileResponseMessage">

    <part element=3D"tns0:createProfileReturn" = name=3D"createProfileReturn"/>

  = </message>

  <message = name=3D"createProfileHeaderMessage">

    <part element=3D"tns0:eProfileHeader" = name=3D"eProfileHeader"/>

  = </message>

 

Sample schema which is imported in this wsdl file, which imports/includes = another schema

 

<?xml version=3D"1.0" encoding=3D"utf-8" ?>

 

 <xs:schema = xmlns:xs=3D"http://www.w3.org/2001/XMLSchema" targetNamespace=3D"http://wstesting.com/RetrieveTemplateAndProfile&g= t;

 <xs:include = schemaLocation=3D"ApplicationTemplate.xsd"/>

 <xs:include = schemaLocation=3D"Profile.xsd"/>

 

 <xs:element = name=3D"ApplicationTemplateAndUserProfile">

  = <xs:complexType>

    = <xs:sequence>   

   =          <xs:element ref=3D"ApplicationTemplate"/>

      =       <xs:element ref=3D"UserProfile"/>

 </xs:sequence> =

 </xs:complexType>=

 </xs:element>

</xs:schema>

=

 

Hope this helps.

 

Thanks,

Shrikant Wagh

QA Lead, HPP/Eprofile, HP

 

For those who are interested in Web Services = testing:

-----------------------------------------------------<= /font>

I found that WebServiceTester from Optimyz software is a = very good tool for testing any types of web services, and I'm great fan of this = tool. It supports all types of web services, and all simple and complex types and = it very usable than any other tool in the market I ever used/evaluated. It automatically generates the SOAP requests and invokes the intended web services. It can perform functional, regression and load testing of web services. Result analysis and status reporting is just wonderful.  = I'll highly recommend this tool for testing web services, saves lots of time = and efforts in testing web services. For more information visit http://www.optimyz.com.

 

DISCLAIMER

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

THESE ARE MY PERSONAL VIEWS/OPINIONS AND DOES NOT REPRESENT = HP, AND THE INFORMATION PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED = WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY = AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL = THE I/HP BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, = OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF = SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS = INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, = STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY = WAY OUT OF THE USE OF THIS INFORMATION, EVEN IF ADVISED OF THE POSSIBILITY OF = SUCH DAMAGE.

 

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

 

 

-----Original = Message-----
From: Marepalli, Somesh [mailto:Somesh.Marepalli@ca.com]
Sent:
Thursday, January 22, 2004 10:59 = AM
To: = axis-user@ws.apache.org
Subject: Regarding = importing XML Schema files...

 

Hi:

   In my = WSDL  - I need to import a .xsd file which needs to import another .xsd = file

   What is the = correct way (per WS-I) checks to make Axis import these files?

   Any e.g.s. = would be most appreciated

 

regards

Somesh = Marepalli

Software Engineer, = CleverPath Analytics Dev

tel: +1 216 = 643-9214

somesh.marepalli@ca.com

 

=00 ------_=_NextPart_001_01C3E12E.0B755F10--