axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Commented: (AXIS-1305) Java2WSDL regression in 1.2 beta
Date Wed, 14 Apr 2004 02:30:43 GMT
The following comment has been added to this issue:

     Author: Shantanu Sen
    Created: Tue, 13 Apr 2004 7:28 PM
       Body:
I tested this on the latest CVS build. This time I used standard beans for all the java files.
Runnning Java2WSDL on Axis1.1 produces the WSDL without any errors/warnings on the console:

D:\axis-build\play\sectest>java org.apache.axis.wsdl.Java2WSDL -l http://localhost:8070/axis/services/TradeItem
-y DOCUMENT -u literal -n twoInputParams -i TradeItem -a TradeItem

D:\axis-build\play\sectest>

But running with the latest build produces the following warning although the WSDL is built
correctly:

D:\axis-build\play\sectest>java org.apache.axis.wsdl.Java2WSDL -l http://localho
st:8070/axis/services/TradeItem -y DOCUMENT -u literal -n twoInputParams -a TradeItem
Apr 13, 2004 7:19:22 PM org.apache.axis.wsdl.fromJava.Emitter writePartToMessage

WARNING: Please register a typemapping/beanmapping for 'ItemInfo'
Apr 13, 2004 7:19:22 PM org.apache.axis.wsdl.fromJava.Emitter writePartToMessage

WARNING: Please register a typemapping/beanmapping for 'TradeStatus'

So, the bug is now fixed in the sense that the WSDL is generated correctly, but it is issuing
warnings that was not being issued with Axis 1.1

Note that the zip file attached with this bug does not contain the corrected java files. I
did not see any way to modify the attached zip file or this bug since it is in a closed state.
I would like to know if I need to file another bug to pursue this issue.


---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1305?page=comments#action_35004

---------------------------------------------------------------------
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 7:28 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