Hi,

    I have had success in sending and receiving attachments but the problem
is only when I try to send few more parameters, like:

Client-side:

        ...

        call.addParameter("msg", XMLType.XSD_STRING, ParameterMode.IN );
        call.addParameter( "source", qnameAttachment,
                ParameterMode.IN ); //Add the file.

        call.setReturnType( XMLtype.XSD_STRING);

        Object ret = call.invoke( new Object[] { "hello", dhSource} );

        ...


Server-side:

        ...
        public Object getAttachment( String msg, DataHandler dh)
        ...


What am I doing wrong?? I get the following error:

org.apache.axis.InternalException: java.lang.Exception: The OperationDesc
for getAttachment was not syncronized to a method of
WSEmbossAttachmentsService.
AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.userException
 faultString: org.apache.axis.InternalException: java.lang.Exception: The
OperationDesc for getAttachment was not syncronized to a method of
WSEmbossAttachmentsService.
 faultActor: null
 faultDetail: 
        stackTrace: org.apache.axis.InternalException: java.lang.Exception:
The OperationDesc for getAttachment was not syncronized to a method of
WSEmbossAttachmentsService.
        at 
org.apache.axis.description.ServiceDesc.syncOperationToClass(ServiceDesc.jav
a:671)
        at 
org.apache.axis.description.ServiceDesc.getSyncedOperationsForName(ServiceDe
sc.java:925)
        at 
org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospectionRecurs
ive(ServiceDesc.java:801)
        at 
org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection(Servi
ceDesc.java:768)
        at 
org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection(Servi
ceDesc.java:718)
        at 
org.apache.axis.description.ServiceDesc.initQNameMap(ServiceDesc.java:475)
        at 
org.apache.axis.description.ServiceDesc.getOperationsByQName(ServiceDesc.jav
a:429)
        at 
org.apache.axis.MessageContext.getPossibleOperationsByQName(MessageContext.j
ava:238)
...

Any pointer?

TIA,
Sharmila.

Reply via email to