Hmmmm, I still get the WSDL that includes a binding style of rpc if I try that. Can you check your generated WSDL to see if yours is the same ? Our customer definitely wants to use document so even if it works I still have a problem.
Complete WSDL is shown below: <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://localhost:8080/axis/services/acidDoc" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8080/axis/services/acidDoc" xmlns:intf="http://localhost:8080/axis/services/acidDoc" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://exception.common.moveit.com.au" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><wsdl:types/> <wsdl:message name="importXMLResponse"> <wsdl:part name="importXMLReturn" type="xsd:anyType"/> </wsdl:message> <wsdl:message name="importXMLRequest"> </wsdl:message> <wsdl:message name="MoveitException"> <wsdl:part name="fault" type="xsd:anyType"/> </wsdl:message> <wsdl:portType name="Importer"> <wsdl:operation name="importXML"> <wsdl:input message="impl:importXMLRequest" name="importXMLRequest"/> <wsdl:output message="impl:importXMLResponse" name="importXMLResponse"/> <wsdl:fault message="impl:MoveitException" name="MoveitException"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="acidDocSoapBinding" type="impl:Importer"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="importXML"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="importXMLRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/acidDoc" use="encoded"/> </wsdl:input> <wsdl:output name="importXMLResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/acidDoc" use="encoded"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="ImporterService"> <wsdl:port binding="impl:acidDocSoapBinding" name="acidDoc"> <wsdlsoap:address location="http://localhost:8080/axis/services/acidDoc"/> </wsdl:port> </wsdl:service> </wsdl:definitions> On Tue, 2002-10-08 at 16:32, Murray Spork wrote: > Peter Kelley wrote: > > I'm new to web services and I'm having a few issues trying to get a > > document based service deployed using AXIS. > > > > 1. I have the wsdd: > > > > <?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"> > > <service name="acidDoc" style="message"> > > <parameter name="className" > > value="au.com.moveit.webservices.messaging.Importer"/> > > <parameter name="allowedMethods" value="*"/> > > </service> > > </deployment> > > This is the way I've done the service element in the past: > > <service name="MyService" provider="java:MSG" style="document"> > > [...] > > > > 2. As I want to get a hold of the XML being sent I have a method defined > > as: > > > > public Document importXML(Document data) throws MoveitException > > > > Is this the best way to do this ? I saw some discussion earlier about > > the other forms: > > > > public Element [] method(Element [] bodies); > > public SOAPBodyElement [] method (SOAPBodyElement [] bodies); > > > > being better or working or something. Does anyone have any experiences > > to share ? > > If you figure out how to get the first signature working I'd be > interested to know how (i.e. see some sample source) > I've got the 2nd one working before - see > http://marc.theaimsgroup.com/?l=axis-user&m=102308386012021&w=2 > http://marc.theaimsgroup.com/?l=axis-user&m=102312986516078&w=2 > > (warning - this code worked with Axis rc2 but I haven't tested it with 1.0) > > cheers, > > -- > Murray Spork > Centre for Information Technology Innovation (CITI) > The Redcone Project > Queensland University of Technology, Brisbane, Australia > Phone: +61-7-3864-9488 > Email: [EMAIL PROTECTED] > Web: http://redcone.gbst.com/ > Peter Kelley
