error using DII

From: Fabian Gutierrez <>
Date: Thu, 3 May 2007 17:37:23 -0500

  Hi all,

i'm trying to create a DII client which use document/literal style, but a
can't get it to work.

If a run it as is

*private* *static* String BODY_NAMESPACE_VALUE = "";

ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService(*new* QName(qnameService));
QName port = *new* QName(qnamePort);
Call call = service.createCall(port);
*new* Boolean(*true*));call.setProperty(Call.SOAPACTION_URI_PROPERTY,
 // define parametros
QName qNameParametro = *new* QName(
qNameParametro, ParameterMode.IN);
 // define tipo retorno
QName qNameTipoRetorno = *new* QName(
 call.setOperationName(*new* QName(BODY_NAMESPACE_VALUE, "consultarTelefonos"));

Object[] inParams = *new* Object[] { obtenerObjetoPeticion() };
Object ret = call.invoke(inParams);

i get this

*java.rmi.RemoteException: JAXRPCTIE01: caught exception while handling
request: unrecognized operation:
at com.sun.xml.rpc.client.dii.BasicCall.invoke(
at com.davivienda.procesadortransacciones.performance.SqpClient.main(*

An extract of my wsdl is:

<?xml version="1.0" encoding="UTF-8"?><definitions xmlns="" xmlns:tns="" xmlns:ns2="" xmlns:xsd="" xmlns:soap="" name="ConsultarTelefonosService"

    <schema xmlns="" xmlns:tns=""
xmlns:soap11-enc="" xmlns:xsi="" xmlns:wsdl="" targetNamespace="">


obviously the operation
*}consultarTelefonos* could not be found, hovewer i generate some stubs with
jbuilder and there was no problem at all, so, it means that the wsdl is fine
and the problem is in the above code, so? what i'm doing wrong?

i'm using jwsdp-1.6. I've already generate stubs to consume this ws and
works perfect, but i really need to use DII.

Best regards,