com.resilientedge.util.soap
Class JavaToSchema

java.lang.Object
  |
  +--com.resilientedge.util.soap.JavaToSchema

public class JavaToSchema
extends java.lang.Object

A very basic xsd schema generator that takes classe(s) and generates an xsd file for them. Functionality will need to be added as we write more complex objects. This generator will handle basic Java objects to create complexType xsd definitions This can then be used in the message/port specification and the binding/service specification for a WSDL file. TODO: (UGH, this is UGLY!!!!)make it use an xml element structure like the other utils in this package ( as done in JavaToMessageAndPorts, etc) now that we have the basic syntax down and working...FINISH IMPLEMENTATION AS TIME ALLOWS


Constructor Summary
JavaToSchema()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void writeSchema(java.lang.String serviceName, java.lang.String companyUrl, java.util.ArrayList javaClasses, java.lang.String outputFile)
          writeSchema is the main entry point to the class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaToSchema

public JavaToSchema()
Method Detail

writeSchema

public void writeSchema(java.lang.String serviceName,
                        java.lang.String companyUrl,
                        java.util.ArrayList javaClasses,
                        java.lang.String outputFile)
writeSchema is the main entry point to the class. Creates an .xsd output file based on a java class(es)
Parameters:
serviceName - a String name ( i.e. "QuoteService" )
companyUrl - a String for the deployment location (i.e. "http://www.mycompany/" )
javaClasses - an ArrayList of java classes to generate xsd for...
outputFile - a String file name to put the xsd output into

main

public static void main(java.lang.String[] args)


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.