Axis uses the operation name to reference the WSDL description and find the input, output, and fault message definition.

At 12:49 PM 8/26/2003 +0200, you wrote:
Hi,

I'am wondering why I have to specify an operation name in a no-wrapped
document/literal client. If a operationname is specified it isn't used. If
no operation name is specified, the exception below is thrown?


Thomas



Client:


call.setOperationStyle( Style.DOCUMENT);
call.setOperationUse( Use.LITERAL);

call.setOperationName("doesnt-matter");

call.registerTypeMapping( DVD.class, new QName( ns, "dvd"),
BeanSerializerFactory.class, BeanDeserializerFactory.class);
call.addParameter( new QName( ns, "dvd"), Constants.XSD_ANY, DVD.class,
ParameterMode.IN);

call.setReturnType( new QName( xs_ns, "string"));



Exception:

No operation name specified!
        at org.apache.axis.client.Call.invoke(Call.java:1689)
        at
de.javamagazin.style.DVDClientDocumentLiteral.main(DVDClientDocumentLiteral.
java:44)






Orientation in Objects GmbH http://www.oio.de




Reply via email to