Hi all,
I'm uploading a file to a web service through an OperationClient (the
MEP is out-only). If I configure the operation client as
ANON_OUT_ONLY_OP it works fine, while if I configure it as
ANON_ROBUST_OUT_ONLY_OP the service executes correctly, however the
client gets:
org.apache.axis2.AxisFault: Incoming message input stream is null
Is there any reason for this?
The chunk of code on the client side is the following:
Options options = new Options();
options.setTo(new EndpointReference(CODESTORE_EPR));
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
options.setProperty(Constants.Configuration.ENABLE_MTOM,
Constants.VALUE_TRUE);
ServiceClient sender = new ServiceClient();
EndpointReference to = new EndpointReference(CODESTORE_EPR);
OperationClient mepClient =
sender.createClient(ServiceClient.ANON_OUT_ONLY_OP);
mepClient.setOptions(options);
SOAPEnvelope env = createCodestoreEnvelope();
MessageContext ctx = new MessageContext();
ctx.setEnvelope(env);
mepClient.addMessageContext(ctx);
mepClient.execute(true);
mepClient.complete(ctx);
Thanks,
Michele
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]