adding methods set_target_endpoint_ref and get_target_endpoint_ref to 
axis2_svc_client
--------------------------------------------------------------------------------------

                 Key: AXIS2C-324
                 URL: http://issues.apache.org/jira/browse/AXIS2C-324
             Project: Axis2-C
          Issue Type: Improvement
          Components: core/clientapi
            Reporter: Damitha Kumarage


Adding following two methods to svc_client. These methods are useful so that 
one can define the target independantly of
wsa:to. Now the following scenario is possible. I can set the target endpoint 
as the tcpmon listening at a port and wsa:to as the actual target to send the 
request at.
/**
         * Gets the target endpoint ref.
         * @param svc_client pointer to service client struct
         * @param env pointer to environment struct
         * @return pointer to the endpoint_ref struct. Returns a reference,
         * not a cloned copy.
         */
        const axis2_endpoint_ref_t *(AXIS2_CALL *
                get_target_endpoint_ref)(
                    const axis2_svc_client_t *svc_client,
                    const axis2_env_t *env);

        /**
         * Sets the target endpoint ref. If this is not set then the target
         * is deduced from wsa to epr.
         * @param svc_client pointer to service client struct
         * @param env pointer to environment struct
         * @param target_epr pointer to the endpoint_ref struct to be set as
         * target. service client takes over the ownership of the struct.
         * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
         */
        axis2_status_t (AXIS2_CALL *
                set_target_endpoint_ref)(
                    axis2_svc_client_t *svc_client,
                    const axis2_env_t *env,
                    axis2_endpoint_ref_t *target_epr);


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to