Java to XSD conversion

I need to convert a class to a XSD. Is there any tool which does this?

For example my class looks something like this.
package com.test;

import com.test.TestInput;
import com.test.TestOutput;

public class TestClass{

public TestOutput testClass(TestInput testInput){
return null;
}
}

TestInput
has setter/getters methods name/address

TestOutput
Has setters/getters methods for String results

When i convert to xsd it should create class details for TestClass, TestInput and TestOutput.

LVL 3
srivenkyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hoomanvCommented:
Look at JAXB, which has a tool called schemagen that might do what you need.
https://jaxb.dev.java.net/nonav/jaxb20-ea/docs/schemagen.html
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
There are two good ways one is  Apache XMLBeans, other being JAXB.

http://www.onjava.com/pub/a/onjava/2004/07/28/XMLBeans.html

http://roseindia.net/jaxb/r/jaxb.shtml
Mayank SAssociate Director - Product EngineeringCommented:
You can download XMLBeans from here:

http://xmlbeans.apache.org/
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

srivenkyAuthor Commented:
shivaspk:
          I couldn't find any tool that converts Java class to xsd in XMLBeans. I also tried installing jaxb. The schemagen doesn't work for me..It throws Java Invocatation Target Exception.

Mayank SAssociate Director - Product EngineeringCommented:
Did you try XMLBeans?
srivenkyAuthor Commented:
Yes, i tried XMLBeans too. I couldn't find any specific tool for converting a class to XSD in that. Finally i had to use WSAD and manually create schema for each of the classes.
GranModCommented:
PAQed with points refunded (500)

GranMod
Community Support Moderator

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.