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 "Mark Swanson (JIRA)" <ax...@ws.apache.org> on 2005/08/23 21:33:09 UTC

[jira] Created: (AXIS-2192) Axis no longer works with XmlBeans

Axis no longer works with XmlBeans
----------------------------------

         Key: AXIS-2192
         URL: http://issues.apache.org/jira/browse/AXIS-2192
     Project: Apache Axis
        Type: Bug
  Components: WSDL processing  
    Versions: current (nightly)    
 Environment: Linux, Java 5
    Reporter: Mark Swanson


A few weeks ago Axis generated the WSDL correctly for XmlBeans parameters for wrapped services. It no longer does.
Now XmlBeans are assigned xsd:anyType in the WSDL - which is not usable and wrong.



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


[jira] Commented: (AXIS-2192) Axis no longer works with XmlBeans

Posted by "Mark Swanson (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2192?page=comments#action_12319781 ] 

Mark Swanson commented on AXIS-2192:
------------------------------------

This code is based on the Axis xmlbeans sample. I have tried complex types/ elements, tried to map the interface, the Document, the non-document, the internal class, tried document and wrapped - nothing works anymore.

The simple schema and test program are:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://webservices.test.com/xact" xmlns="http://webservices.test.com/xact" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="qualified">
        <xs:element name="CardExpiry">
                <xs:complexType>
                  <xs:sequence>
                          <xs:element ref="month"/>
                          <xs:element ref="year"/>
                  </xs:sequence>
                </xs:complexType>
        </xs:element>
        <xs:element name="month">
                <xs:simpleType>
                        <xs:restriction base="xs:int">
                                <xs:totalDigits value="2"/>
                        </xs:restriction>
                </xs:simpleType>
        </xs:element>
        <xs:element name="year">
                <xs:simpleType>
                        <xs:restriction base="xs:int">
                                <xs:totalDigits value="4"/>
                        </xs:restriction>
                </xs:simpleType>
        </xs:element>
</xs:schema>



 String ns = "http://webservices.test.com/xact";
        QName q = new QName(ns, "CardExpiry");

        TypeMapping tm = DefaultTypeMappingImpl.getSingletonDelegate();
        // CardExpiry
        tm.register(com.test.webservices.xact.CardExpiryDocument.CardExpiry.class, q,
          new XmlBeanSerializerFactory(com.test.webservices.xact.CardExpiryDocument.CardExpiry.class, q),
          new XmlBeanDeserializerFactory(com.test.webservices.xact.CardExpiryDocument.CardExpiry.class, q));

        // month
        q = new QName(ns, "month");
        tm.register(MonthDocument.Month.class, q,
          new XmlBeanSerializerFactory(MonthDocument.Month.class, q),
          new XmlBeanDeserializerFactory(MonthDocument.Month.class, q));
        System.out.println("Registered:" + MonthDocument.Month.class.getName());

        // year
        q = new QName(ns, "year");
        tm.register(YearDocument.Year.class, q,
          new XmlBeanSerializerFactory(YearDocument.Year.class, q),
          new XmlBeanDeserializerFactory(YearDocument.Year.class, q));


> Axis no longer works with XmlBeans
> ----------------------------------
>
>          Key: AXIS-2192
>          URL: http://issues.apache.org/jira/browse/AXIS-2192
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: Linux, Java 5
>     Reporter: Mark Swanson

>
> A few weeks ago Axis generated the WSDL correctly for XmlBeans parameters for wrapped services. It no longer does.
> Now XmlBeans are assigned xsd:anyType in the WSDL - which is not usable and wrong.

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


[jira] Updated: (AXIS-2192) Axis no longer works with XmlBeans

Posted by "Mark Swanson (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2192?page=all ]

Mark Swanson updated AXIS-2192:
-------------------------------

    Attachment: axisTest2.jar

includes build.xml, deploy.wsdd, schema, Math.java service
as well as a nifty auto-mapping class to auto-map XmlBeans. 


> Axis no longer works with XmlBeans
> ----------------------------------
>
>          Key: AXIS-2192
>          URL: http://issues.apache.org/jira/browse/AXIS-2192
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: Linux, Java 5
>     Reporter: Mark Swanson
>  Attachments: axisTest2.jar
>
> A few weeks ago Axis generated the WSDL correctly for XmlBeans parameters for wrapped services. It no longer does.
> Now XmlBeans are assigned xsd:anyType in the WSDL - which is not usable and wrong.

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


Re: [jira] Commented: (AXIS-2192) Axis no longer works with XmlBeans

Posted by Mark Swanson <ma...@ScheduleWorld.com>.
Davanum Srinivas (JIRA) wrote:
> [
> http://issues.apache.org/jira/browse/AXIS-2192?page=comments#action_12319784
> ]
> 
> Davanum Srinivas commented on AXIS-2192: 
> ----------------------------------------
> 
> please try one of the older versions of files
> (http://cvs.apache.org/viewcvs.cgi/ws-axis/java/src/org/apache/axis/encoding/ser/xbeans/XmlBeanSerializer.java)
> and submit a patch.

It seems the XmlBeanSerializer isn't even used. Axis is bypassing it 
completely now. ?

-- 
Free replacement for Exchange and Outlook (Contacts and Calendar)
http://www.ScheduleWorld.com/
WAP: http://www.ScheduleWorld.com/sw/WAPToday?id=4000&tz=EST
WebDAV: http://www.ScheduleWorld.com/sw/webDAVDir/4000.ics
VFREEBUSY: http://www.ScheduleWorld.com/sw/freebusy/4000.ifb

[jira] Commented: (AXIS-2192) Axis no longer works with XmlBeans

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2192?page=comments#action_12319784 ] 

Davanum Srinivas commented on AXIS-2192:
----------------------------------------

please try one of the older versions of files (http://cvs.apache.org/viewcvs.cgi/ws-axis/java/src/org/apache/axis/encoding/ser/xbeans/XmlBeanSerializer.java) and submit a patch.

thanks,
dims

> Axis no longer works with XmlBeans
> ----------------------------------
>
>          Key: AXIS-2192
>          URL: http://issues.apache.org/jira/browse/AXIS-2192
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: Linux, Java 5
>     Reporter: Mark Swanson
>  Attachments: axisTest2.jar
>
> A few weeks ago Axis generated the WSDL correctly for XmlBeans parameters for wrapped services. It no longer does.
> Now XmlBeans are assigned xsd:anyType in the WSDL - which is not usable and wrong.

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