Hi,
I'm trying to send a message using WebService. But my message will contain binary source, so I saw about sending my binary data attached in my message. I'm using the method invoke(OperationInfo arg0, Object[] arg1) , from Client instance. arg0 is my OperationInfo, obviously. And my arg1 is an array with my parameters, one of then is and DataHandler (I don't now if I can use this, I saw this in some forum). My server is configured to receive in one of the parameters an Object of anyType. Is it correct? Or may I have to change this to other type? Here's my WSDL: (I'm using Tomcat + Axis) <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://localhost:8083/axis/Test.jws" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8083/axis/Test.jws" xmlns:intf="http://localhost:8083/axis/Test.jws" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <!--WSDL created by Apache Axis version: 1.4 Built on Apr 22, 2006 (06:55:48 PDT)--> <wsdl:message name="testRequest"> <wsdl:part name="test" type="xsd:anyType"/> <wsdl:part name="a" type="xsd:string"/> </wsdl:message> <wsdl:message name="testResponse"> <wsdl:part name="testReturn" type="xsd:string"/> </wsdl:message> <wsdl:portType name="Test"> <wsdl:operation name="test" parameterOrder="test a"> <wsdl:input message="impl:testRequest" name="testRequest"/> <wsdl:output message="impl:testResponse" name="testResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="TestSoapBinding" type="impl:Test"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="test"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="testRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace" use="encoded"/> </wsdl:input> <wsdl:output name="testResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8083/axis/Test.jws" use="encoded"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="TestService"> <wsdl:port binding="impl:TestSoapBinding" name="Test"> <wsdlsoap:address location="http://localhost:8083/axis/Test.jws"/> </wsdl:port> </wsdl:service> </wsdl:definitions> Thanks, Antonini, Endrigo
