I've generated AXIS 1.4 bindings using the Maven plug in so I can re-implement a service. We currently have the same service running with AXIS 1.4 on an old system that is being replaced. We're staying with AXIS 1.4 as AXIS 2 has issues with Weblogic and I thought it would be faster to reimplement on a known platform.
All deploys fine but when I return from the service with a valid object I get the following. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body/> </soapenv:Envelope> I have returned a object from my service implementation and if I step through the Axis code I can see that it has my expected value. At the following piece of code in the RPCProvider class I can see the objRes is the object I expect. objRes = invokeMethod(msgContext, operation.getMethod(), obj, argValues); At no stage does it attempt to serialize the objRes to XML. Anyone have any ideas as to why this would be happening. Summarized server-config.wsdd below. Using spring ServletEndpointSupport if this makes any difference. <?xml version="1.0" encoding="UTF-8"?> <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> <globalConfiguration> <parameter name="attachments.Directory" value="/j2ee/tmp/attachments" /> <parameter name="attachments.implementation" value="org.apache.axis.attachments.AttachmentsImpl" /> <parameter name="sendXsiTypes" value="true" /> <parameter name="sendMultiRefs" value="false" /> <parameter name="sendXMLDeclaration" value="true" /> <parameter name="axis.sendMinimizedElements" value="true" /> </globalConfiguration> <service name="XrPort" provider="java:RPC" style="document" use="literal"> <parameter name="allowedMethods" value="*" /> <parameter name="typeMappingVersion" value="1.2" /> <parameter name="wsdlPortType" value="XrPortType" /> <parameter name="className" value="my.endpoint.class" /> <parameter name="wsdlServicePort" value="XrPort" /> <parameter name="schemaQualified" value="uri:ns" /> <parameter name="wsdlTargetNamespace" value="nsdefinitions" /> <parameter name="wsdlServiceElement" value="XrService" /> <operation name="send" qname="Send" returnQName="retNS:snapshotMessage" xmlns:retNS="uri:ns" returnType="rtns:snapshotComplexType" xmlns:rtns="uri:ns" soapAction="" > <parameter qname="pns:snapshotMessage" xmlns:pns="uri:ns" type="tns:snapshotComplexType" xmlns:tns="uri:ns"/> </operation> <wsdlFile> /xrservice.wsdl </wsdlFile> //// TypeMappings </service> <transport name="http"> <requestFlow> <handler type="java:org.apache.axis.handlers.http.URLMapper" name="URLMapper"/> <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler" /> </requestFlow> </transport> <transport name="local"> <responseFlow> <handler type="LocalResponder" /> </responseFlow> </transport> </deployment> -- Ian Kettle - Software Engineer Mobile: +64 21 406 461 Email: ian.ket...@fmit.co.nz | Web: www.fmit.co.nz Level 6, 92 Albert Street, Auckland, NZ