Tools for generating java files
Hello!
I need a tool which can generate .java files (just like rmic generates _Stub.java files).
I know Velocity but i'm looking for something better. Can you help me?
Kuba Kr�likowski
rmic does not generate Stub and Skel .java
files, but it generates .class files.
(just a side-note)RMIC always produce .java files at first - you can keep them using -keep or -keepgenerated option!
Kuba
Similar Messages
-
Tool for generating properties files
Hello Experties,
I am wondering is there a tool or program for SAP to get SAP fields screen names from SAP backend for diffrent languages and generat the properties files?
for java uwl or webdynpro they are all the same properties file.
thanksWebDynpro i18n is done by .xlf files. Its an standard (http://en.wikipedia.org/wiki/Xliff) and there are some OSS editors available, just google xlf editor.Or check this one: http://okapi.opentag.com/applications.html#rainbow
The Idea is, that you give your xlf files to the translator and safe the results with a suffix representing the language (_de.xlf for german).
Hope this helps. -
Tools for generating WSDL file
I have created one Java Web Service in Apache Soap. Now I want to create the WSDL file so that my clients will
come to know what is my Web Service about. But I am not able to find any tool which will automatically generate
the WSDL file from the Java Class since my Web Service is purely written in Java. I came to know about GLUE but
was not able to find the link from where I could download it. Can anybody help me to find such tools?I dont want to use Axis. Even Glue has the same command to generate the WSDL file from Java. Do you have any
idea from where I could download Glue? -
XJC Tool - For building Java classes from Schema
Hi all,
I am using XJC tool for Building java classes from Schema.
Can we have any other tool for generating java classes from Schema?
Thanks in advance,
typurohitSolved my own problem and forgot to post the answer: the "xsd:import" is also considered as a targetNamespace, so each xsd:import needs a package specified as well when using oracg. It would be helpful if the Oracle documentation had stated that, but it does not point this out.
-
How to generate .java file from xml?
Does anyone have an idea of how i can generate .java file from xml file? Tools like jakrata digester, JOX are there but both of them are useful in populating java beans from xml. My requirement is to generate .java file from .xml with getters and setters methods for xml elements/attributes. I also tried JAXB. But JAXB generates bunch of files and most of them are interfaces, which is not going to work for me.
For e.g. i have following xml file and i want to generate Address.java file with getters/setters. Any ideas?
<?xml version='1.0' encoding='UTF-8' ?>
<Address>
<FirstName type="String"/>
<PoBox type="int"/>
</Address>
Thanks,
VickyCrosspost.
http://forum.java.sun.com/thread.jsp?thread=475564&forum=4&message=2205846 -
Graphic tool to generate java code
Does it exist any graphic tool that generates java code from the shapes? something like the form editor of Netbeans for example, or a plugin for other graphic editors like adobe photoshop...
tnx a lot
I tried to search through the the whole web or java.sun.com, but i cannot get less then 350000 sites...
WilPossibly free, of course :)
-
How to generate java file from WSDL file
Hi friends,
I am new to this thing, so that's why I need some guidence .
I need to generate java file programatically from existing wsdl file.
I thought the ways - to use xmlbeans apache library or jaxb.
Can you suggest what will be better way to generate java file from wsdl? can you please be more descriptive and can you direct me to appropriate link?
Thanks.
Harshitxmlbeans apache provides easiest way to create java file from wsdl there is very good link for that
http://www.ibm.com/developerworks/webservices/library/ws-soa-clientxmlbeans.html
If you want more programmatic approach then Jaxb will be a better option -
Hi,
I m in need of a tool for merging java code.Sould be a free ware.
Please suggest me.Look at this link : http://www.prescient.com/prod02.htm
Is this what you mean?
There is a trial version available. -
How to generate .xsd file using jaxb generated java files
Hi,
We need to upgrade our applicatio to jdk1.6 which has jaxb2.0 class files in it. Our application has java files generated from .xsd using jaxb1.0.2 version. At present we dont have .xsd or .xml file with us.
We decide to generate .xsd file by using jaxb1.0.2 generated java files. I tried using schemagen.exe given by jdk1.6 to generate .xsd file. It error out. Is there any other way to generate .xsd file ?
pls let me know.
thanks,
ThiruObject-XML mapping is a new feature in JAXB 2.0. Classes generated with JAXB 1.0 won't generate a schema.
Generate Java classes with JAXB 2.0 xjc.
http://www.theregister.co.uk/2006/09/22/jaxb2_guide/ -
Compile error with IDLJ generated java files.
When compiling the IDLJ generated java files, javac is not able to recognize org.omg.CORBA.ObjectHelper
classs. Looks like the import is not finding this class.
I have located these classes in rt.jar but including this jar in CLASSPATH gives
a version '48.0' is too recent error.
Thanks
RameshPLEASE IGNORE THIS MESSAGE. I HAVE RESOLVED THIS ISSUE.
"Ramesh Nadella" <[email protected]> wrote:
>
When compiling the IDLJ generated java files, javac is not able to recognize
org.omg.CORBA.ObjectHelper
classs. Looks like the import is not finding this class.
I have located these classes in rt.jar but including this jar in CLASSPATH
gives
a version '48.0' is too recent error.
Thanks
Ramesh -
Pre verify tool for wireless Java apps - HPUX
Hi wireless gurus,
1. Does Oracle ships a pre verify tool for wireless Java apps for HPUX platform with any of it's products.
2. Please let me know any such tool for HPUX, preferably with a free demo versionHi wireless gurus,
1. Does Oracle ships a pre verify tool for wireless Java apps for HPUX platform with any of it's products.What kind of pre-verify tools are you referring to?
If you are looking something to verify Java code in general, then Jdeveloper has some features built-in for this purpose.
The Oracle9IAS Wireless service designer allows you test, try, and debug wireless apps.
2. Please let me know any such tool for HPUX, preferably with a free demo version -
Tool for generating ER diagrams
Hi ,
I need a free tool for generating ER diagrams.
Using Tool TOAD i can do but, i Have 1000 objects in one schema where i need to generate er diagrams by grouping 10 objects at a time. to do so i need to uncheck the remaining Objects manually.
in additional TAOD is taking more time for generating er diagrams.
Please help me in this regard.
Thank You.
RajiniTry SQLModeler (see the SQLDeveloper web site on OTN).
-
Writing a java program for generating .pdf file with the data of MS-Excel .
Hi all,
My object is write a java program so tht...it'll generate the .pdf file after retriving the data from MS-Excel file.
I used POI HSSF to read the data from MS-Excel and used iText to generate .pdf file:
My Program is:
* Created on Apr 13, 2005
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
package forums;
import java.io.*;
import java.awt.Color;
import com.lowagie.text.*;
import com.lowagie.text.pdf.*;
import com.lowagie.text.Font.*;
import com.lowagie.text.pdf.MultiColumnText;
import com.lowagie.text.Phrase.*;
import net.sf.hibernate.mapping.Array;
import org.apache.poi.hssf.*;
import org.apache.poi.poifs.filesystem.*;
import org.apache.poi.hssf.usermodel.*;
import com.lowagie.text.Phrase.*;
import java.util.Iterator;
* Generates a simple 'Hello World' PDF file.
* @author blowagie
public class pdfgenerator {
* Generates a PDF file with the text 'Hello World'
* @param args no arguments needed here
public static void main(String[] args) {
System.out.println("Hello World");
Rectangle pageSize = new Rectangle(916, 1592);
pageSize.setBackgroundColor(new java.awt.Color(0xFF, 0xFF, 0xDE));
// step 1: creation of a document-object
//Document document = new Document(pageSize);
Document document = new Document(pageSize, 132, 164, 108, 108);
try {
// step 2:
// we create a writer that listens to the document
// and directs a PDF-stream to a file
PdfWriter writer =PdfWriter.getInstance(document,new FileOutputStream("c:\\weeklystatus.pdf"));
writer.setEncryption(PdfWriter.STRENGTH128BITS, "Hello", "World", PdfWriter.AllowCopy | PdfWriter.AllowPrinting);
// step 3: we open the document
document.open();
Paragraph paragraph = new Paragraph("",new Font(Font.TIMES_ROMAN, 13, Font.BOLDITALIC, new Color(0, 0, 255)));
POIFSFileSystem pofilesystem=new POIFSFileSystem(new FileInputStream("D:\\ESM\\plans\\weekly report(31-01..04-02).xls"));
HSSFWorkbook hbook=new HSSFWorkbook(pofilesystem);
HSSFSheet hsheet=hbook.getSheetAt(0);//.createSheet();
Iterator rows = hsheet.rowIterator();
while( rows.hasNext() ) {
Phrase phrase=new Phrase();
HSSFRow row = (HSSFRow) rows.next();
//System.out.println( "Row #" + row.getRowNum());
// Iterate over each cell in the row and print out the cell's content
Iterator cells = row.cellIterator();
while( cells.hasNext() ) {
HSSFCell cell = (HSSFCell) cells.next();
//System.out.println( "Cell #" + cell.getCellNum() );
switch ( cell.getCellType() ) {
case HSSFCell.CELL_TYPE_STRING:
String stringcell=cell.getStringCellValue ()+" ";
writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
phrase.add(stringcell);
// document.add(new Phrase(string));
System.out.print( cell.getStringCellValue () );
break;
case HSSFCell.CELL_TYPE_FORMULA:
String stringdate=cell.getCellFormula()+" ";
writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
phrase.add(stringdate);
System.out.print( cell.getCellFormula() );
break;
case HSSFCell.CELL_TYPE_NUMERIC:
String string=String.valueOf(cell.getNumericCellValue())+" ";
writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
phrase.add(string);
System.out.print( cell.getNumericCellValue() );
break;
default:
//System.out.println( "unsuported sell type" );
break;
document.add(new Paragraph(phrase));
document.add(new Paragraph("\n \n \n"));
// step 4: we add a paragraph to the document
} catch (DocumentException de) {
System.err.println(de.getMessage());
} catch (IOException ioe) {
System.err.println(ioe.getMessage());
// step 5: we close the document
document.close();
My Input from MS-Excel file is:
Planning and Tracking Template for Interns
Name of the Intern N.Kesavulu Reddy
Project Name Enterprise Sales and Marketing
Description Estimated Effort in Hrs Planned/Replanned Actual Actual Effort in Hrs Complexity Priority LOC written new & modified % work completion Status Rework Remarks
S.No Start Date End Date Start Date End Date
1 setup the configuration 31/01/2005 1/2/2005 31/01/2005 1/2/2005
2 Deploying an application through Tapestry, Spring, Hibernate 2/2/2005 2/2/2005 2/2/2005 2/2/2005
3 Gone through Componentization and Cxprice application 3/2/2005 3/2/2005 3/2/2005 3/2/2005
4 Attend the sessions(tapestry,spring, hibernate), QBA 4/2/2005 4/2/2005 4/2/2005 4/2/2005
The o/p I'm gettint in .pdf file is:
Planning and Tracking Template for Interns
N.Kesavulu Reddy Name of the Intern
Enterprise Sales and Marketing Project Name
Remarks Rework Status % work completion LOC written new & modified Priority
Complexity Actual Effort in Hrs Actual Planned/Replanned Estimated Effort in Hrs Description
End Date Start Date End Date Start Date S.No
38354.0 31/01/2005 38354.0 31/01/2005 setup the configuration 1.0
38385.0 38385.0 38385.0 38385.0 Deploying an application through Tapestry, Spring, Hibernate
2.0
38413.0 38413.0 38413.0 38413.0 Gone through Componentization and Cxprice application
3.0
38444.0 38444.0 38444.0 38444.0 Attend the sessions(tapestry,spring, hibernate), QBA 4.0
The issues i'm facing are:
When it is reading a row from MS-Excel it is writing to the .pdf file from last cell to first cell.( 2 cell in 1 place, 1 cell in 2 place like if the row has two cells with data as : Name of the Intern: Kesavulu Reddy then it is writing to the .pdf file as Kesavulu Reddy Name of Intern)
and the second issue is:
It is not recognizing the date format..it is recognizing the date in first row only......
Plz Tell me wht is the solution for this...
Regards
[email protected]Don't double post your question:
http://forum.java.sun.com/thread.jspa?threadID=617605&messageID=3450899#3450899
/Kaj -
Unable to compile the JAXB generated java files
Hi
I am using JAXB 2.0 API for binding process.
I have products.xml file as
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE PRODUCTDATA SYSTEM "products.dtd">
<PRODUCTDATA>
<PRODUCT PRODID="P001" CATEGORY="Books">
<PRODUCTNAME>Gone with the wind</PRODUCTNAME>
<DESCRIPTION>This is abt American Civil War</DESCRIPTION>
<PRICE>25.00</PRICE>
<QUANTITY>3</QUANTITY>
</PRODUCT>
</PRODUCTDATA>
and products.xsd(Schema file) as
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="PRODUCTDATA" type="prdt"/>
<xsd:complexType name="prdt">
<xsd:sequence>
<xsd:element name="PRODUCT" type="prd" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="prd">
<xsd:sequence>
<xsd:element name="PRODUCTNAME" type="xsd:string"/>
<xsd:element name="DESCRIPTION" type="xsd:string"/>
<xsd:element name="PRICE" type="xsd:positiveInteger"/>
<xsd:element name="QUANTITY" type="xsd:nonNegativeInteger"/>
</xsd:sequence>
<xsd:attribute name="PRODID" type="pid" use="required"/>
<xsd:attribute name="CATEGORY" type="xsd:string" use="optional"/>
</xsd:complexType>
<xsd:simpleType name="pid">
<xsd:restriction base="xsd:string">
<xsd:pattern value="[p]{1}/d{3}"/>
<xsd:length value="4"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
I am converting these schema file to java files by using binding compiler xjc.
So that three java files are genearated automatically.
1) ObjectFactory.java
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2008.06.23 at 04:09:25 PM IST
package testing.jaxb;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the testing.jaxb package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
@XmlRegistry
public class ObjectFactory {
private final static QName PRODUCTDATAQNAME = new QName("", "PRODUCTDATA");
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: testing.jaxb
public ObjectFactory() {
* Create an instance of {@link Prd }
public Prd createPrd() {
return new Prd();
* Create an instance of {@link Prdt }
public Prdt createPrdt() {
return new Prdt();
* Create an instance of {@link JAXBElement }{@code <}{@link Prdt }{@code >}}
@XmlElementDecl(namespace = "", name = "PRODUCTDATA")
public JAXBElement<Prdt> createPRODUCTDATA(Prdt value) {
return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value);
2)Prdt.java
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2008.06.23 at 04:09:25 PM IST
package testing.jaxb;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
* <p>Java class for prdt complex type.
* <p>The following schema fragment specifies the expected content contained within this class.
* <pre>
* <complexType name="prdt">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="PRODUCT" type="{}prd" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "prdt", propOrder = {
"product"
public class Prdt {
@XmlElement(name = "PRODUCT", required = true)
protected List<Prd> product;
* Gets the value of the product property.
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the product property.
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getPRODUCT().add(newItem);
* </pre>
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Prd }
public List<Prd> getPRODUCT() {
if (product == null) {
product = new ArrayList<Prd>();
return this.product;
3) Prd.java
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2008.06.23 at 04:09:25 PM IST
package testing.jaxb;
import java.math.BigInteger;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
* <p>Java class for prd complex type.
* <p>The following schema fragment specifies the expected content contained within this class.
* <pre>
* <complexType name="prd">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="PRODUCTNAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="DESCRIPTION" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="PRICE" type="{http://www.w3.org/2001/XMLSchema}positiveInteger"/>
* <element name="QUANTITY" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger"/>
* </sequence>
* <attribute name="CATEGORY" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="PRODID" use="required" type="{}pid" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "prd", propOrder = {
"productname",
"description",
"price",
"quantity"
public class Prd {
@XmlElement(name = "PRODUCTNAME", required = true)
protected String productname;
@XmlElement(name = "DESCRIPTION", required = true)
protected String description;
@XmlElement(name = "PRICE", required = true)
protected BigInteger price;
@XmlElement(name = "QUANTITY", required = true)
protected BigInteger quantity;
@XmlAttribute(name = "CATEGORY")
protected String category;
@XmlAttribute(name = "PRODID", required = true)
protected String prodid;
* Gets the value of the productname property.
* @return
* possible object is
* {@link String }
public String getPRODUCTNAME() {
return productname;
* Sets the value of the productname property.
* @param value
* allowed object is
* {@link String }
public void setPRODUCTNAME(String value) {
this.productname = value;
* Gets the value of the description property.
* @return
* possible object is
* {@link String }
public String getDESCRIPTION() {
return description;
* Sets the value of the description property.
* @param value
* allowed object is
* {@link String }
public void setDESCRIPTION(String value) {
this.description = value;
* Gets the value of the price property.
* @return
* possible object is
* {@link BigInteger }
public BigInteger getPRICE() {
return price;
* Sets the value of the price property.
* @param value
* allowed object is
* {@link BigInteger }
public void setPRICE(BigInteger value) {
this.price = value;
* Gets the value of the quantity property.
* @return
* possible object is
* {@link BigInteger }
public BigInteger getQUANTITY() {
return quantity;
* Sets the value of the quantity property.
* @param value
* allowed object is
* {@link BigInteger }
public void setQUANTITY(BigInteger value) {
this.quantity = value;
* Gets the value of the category property.
* @return
* possible object is
* {@link String }
public String getCATEGORY() {
return category;
* Sets the value of the category property.
* @param value
* allowed object is
* {@link String }
public void setCATEGORY(String value) {
this.category = value;
* Gets the value of the prodid property.
* @return
* possible object is
* {@link String }
public String getPRODID() {
return prodid;
* Sets the value of the prodid property.
* @param value
* allowed object is
* {@link String }
public void setPRODID(String value) {
this.prodid = value;
Next step is to compile these three files
So I am compiling these three files it gives me compiler error as:
testing/jaxb/ObjectFactory.java:31: illegal character: \64
@XmlRegistry
^
testing/jaxb/ObjectFactory.java:63: illegal character: \64
@XmlElementDecl(namespace = "", name = "PRODUCTDATA")
^
testing/jaxb/ObjectFactory.java:65: <identifier> expected
return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value
^
testing/jaxb/ObjectFactory.java:65: <identifier> expected
return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value
^
testing/jaxb/ObjectFactory.java:65: '{' expected
return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value
^
testing/jaxb/Prdt.java:38: illegal character: \64
@XmlAccessorType(XmlAccessType.FIELD)
^
testing/jaxb/Prdt.java:39: illegal character: \64
@XmlType(name = "prdt", propOrder = {
^
testing/jaxb/Prdt.java:44: illegal character: \64
@XmlElement(name = "PRODUCT", required = true)
^
testing/jaxb/Prdt.java:45: <identifier> expected
protected List<Prd> product;
^
testing/jaxb/Prdt.java:69: <identifier> expected
public List<Prd> getPRODUCT() {
^
testing/jaxb/Prdt.java:75: ';' expected
^
testing/jaxb/Prd.java:43: illegal character: \64
@XmlAccessorType(XmlAccessType.FIELD)
^
testing/jaxb/Prd.java:44: illegal character: \64
@XmlType(name = "prd", propOrder = {
^
testing/jaxb/Prd.java:52: illegal character: \64
@XmlElement(name = "PRODUCTNAME", required = true)
^
testing/jaxb/Prd.java:53: <identifier> expected
protected String productname;
^
testing/jaxb/Prd.java:54: illegal character: \64
@XmlElement(name = "DESCRIPTION", required = true)
^
testing/jaxb/Prd.java:55: <identifier> expected
protected String description;
^
testing/jaxb/Prd.java:56: illegal character: \64
@XmlElement(name = "PRICE", required = true)
^
testing/jaxb/Prd.java:57: <identifier> expected
protected BigInteger price;
^
testing/jaxb/Prd.java:58: illegal character: \64
@XmlElement(name = "QUANTITY", required = true)
^
testing/jaxb/Prd.java:59: <identifier> expected
protected BigInteger quantity;
^
testing/jaxb/Prd.java:60: illegal character: \64
@XmlAttribute(name = "CATEGORY")
^
testing/jaxb/Prd.java:61: <identifier> expected
protected String category;
^
testing/jaxb/Prd.java:62: illegal character: \64
@XmlAttribute(name = "PRODID", required = true)
^
testing/jaxb/Prd.java:63: <identifier> expected
protected String prodid;
^
25 errors
I want all three files to compiled successfully.If it is compiled only then I will continue on Unmarshalling processI suspect you are trying to compile the files one by one. You may also be trying to compile them disregarding the package structure.
From your post, I gather these files are in the package: com.geindustrial.sqms
Therefore, if they are not so already, put them under a directory structure:
com/geindustrial/sqms
and then compile with:
javac com/geindustrial/sqms/AddCtq.java com/geindustrial/sqms/Ctq.java com/geindustrial/sqms/VariableData.java
(The above is all on one line.)
HTH,
Manuel Amago. -
Autotype won't generate java files from wsdl
Hi!
I'm having troube generating the java classes for a non built-in datatype from
wsdl. The autotype ant task will only generate a types.xml file, but it does not
generate the corresponding java files for the non-built in datatypes, nor does
it generate any serializer/deserializer classes.
Thanks in advance for any help on this!
The WSDL defines the following datatype:
<xsd:complexType name="w2Edisoprec">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="w2EdisoprecArrayItem[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="w2EdisoprecArrayItem">
<xsd:sequence>
<xsd:element name="sAs_soptunnus" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="sAs_soptun_alk" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="lAs_soptun_lop" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:anyAttribute processContents="lax"/>
</xsd:complexType>
<xsd:element name="w2Edisoprec" type="w2EdisoprecArrayItem" />
I'm using the following build.xml file:
<project name="buildWebservice" default="generate-types">
<target name="generate-types">
<autotype
wsdl="http://localhost/Lak_hEdisopLK.wsdl"
packageName="ssi3Client.types"
destDir="c:/tuxedo2sap/l158/ssi3/wsdl/types"
/>
</target>
</project>
The types.xml file generated by autotype is:
<wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:w2Edisoprec"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:v2EdisoprecArrayItem"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:w2EdisoprecArrayItem"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:v2Edisoprec"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
</wsdd:type-mapping>Hi Hans,
It is a known issue that the XML schema processor in WLS 7.0, doesn't currently
handle the <xsd:anyAttribute processContents="lax"/> and <xsd:any processContents="lax"
minOccurs="0" maxOccurs="unbounded"/> lines in your xsd. This may be corrected
in the next service pack - SP2.
Regards,
Mike Wooten
"Hans Dumbrajs" <[email protected]> wrote:
>
Hi!
I'm having troube generating the java classes for a non built-in datatype
from
wsdl. The autotype ant task will only generate a types.xml file, but
it does not
generate the corresponding java files for the non-built in datatypes,
nor does
it generate any serializer/deserializer classes.
Thanks in advance for any help on this!
The WSDL defines the following datatype:
<xsd:complexType name="w2Edisoprec">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="w2EdisoprecArrayItem[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="w2EdisoprecArrayItem">
<xsd:sequence>
<xsd:element name="sAs_soptunnus" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="sAs_soptun_alk" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="lAs_soptun_lop" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
<xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:anyAttribute processContents="lax"/>
</xsd:complexType>
<xsd:element name="w2Edisoprec" type="w2EdisoprecArrayItem" />
I'm using the following build.xml file:
<project name="buildWebservice" default="generate-types">
<target name="generate-types">
<autotype
wsdl="http://localhost/Lak_hEdisopLK.wsdl"
packageName="ssi3Client.types"
destDir="c:/tuxedo2sap/l158/ssi3/wsdl/types"
/>
</target>
</project>
The types.xml file generated by autotype is:
<wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:w2Edisoprec"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:v2EdisoprecArrayItem"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:w2EdisoprecArrayItem"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:v2Edisoprec"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
</wsdd:type-mapping>
Maybe you are looking for
-
How do I change the start/stop time for multiple songs not just one song at a time?
How do I chnage the start/stop time for multiple songs not just one song at a time?
-
Mass Archiving of outgoing Billing Documents
Hello Guru's, I need your expertise in the following scenario. we have a production system in which we have over 126000 billing documents created in 4 months span. when the users issue output, the storage mode in the output type should be "print and
-
I work with SAP system based on Oracle database. I use standard function FMCA_RETURN_READ_BY_ID to retrieve data for one particular form bundle. As I imagine, this data is stored in XML files. Because this retrieving is slow for massive data I am loo
-
KSII doesn't recalculate activity rates
Hi, I've taken the following steps in order to configure cost splitting through activity types: Configured transactions OKEQ and OKET Created an activity type in KL01 Created a splitting structure in OKES, defining cost splitting to a certain group o
-
Removing the country code prefix from all contacts in the Address Book
upgrading my iphone (to os 3.0) added country codes to all of my contacts, not noticing this i synced it with my mac, thus adding said preixes to the contacts on my mac as well. is there a way (only applescript from what i understand) to remove the c