Return-Path: Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 46953 invoked by uid 500); 23 Jun 2003 12:37:05 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 46941 invoked from network); 23 Jun 2003 12:37:04 -0000 Date: Mon, 23 Jun 2003 08:42:19 -0400 From: remko de knikker Subject: Re: Generating an XML Schema from WSDL To: axis-user@ws.apache.org Message-id: <3EF6F5AB.9090408@yale.edu> Organization: Yale Center for Medical Informatics MIME-version: 1.0 Content-type: multipart/alternative; boundary=------------040809020308060402020005 X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 References: <004e01c3397c$55b26b30$6f01a8c0@TPX21> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --------------040809020308060402020005 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I am using the tag in the wsdd file: eg. This will include the schema in the generated wsdl from the ?wsdl-query. I just haven't figured out how to include both input and output schema's. Does anyone know? remko Anne Thomas Manes wrote: >If you're using document/literal, then all of your elements should be >defined in the section already, which is defined using XML Schema. >You can simply extract the section. > >If you're using rpc/encoded or rpc/literal, then either you've defined the >type information in the structure, or you've defined the type >information in the section. If the former, then you need to take >that type information from the definition and recontruct it as an XML >Schema or definition. In either case you haven't >defined the element structure, so you also need to define that. > >I don't know of a tool that will automatically generate an XML Schema from a >WSDL description. > >I do suggest using Systinet WASP's java2wsdl tool (included with WASP Server >or WASP Developer -- both free for development purposes) to generate >doc/literal WSDL files from your Java code -- you can specify that you want >it to generate a full schema for you. > >Regards, >Anne > >----- Original Message ----- >From: "Tim Thorpe" >To: >Sent: Monday, June 23, 2003 4:09 AM >Subject: Generating an XML Schema from WSDL > > > > >>Hello ! >> >>Could anyone tell me if/how I can generate a W3C XML Schema from a WSDL >> >> >that > > >>I have produced ? >> >>I want to put everying from the messages down into the types/schema (not >> >> >the > > >>port, binding or service stuff). >> >>I use XML Spy as my XML editor, into which I have loaded the my WSDL >> >> >without > > >>error, & tried to use the 'Generate DTD/Schema' facility therein; many >>errors ensue, requiring the removal of the namespace prefixes within the >>WSDL, ultimitely leading to a 'nonsense' looking schema. >> >>Thanks, >>Tim >> >> >> > > > > --------------040809020308060402020005 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I am using the <WsdlInputSchema> tag in the wsdd file:
eg.
<parameter name="wsdlInputSchema" value="your_url/your_schema.xsd"/>

This will include the schema in the generated wsdl from the ?wsdl-query. I just haven't figured out how to include both input and output schema's.

Does anyone know?

remko

Anne Thomas Manes wrote:
If you're using document/literal, then all of your elements should be
defined in the <types> section already, which is defined using XML Schema.
You can simply extract the <schema> section.

If you're using rpc/encoded or rpc/literal, then either you've defined the
type information in the <message> structure, or you've defined the type
information in the <types> section. If the former, then you need to take
that type information from the <part> definition and recontruct it as an XML
Schema <simpleType> or <complexType> definition. In either case you haven't
defined the element structure, so you also need to define that.

I don't know of a tool that will automatically generate an XML Schema from a
WSDL description.

I do suggest using Systinet WASP's java2wsdl tool (included with WASP Server
or WASP Developer -- both free for development purposes) to generate
doc/literal WSDL files from your Java code -- you can specify that you want
it to generate a full schema for you.

Regards,
Anne

----- Original Message -----
From: "Tim Thorpe" <timothy.thorpe@criticalpath.net>
To: <axis-user@ws.apache.org>
Sent: Monday, June 23, 2003 4:09 AM
Subject: Generating an XML Schema from WSDL


  
Hello !

Could anyone tell me if/how I can generate a W3C XML Schema from a WSDL
    
that
  
I have produced ?

I want to put everying from the messages down into the types/schema (not
    
the
  
port, binding or service stuff).

I use XML Spy as my XML editor, into which I have loaded the my WSDL
    
without
  
error, & tried to use the 'Generate DTD/Schema' facility therein; many
errors ensue, requiring the removal of the namespace prefixes within the
WSDL, ultimitely leading to a 'nonsense' looking schema.

Thanks,
Tim

    


  

--------------040809020308060402020005--