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 "William Ferguson (JIRA)" <ji...@apache.org> on 2006/09/12 14:57:22 UTC

[jira] Commented: (AXIS2-957) AxisServlet does not generate WSDL containing a wsdl:fault

    [ http://issues.apache.org/jira/browse/AXIS2-957?page=comments#action_12434149 ] 
            
William Ferguson commented on AXIS2-957:
----------------------------------------

This isn't working in the nightlies from 12-sep-06.
I created the service archive (which I will attach for speedy reproduction) which I deployed to the Axis2 web (from 12-sep-06) and then retrieved the WSDL form the Axis2 Administration Page.

The Fault types are defined in the WSDL but no faults are declared for either the port or binding elements in the WSDL.

I then tried to generate the WSDL using Java2WSDL (NB invoking the class directly from an Ant script) and found exactly the same thing. The Fault types were defined in the WSDL but no Faults were declared for any operations ion either the Port or Binding elements.

NB I needed to invoke Java2WSDL directly because I couldn't get the Java2WSDL.bat script to execute. The AXIS2_CLASS_PATH that is generating only contained the last 3 jars, not every jar in the lib folder as the script seems to be attempting to construct.  I found the same thing trying to execute the WSDL2Java script. For what its worth I'm running Windows 2000 service pack 3.

> AxisServlet does not generate WSDL containing a wsdl:fault
> ----------------------------------------------------------
>
>                 Key: AXIS2-957
>                 URL: http://issues.apache.org/jira/browse/AXIS2-957
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.0
>            Reporter: William Ferguson
>         Assigned To: Deepal Jayasinghe
>            Priority: Blocker
>         Attachments: SimpleService-Source.jar, SimpleService.wsdl, SimpleServiceTest.java
>
>
> I'm using Axis2 1.0 and can't seem to get the AxisServlet to return WSDL that defines a wsdl:fault.
> I have a simple Service class that has 3 methods,
>   1) returns void and throws WSException which extends from Exception
>   2) returns void and throws WSRemoteException which extends from RemoteException
>   3) returns String and throws WSException which extends from Exception
> I package the service up (just the Service class and the Exceptions) with the services.xml and deploy it into Tomcat. I then retrieve the WSDL via the AxisServlet and this is where the problem seems to lie.
> There is no wsdl:fault definitions for any of the service methods that actually throw Exceptions. 
> What do I need to do to get some valid WSDL?
> The second problem is (and this may well be due to the first):
> When I execute a client against this service, the method that returns String throws an AxisFault. Since the WSDL doesn't define any fault I expect this is reasonable. But the other 2 methods don't throw any Exception and just return normally. What has swallowed the Exception?

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org