axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <dava...@gmail.com>
Subject Re: Axis 1.3 beta and XmlBeans config
Date Tue, 19 Jul 2005 22:02:55 GMT
plz try the example in the jira that i pointed to earlier first.

thanks,
dims

On 7/19/05, Mark Swanson <mark@scheduleworld.com> wrote:
> Davanum Srinivas wrote:
> > HEAD version. use JDK1.4 to compile or drop xerces jars in your
> > endorsed directory. saaj 1.2 does not support dom3.
> 
> Now we're gettin' somewhere. However, Axis is mapping my XmlBeans to
> anyType. I tried to define serializers like this but it didn't work:
> 
>         <deployment xmlns="http://xml.apache.org/axis/wsdd/"
>              xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> 
>    <service name="Math" style="document">
>      <parameter name="className" value="Math"/>
>      <parameter name="allowedMethods" value="*"/>
>      <typeMapping qname="ns:CountryDocument" xmlns:ns="someNamespace"
> 
> languageSpecificType="java:com.optimalpayments.webservices.xact.CountryDocument"
> 
> serializer="org.apache.axis.encoding.ser.xbeans.XmlBeanSerializerFactory"
> 
> deserializer="org.apache.axis.encoding.ser.xbeans.XmlBeanDeserializerFactory"
>        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
>   </service>
> 
> </deployment>
> 
> - Please register a typemapping/beanmapping for
> 'com.optimalpayments.webservices.xact.CountryDocument'
> - The class com.optimalpayments.webservices.xact.CountryDocument 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.
> 
> I'm trying to define a simple doc/literal service with a CountryDocument
> XmlBean. I copied and modified the above from the Axis 1.2
> documentation. Please help me get it right.
> 
> Cheers.
> 
> P.S. the Math class:
> 
> public class Math {
> 
>      public void test(CountryDocument countryDocument) {
>          System.out.println("CountryDocument:" +
> countryDocument.toString());
>      }
> 
> 
> --
> 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
> 


-- 
Davanum Srinivas -http://blogs.cocoondev.org/dims/

Mime
View raw message