aspose file tools
The moose likes Web Services and the fly likes create wsdl in eclipse editor Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "create wsdl in eclipse editor" Watch "create wsdl in eclipse editor" New topic
Author

create wsdl in eclipse editor

ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 68
Hello,

I am new to webservices and I am trying to create wsdl file in eclipse so I have craeted web project and example wsd file,I want to craete login application where in xsd I will craete all the data type and make an object of userType and in wsdl I have to import that xsd:

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/user" xmlns:tns="http://www.example.org/user" elementFormDefault="qualified">



<element name="User" type="tns:UserType"></element>

<complexType name="UserType">
<sequence>
<element name="FirstName" type="string">
</element>
<element name="LastName" type="string">
</element>
<element name="City" type="string"></element>
</sequence>
</complexType>
</schema>

So while creating wsdl I am confused as How to give the message name and all the futher parts,Please treply if there is any stps to create wsdl in eclipse steps:

Thanks,
Ujwwala
R Srini
Ranch Hand

Joined: Feb 19, 2010
Posts: 215
Hello. In order to create a WSDL by hand, you have to first understand the structure/organization of a WSDL document.

- This <a href="http://www.w3schools.com/wsdl/wsdl_intro.asp">w3schools web site</a> should set you up with the basics.
- This <a href="http://www.developer.com/services/article.php/1602051/WSDL-Essentials.htm">article</a> should help you understand that.
- And then, you can look at some WSDL examples at <a href="http://www.webservicex.net/WCF/default.aspx">WebserviceX</a>.
ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 68
Hi Srini,

Thanks for the reply,I have tried the example to create client from wsdl available on the web,

But here my requirement is I have to use castor+axis2+europa+tomcat5 where I have to create login.wsdl first by hand and then using wsdl I have to create java class using castor so I have only wsdl so can you please elaborate how to deploy that wsdl in server(here tomcat) and then create java clases,

Please Reply,

Thanks,
Ujwwala
R Srini
Ranch Hand

Joined: Feb 19, 2010
Posts: 215
Hi Ujjwala. Yes, in order to construct the WSDL, you need to understand its constructs, how they relate to each other and then how they are put together. If you follow the earlier links, you will have a good idea of that. Its not hard at all, but you have to try it out. You could even use Eclipse's built-in editor to create your WSDL.

As for using Castor with Axis2, you can find an example of this in the samples that come with your Axis2 download. Please search for "castor" in this web page.

As for installing your web service in tomcat, you can find instructions here in step 1 of "The Short Story" section. More details are in this page.
ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 68
Hi Srini,

I am doing the castor implemetation as per http://www.docstoc.com/docs/2137269/Castor-XML-Tutorial,

except my jdk is in:

My jdk is in c:\program file\java\jdk

so the same path I have given in SourceGen.bat as per the tutorial but its not working in command promt SourceGen command,

Please help,

Its saying c:\programs nor recognized as an interrnal command,

Regards,
Ujwwala
ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 68
Exception in thread "main" java.lang.NoClassDefFoundError: Files\K-Lite it is the error
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: create wsdl in eclipse editor
 
Similar Threads
Is Nillable same as an empty element
wsimport command error --Undefined symbol or complex type
java.io.IOException: Type {http://lang.java}Exception is referenced but not defined.
JAXB: Two xsd - Create single JAXBContext
help requied for <restriction base="ID">