Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Wtp-wst-dev] WST and WSDL : basic questions


Hi Pierre,

This mailing list is for developers working on the WST tools. For general questions please use the web tools newsgroup. To get access to the newsgroup you can start here http://www.eclipse.org/newsgroups/index.php register for a password then look for the web tools newsgroup. The web version is here http://www.eclipse.org/newsportal/thread.php?group=eclipse.webtools, but you can use any news reader.


WTP only supports WSDL 1.1 - it does not support WSDL 2.0 and there is no WSDL 1.4. You are perhaps confusing the specification version 1.1 with the version of the WSDL4J component. WSDL4J is the reference implementation of the JWSDL API http://sourceforge.net/projects/wsdl4j. JWSDL/WSDL4J allow our tools to manipulate WSDL definitions programmatically from Java.

Regarding your schema import question: the value of the schema import namespace attribute must match the value of the targetNamespace attribute of the schema you are trying to import. Also if the value of the schemaLocation attribute is a remote location then that location should be accessible and a schema must be located there. There are a few ways to work around that, for example using a workspace relative location or using the XML catalog.

Let's move the conversation to the newsgroup and perhaps there you could attach some simple examples of files that don't work and I'll try to help further.

Regards,
Valentin Baciu
IBM Rational XML Web Services Tools



From: "pierre betz" <piebetz@xxxxxxxxx>
To: wtp-wst-dev@xxxxxxxxxxx
Date: 04/14/2008 02:44 AM
Subject: [Wtp-wst-dev] WST and WSDL : basic questions





Hi everyone, after searching for a week on the web for informations,
I still don't have found what I want, so I mail here -hoping you will have the answers-.

I'm developping web services within eclipse using the wtp tools :
- Eclipse Version: 3.3.2
- WSDL validator plugin 1.1.201.v200706062140
- WST plugin 1.0.2.v200706120315
- Axis2 Codegen Wizard Plugin v 1.3.0

So now the questions :

First of all, I did not find any real answers about the versions of WSDL used by the plugins listed above. Can we use now the WSDL version 2 or wee need to stay on the 1.1 (or 1.4 ?).

Next, I have some problems during the validation of my WSDL file:

I have a WSDL file which include a schema from another document.
I really need a good example of how to include a schema because the w3 site or others have so lot a different descriptions I can't find the good one.

so basic infos :  
http://site.com/webservice/myWSDL.wsdl << my wsdl file
                       
http://site.com/schema/mySchema.xsd << my schema


and now the beginning of my wsdl file in which I want to import the schema :


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions
   xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/"
   xmlns:tns="
http://site.com/webservice/myWSDL.wsdl"
   xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/"
   xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
   name="CommonData"
   targetNamespace="
http://site.com/webservice/myWSDL.wsdl">
       
 <wsdl:types>
   <xsd:schema    targetNamespace="
http://site.com/schema/mySchema.xsd"
               xmlns:xsd="
http://www.w3.org/2001/XMLSchema">
       <import namespace="
http://site.com/schema/mySchema.xsd"
               schemaLocation="
http://site.com/schema/mySchema.xsd"/>    
               
   </xsd:schema>
       
 </wsdl:types>




So that is not working. First I don't know which version of wsdl it is, so I can't maybe use the good balises.
second, in lot of examples, the definitions are differents.
In the definitions, sometime the address of the xmlns:xxxx finish with a slash (" / "), sometimes not. Why and where do I nedd to put it ?

Same question in the types : schema and the import. Sometime in the examples they put the extension (.xsd), sometimes not.

Could somebody give me an example of a wsdl file ( just the beginning) with an import of schema ? and the version of wsdl he is using.

thanks a lot for the answers or links which could be useful, don't hesitate to ask me for more informations.









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


Back to the top