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