axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "PENPRAPA MUNKID" <miss_no...@hotmail.com>
Subject RE: Regarding importing XML Schema files...
Date Fri, 23 Jan 2004 05:17:23 GMT

more info
www.naraicoms.com

>From: "Wagh, Shrikant" <shrikant.wagh@hp.com>
>Reply-To: axis-dev@ws.apache.org
>To: <axis-user@ws.apache.org>, <axis-dev@ws.apache.org>
>CC: "Wagh, Shrikant" <shrikant.wagh@hp.com>
>Subject: RE: Regarding importing XML Schema files...
>Date: Thu, 22 Jan 2004 15:23:57 -0600
>
>Hi Somesh,
>
>
>
>Here is the sample for your scenario.
>
>
>
>WSDL excerpts
>
>-----------------------
>
><?xml version="1.0" encoding="UTF-8"?>
>
><definitions targetNamespace="http://wstesting.com"
>xmlns="http://schemas.xmlsoap.org/wsdl/"
>
>xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
>xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
>xmlns:eprofile="http://wstesting.com"
>
>xmlns:tns0="http://wstesting.com/eProfileService"
>
>xmlns:tns1="http://wstesting.com/CreateProfile"
>xmlns:tns2="http://wstesting.com/UpdateProfile"
>xmlns:tns3="http://wstesting.com/RetrieveProfile"
>xmlns:tns4="http://wstesting.com/RetrieveTemplate"
>xmlns:tns5="http://wstesting.com/RetrieveTemplateAndProfile"
>xmlns:tns6="http://wstesting.com/CheckTemplate">
>
>
>
><types>
>
>             <schema
>targetNamespace="http://wstesting.com/eProfileService"
>xmlns="http://www.w3.org/2001/XMLSchema">
>
>
>
>             <import namespace="http://wstesting.com/CreateProfile"
>schemaLocation="http://localhost:8070/CreateProfile.xsd"/>
>
>             <import namespace="http://wstesting.com/UpdateProfile"
>schemaLocation="http://localhost:8070/UpdateProfile.xsd"/>
>
>             <import namespace="http://wstesting.com/RetrieveProfile"
>schemaLocation="http://localhost:8070/RetrieveProfile.xsd"/>
>
>             <import namespace="http://wstesting.com/RetrieveTemplate"
>schemaLocation="http://localhost:8070/RetrieveTemplate.xsd"/>
>
>             <import
>namespace="http://wstesting.com/RetrieveTemplateAndProfile"
>schemaLocation="http://localhost:8070/RetrieveTemplateAndProfile.xsd"/>
>
>             <import namespace="http://wstesting.com/CheckTemplate"
>schemaLocation="http://localhost:8070/CheckTemplate.xsd"/>
>
>
>
>                         <element name="eProfileHeader"
>type="tns0:eProfileHeader"/>
>
>                         <complexType name="eProfileHeader">
>
>                                     <sequence>
>
>                                                 <element minOccurs="1"
>maxOccurs="1" name="ApplicationID" type="xsd:string"/>
>
>                                                 <element minOccurs="0"
>maxOccurs="1" name="LanguageCode" type="xsd:string"/>
>
>                                                 <element minOccurs="1"
>maxOccurs="1" name="TemplateID" type="xsd:string"/>
>
>                                     </sequence>
>
>                         </complexType>
>
>
>
>                         <element name="createProfileReturn"
>type="xsd:anyType"/>
>
>
>
>                         <element name="updateProfileReturn"
>type="xsd:anyType"/>
>
>
>
>                         <element name="retrieveProfileReturn"
>type="xsd:anyType"/>
>
>
>
>                         <element name="retrieveTemplateReturn"
>type="xsd:anyType"/>
>
>
>
>                         <element name="retrieveTemplateAndProfileReturn"
>type="xsd:anyType"/>
>
>
>
>                         <element name="checkTemplateReturn"
>type="xsd:anyType"/>
>
>             </schema>
>
></types>
>
>
>
>   <message name="createProfileRequestMessage">
>
>     <part element="tns1:UserProfile" name="createProfile"/>
>
>   </message>
>
>   <message name="createProfileResponseMessage">
>
>     <part element="tns0:createProfileReturn"
>name="createProfileReturn"/>
>
>   </message>
>
>   <message name="createProfileHeaderMessage">
>
>     <part element="tns0:eProfileHeader" name="eProfileHeader"/>
>
>   </message>
>
>
>
>Sample schema which is imported in this wsdl file, which
>imports/includes another schema
>
>
>
><?xml version="1.0" encoding="utf-8" ?>
>
>
>
>  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
>targetNamespace="http://wstesting.com/RetrieveTemplateAndProfile>
>
>  <xs:include schemaLocation="ApplicationTemplate.xsd"/>
>
>  <xs:include schemaLocation="Profile.xsd"/>
>
>
>
>  <xs:element name="ApplicationTemplateAndUserProfile">
>
>   <xs:complexType>
>
>     <xs:sequence>
>
>             <xs:element ref="ApplicationTemplate"/>
>
>             <xs:element ref="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:
>
>-----------------------------------------------------
>
>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 <http://www.optimyz.com/>
>.
>
>
>
>DISCLAIMER
>
>================================================================
>
>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.
>
>
>
>=================================================================
>
>
>
>
>
>-----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
>
>
>

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


Mime
View raw message