Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

create wsdl in eclipse editor  RSS feed

 
ujwwala tem
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exception in thread "main" java.lang.NoClassDefFoundError: Files\K-Lite it is the error
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!