AXL with Axis

Version 1
    This document was generated from CDN thread

    Created by: Enrique Perez on 04-11-2008 09:36:00 AM
    Hi. I'm trying to use the AXL API from Axis. I downloaded de AXLAPI.wsdl for Axis and generated the java classes with Axis WSDL2Java. In the README.txt that comes with AXLAPI.wsdl it says that there're some problems with the code generation. I've fixed some of this things but there's one kind of error that I don't understand how to solve:

    II. The second axis jira is related to having a string constructor for simple types for example:

    // Simple Types must have a String constructor
    public XLoadInformation(java.lang.String _value) {
    super(_value);
    }

    For such cases the corresponding schema file(axl.xsd) in the parent schema folders must be referred and implement the String class that these classes can inherit.


    I have little knowledge on schemas and XML (that's why I'm trying to use AXL from Axis and not generating directly the SOAP messages) and I can't understand with this text what I have to do to fix this code and use AXL from Axis.

    Subject: Re: AXL with Axis
    Replied by: Enrique Perez on 06-11-2008 09:02:02 AM
    Until I get a solution to this problems I tried to just comment this constructors and try to execute AXL commands. It seems to work well (at least with the few calls I tried).

    But when I make an executeSQLQuery() I get this error:

    Exception:
    org.xml.sax.SAXException: No deserializer for {http://www.w3.org/2001/XMLSchema}anyType
    at org.apache.axis.encoding.DeserializerImpl.onStartElement(DeserializerImpl.java:453)
    at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:393)
    at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
    at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
    at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
    at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
    at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
    at org.apache.axis.client.Call.invoke(Call.java:2467)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at com.cisco.www.AXLAPIService.AXLAPIBindingStub.executeSQLQuery(AXLAPIBindingStub.java:16206)
    at Prueba1.main(Prueba1.java:43)

    Is there any solution for this problems? Thanks

    Subject: Re: AXL with Axis
    Replied by: Madhukar Bhandaryr on 13-11-2008 03:33:31 PM
    Hi,

    To investigate in to this , i would suggest you to open a service request with DVCM contract or send a mail to developer-support@cisco.com.

    Thanks and Regards,
    Madhukar

    Subject: Re: AXL with Axis
    Replied by: Tony Tjo on 14-11-2008 01:19:35 AM
    Hi,

    I suffer from the same problem!!

    May anyone know the answer please post here...

    Thanks!!

    Tony

    Subject: Re: AXL with Axis
    Replied by: Shahzad Munir on 31-12-2008 07:43:00 AM
    I am facing the same problem. Has anybody come up with solution to this problem. Kindly post!

    Subject: RE: Re: AXL with Axis
    Replied by: Chandan Agrawal on 05-06-2009 10:38:28 AM
    Hi,
     
    I also need the solution to this. PLEASE PLEASE post the solution if anyone has successfully resolved it.
     
    Regards,
    Chandan

    Subject: RE: AXL with Axis
    Replied by: Chandan Agrawal on 05-06-2009 11:41:55 AM
    I used Axis 1.2 and didnt get any of the errors mentioned about the sequence in the constructor or the simpleType constructor.
     
    Regards,
    Chandan
     
     
     
    Hi. I'm trying to use the AXL API from Axis. I downloaded de AXLAPI.wsdl for Axis and generated the java classes with Axis WSDL2Java. In the README.txt that comes with AXLAPI.wsdl it says that there're some problems with the code generation. I've fixed some of this things but there's one kind of error that I don't understand how to solve:

    II. The second axis jira is related to having a string constructor for simple types for example:

    // Simple Types must have a String constructor
    public XLoadInformation(java.lang.String _value) {
    super(_value);
    }

    For such cases the corresponding schema file(axl.xsd) in the parent schema folders must be referred and implement the String class that these classes can inherit.


    I have little knowledge on schemas and XML (that's why I'm trying to use AXL from Axis and not generating directly the SOAP messages) and I can't understand with this text what I have to do to fix this code and use AXL from Axis.


    Subject: RE: Re: AXL with Axis
    Replied by: UUser SNUUser on 06-04-2010 07:31:56 PM
    Is there any solution for this, please?
    If you already solved the problem, please post it here! thanks.
     
    - Exception:
    org.xml.sax.SAXException: No deserializer for {http://www.w3.org/2001/XMLSchema}anyType

    Subject: RE: Re: AXL with Axis
    Replied by: Chandan Agrawal on 07-04-2010 01:03:56 PM
    Unfortunately not.

    Subject: RE: Re: AXL with Axis
    Replied by: Li Fu on 07-04-2010 02:24:29 PM
    Thanks for your reply.
     
    I found the alternative solution finally. No need to generate anything by yourself.
    Goto:
    http://developer.cisco.com/web/cdc/wikidocs?src=/wiki/display/AXL/how-to_Axis#http://developer.cisco.com/wiki/display/AXL/how-to_Axis?
     
    There is available source, it works fine for me. it is schema 7.0
     
    Hope this can help somebody else who faced this problem.
     
     
     

    Subject: RE: Re: AXL with Axis
    Replied by: Li Fu on 07-04-2010 02:39:44 PM
    Sorry, not a full solution yet.
     
    executeSQLQuery still got the same exception, but at least getUser can work fine now.

    Subject: RE: Re: AXL with Axis
    Replied by: David Staudt on 08-04-2010 03:08:34 PM
    Sorry, not a full solution yet.
     
    executeSQLQuery still got the same exception, but at least getUser can work fine now.

     
    Axis currently has not facility for handling the 'anyType' result from ExecuteSQLQuery/Update - since the result schema is unknown, Axis can not precompile classes to handle the result.  Practically, this means that you will need to use special handling for ExecuteSQLQuery requests, i.e. handling the XML 'raw' via Xerces or another XML parser, or just via string parsing.
     
    For simple apps using just a handful of small AXL requests, that route can be simpler/faster than going full-boat with Axis anyway.