You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ji...@apache.org on 2004/04/13 15:07:44 UTC

[jira] Closed: (AXIS-1305) Java2WSDL regression in 1.2 beta

Message:

   The following issue has been closed.

   Resolver: Davanum Srinivas
       Date: Tue, 13 Apr 2004 6:07 AM

fixed in latest cvs.
---------------------------------------------------------------------
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: Closed
   Priority: Major
 Resolution: FIXED

    Project: Axis
 Components: 
             WSDL processing
   Fix Fors:
             current (nightly)
   Versions:
             1.2 Beta

   Assignee: 
   Reporter: Shantanu Sen

    Created: Mon, 12 Apr 2004 11:44 PM
    Updated: Tue, 13 Apr 2004 6:07 AM
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