axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Updated: (AXIS-1305) Java2WSDL regression in 1.2 beta
Date Tue, 13 Apr 2004 06:47:43 GMT
The following issue has been updated:

    Updater: Shantanu Sen (mailto:ssen@pacbell.net)
       Date: Mon, 12 Apr 2004 11:46 PM
    Comment:
The attached zip contains the source and classes used to run the test. Unzip the file and
use the Java2WSDL as specified in the problem description. 
    Changes:
             Attachment changed to j2wsdltest.zip
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/AXIS-1305?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1305

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1305
    Summary: Java2WSDL regression in 1.2 beta
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.2 Beta

   Assignee: 
   Reporter: Shantanu Sen

    Created: Mon, 12 Apr 2004 11:44 PM
    Updated: Mon, 12 Apr 2004 11:46 PM
Environment: Windows 2000, jdk 1.4.2_02

Description:
Try running Java2WSDL on a class which uses a class that is not bean compatible. On Axis1.1,
it creates the wsdl with a warning. On Acis1.2 beta it aborts with a stack trace. 

Example: The following TradeItem class uses class ItemInfo which does not have a default constructor.

public class TradeItem {
	
	public TradeStatus buy(ItemInfo itemInfo){
		TradeStatus status = new TradeStatus(itemInfo);
		return status;
	}
}

Running on Axis 1.1 results in the following:

C:\play\sectest>axjwsd -y document -u literal -l http://localhost:8080/axis/Trad
eItem TradeItem

C:\play\sectest>java org.apache.axis.wsdl.Java2WSDL -y document -u literal -l http://localhost:8080/axis/TradeItem
TradeItem
Apr 12, 2004 11:41:35 PM org.apache.axis.wsdl.fromJava.Types isBeanCompatible
WARNING: The class ItemInfo does not contain a default constructor, which is a requirement
for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType
will be used to define this class in the wsdl file.
Apr 12, 2004 11:41:35 PM org.apache.axis.wsdl.fromJava.Types isBeanCompatible
WARNING: The class TradeStatus does not contain a default constructor, which is a requirement
for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType
will be used to define this class in the wsdl file.

When running the same on Axis 1.2 beta the following is seen

C:\play\sectest>java org.apache.axis.wsdl.Java2WSDL -y document -u literal -l ht
tp://localhost:8080/axis/TradeItem TradeItem
log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR
esourceBundle).
log4j:WARN Please initialize the log4j system properly.
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode:
 faultString: Please register a typemapping/beanmapping for 'ItemInfo'
 faultActor:
 faultNode:
 faultDetail:
        {http://xml.apache.org/axis/}stackTrace:AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode:
 faultString: Please register a typemapping/beanmapping for 'ItemInfo'
 faultActor:
 faultNode:
 faultDetail:

Please register a typemapping/beanmapping for 'ItemInfo'
        at org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage(Emitter.java
:1810)
        at org.apache.axis.wsdl.fromJava.Emitter.writeRequestMessage(Emitter.jav
a:1386)
        at org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:1034
)
        at org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:1005
)
        at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:459)
        at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:310)
        at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:405)
        at org.apache.axis.wsdl.Java2WSDL.run(Java2WSDL.java:583)
        at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:629)


Please register a typemapping/beanmapping for 'ItemInfo'
        at org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage(Emitter.java
:1810)
        at org.apache.axis.wsdl.fromJava.Emitter.writeRequestMessage(Emitter.jav
a:1386)
        at org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:1034
)
        at org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:1005
)
        at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:459)
        at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:310)
        at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:405)
        at org.apache.axis.wsdl.Java2WSDL.run(Java2WSDL.java:583)
        at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:629)

C:\play\sectest>




---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message