DII client programming...

From: Tevoi Andrea <tevoi_at_CAD.IT>
Date: Thu, 05 Sep 2002 18:41:41 +0200


I'm trying to invoke a web service using DII:

String wsdlUrl = "http://tevoi:8000/XasWebService/work/A2GWGI1_01_Net.wsdl";
String wsdlNamespace = "";
String wsdlServiceName = "A2GWGI1_01Service";
String wsdlPortName = "A2GWGI1_01ServiceSoap";
String wsdlOperationName = "ServiceOperation";
QName serviceName = new QName(wsdlNamespace, wsdlServiceName);
QName portName = new QName(wsdlNamespace, wsdlPortName);
QName operationName = new QName(wsdlNamespace, wsdlOperationName);
ServiceFactory sF = ServiceFactory.newInstance();
Service service = sF.createService(new URL(wsdlUrl), serviceName);
Call call = service.createCall(portName, operationName);
DOCUMENT request = new DOCUMENT();
DOCUMENT response = (DOCUMENT) call.invoke(new Object[] {request});

I use Axis implementation. I have this exception:

 faultCode: {}Server.userException
 faultString: No serializer found for class in registry org.apache.axis.encoding.TypeMappingImpl_at_55d93d
 faultActor: null
        stackTrace: No serializer found for class in registry org.apache.axis.encoding.TypeMappingImpl_at_55d93d
        at org.apache.axis.encoding.SerializationContextImpl.serializeActual(
        at org.apache.axis.encoding.SerializationContextImpl.serialize(
        at org.apache.axis.encoding.SerializationContextImpl.outputMultiRefs(
        at org.apache.axis.message.SOAPBody.outputImpl(
        at org.apache.axis.message.SOAPEnvelope.outputImpl(
        at org.apache.axis.message.MessageElement.output(
        at org.apache.axis.SOAPPart.getAsString(
        at org.apache.axis.SOAPPart.getAsBytes(
        at org.apache.axis.Message.getContentType(
        at org.apache.axis.transport.http.HTTPSender.writeToSocket(
        at org.apache.axis.transport.http.HTTPSender.invoke(

It says that it can't find serializer for class DOCUMENT (this class was generated from WSDL with Wsdl2Java tool).
I think DII doesn't need specification for serializer, because it retrieves this information frow WSDL at runtime, isn't this?

I mean: I'm trying to invoke a Web Service with DII getting WSDL informations dynamically at runtime without any client side artifacts, is it possible?

thanks in advance,

Andrea Tevoi