Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Wtp-wst-dev] Using a XSD to create a WSDL in Eclipse


You need to <import> the XSD in the <types> section of the WSDL to make the types available in the WSDL. See [1], e.g.

<?xml version="1.0" ?>
<wsdl:definitions targetNamespace="urn:listing2"
                 xmlns:tns="urn:listing2"
                 xmlns:listing3="urn:listing3"
                 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
 <wsdl:types>
   <xsd:schema targetNamespace="urn:listing2"
               xmlns:listing3="urn:listing3"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     <xsd:import namespace="urn:listing3" schemaLocation="listing3.xsd"


BTW - since this is not a WTP development question, you should ask this on the newsgroup. [2]

[1] http://www.ibm.com/developerworks/xml/library/ws-tip-imports.html
[2] http://www.eclipse.org/newsportal/thread.php?group=eclipse.webtools

Arthur Ryman, Technical Executive (IBM DE)
Project and Portfolio Management, Rational Division

phone:      +1-905-413-3077, TL 313-3077
assistant: +1-905-413-3831, TL 313-3831
fax:            +1-905-413-4920, TL 313-4920
mobile:     +1-416-939-5063



webman82 <jasonjdeacon@xxxxxxxxx>
Sent by: wtp-wst-dev-bounces@xxxxxxxxxxx

09/01/2008 07:01 PM

Please respond to
"Web Standard Tools developer discussions." <wtp-wst-dev@xxxxxxxxxxx>

To
wtp-wst-dev@xxxxxxxxxxx
cc
Subject
[Wtp-wst-dev] Using a XSD to create a WSDL in Eclipse








Hi, I am using Eclipse(3.3.0) and the WST(2.0.0) to create a WSDL.
I have managed to create a skeleton WSDL no problem.

I also have an xsd of the input/output (request/response) complex types to
be used as the parameters
of the operations messages.
When I try to define the I/O I only have the option of creating new types.
What I would like to do is use the xsd and select the existing types option
to define the message parameters.

How can I 'attach' the xsd so that I can use the types defined within it in
my WSDL?

thanks.
--
View this message in context: http://www.nabble.com/Using-a-XSD-to-create-a-WSDL-in-Eclipse-tp19254787p19254787.html
Sent from the Eclipse WST - Dev mailing list archive at Nabble.com.

_______________________________________________
wtp-wst-dev mailing list
wtp-wst-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-wst-dev


Back to the top