axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donald Allan (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Created: (AXIS-1768) WSDL Display Fails for Deployed Web Service
Date Mon, 17 Jan 2005 18:05:17 GMT
WSDL Display Fails for Deployed Web Service
-------------------------------------------

         Key: AXIS-1768
         URL: http://issues.apache.org/jira/browse/AXIS-1768
     Project: Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.2RC1    
 Environment: Developed a web sevice using axis-1_2RC1, Java SDK 1.4.2_02
    Reporter: Donald Allan


We have developed a web service to calculate aviation en-route charges. 
The services is implemented using the Apache axis SOAP engine.
The sevice works however, the axis function that provides a 
WSDL definition for a deployed Web Service will not display the WSDL
for the RouteCharges services.  The browser displays the error message
"java.lang.reflect.InvocationTargetException"

The description of the exception does not provide any information regarding
the cause of the problem.  After some experimentation, the following 
cause was found for the problem.

Framework code for the Web Service server was created with WSDL2Java from
the RouteCharges.wsdl file.

The generated Web Service code contains a file called RouteChargesBindingSkeletion.java
that was  auto-generated from the original service WSDL file.  This class provides a
method called getOperationDescs() that returns a data structure
(_myOperationsList) that provides the data required to generate the WSDL
display.  The generated code for the fault exception descriptions contains
extraneous '>' characters in the XML Type names that are added
to the FaultDesc (_fault) objects.  For example, one _fault.setXmlType() call
specified a name of ">getStatusFautlt" ).  The code was edited to remove
the extraneous '>' character from each setXMLType() call and the Web Service
jar file was regenerated and installed.  After these changes, the WSDL
for the RouteCharges service displayed correctly.

A line from the RouteChargesBindingSkeleton.java file is shown below.
        _fault.setXmlType(new javax.xml.namespace.QName("http://nav.atiaero.com/chargesws",
">submitChargesFault"));

It appears that the parameter ">submitChargesFault" is incorrect and should be
"submitChargesFault"

Version axis-1_2RC2 was downloaded and WSDL2Java in that version was used to
generate the server code.  The resulting code still contains the error.  Please
let me know if a copy of the WSDL file would be useful for working on the
problem.

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