axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Voelkle" <martin.voel...@gmail.com>
Subject [Axis2]swa reply
Date Tue, 10 Oct 2006 13:10:50 GMT
Hello

I am trying to access a SOAP 1.1 service which replies with a swa attachment.

My TCP monitor reveals that the server does send a correct multipart
reply, but the client gets an error number 3: "blocking invocation
expects response".

When accessing an other service on the same server which doesn't
return any attachment, using the same client code, everything goes
well.

Below is the code I am using to call the service. I also tried a few
variations, like enabling MTOM (the doc says it should not be
necessary for incoming messages).

Could you please help me identify what is going wrong?

Thanks,

Martin Voelkle


	axis2_env_t* env = axis2_env_create_all(LOG_FILENAME,  AXIS2_LOG_LEVEL_TRACE);

	axis2_endpoint_ref_t* endpoint_ref = axis2_endpoint_ref_create(env,
ENDPOINT_URL);

	axis2_options_t* options = axis2_options_create(env);
	AXIS2_OPTIONS_SET_TO(options, env, endpoint_ref);
	AXIS2_OPTIONS_SET_ACTION(options, env, SOAP_ACTION);
	AXIS2_OPTIONS_SET_SOAP_VERSION(options, env, AXIOM_SOAP11);

	axis2_char_t* axis2c_home = AXIS2_GETENV("AXIS2C_HOME");
	if (!axis2c_home) {
		axis2c_home = DEFAULT_AXIS2C_HOME;
	}

	axis2_svc_client_t* svc_client = axis2_svc_client_create(env, axis2c_home);
	if (!svc_client) {
		HANDLE_ERROR(env, "Client creation FAILED");
	}
	AXIS2_SVC_CLIENT_SET_OPTIONS(svc_client, env, options);

	axiom_node_t* request = build_request(env);
	axis2_char_t* request_str = AXIOM_NODE_TO_STRING(request, env);
	if (request_str)
		printf("\nSending OM : %s\n", request_str);

	axiom_node_t* reply = AXIS2_SVC_CLIENT_SEND_RECEIVE(svc_client, env, request);
	if (!reply) {
		HANDLE_ERROR(env, "Client invoke FAILED");
	}

	axis2_char_t* reply_str = AXIOM_NODE_TO_STRING(reply, env);
	if (reply_str)
		printf("\nReceived OM : %s\n", reply_str);
	printf("\nClient invoke SUCCESSFUL!\n");

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message