Hi All, This is relevant to WSO2 ESB 4.9.0.
In WSDL attached [1 <https://drive.google.com/a/wso2.com/file/d/0B-0UyBaVrBStMDczTkRmMkhxcDg/view?usp=drive_web>], there are five TwoChannelAxisOperation(s) and one InOnlyAxisOperation. In such situation, if we create a single proxy service in ESB with configuration [2 <https://drive.google.com/a/wso2.com/file/d/0B-0UyBaVrBStV3NhTG4wMWhvRFE/view?usp=drive_web>], InOnlyAxisOperation will fail with below exception : ERROR - NativeWorkerPool Uncaught exception > java.lang.UnsupportedOperationException: An access occurred that is not > valid. > at > org.apache.axis2.description.InOnlyAxisOperation.getMessage(InOnlyAxisOperation.java:117) > ..... > It was observed that it is possible to use "OUT_ONLY" and "FORCE_SC_ACCEPTED" to correct this [3 <https://docs.wso2.com/display/ESB481/Sample+12%3A+One-Way+Messaging+in+a+Fire-and-Forget+Mode+through+ESB>] [4 <https://docs.wso2.com/display/ESB481/HTTP+Transport+Properties#HTTPTransportProperties-FORCE_SC_ACCEPTED>]. But relevant transport property applies to endpoint, resulting in TwoChannelAxisOperation to fail if applied. When creating proxy service for a web service, what is the best practice to follow in order to avoid this type of problems? Do we create, - separate proxy services for each set of operations - use "switch" or "filter" mediator in the "in sequence" and "send" to OUT_ONLY endpoint depending on operation or what is the best path to follow? [1] https://drive.google.com/a/wso2.com/file/d/0B-0UyBaVrBStMDczTkRmMkhxcDg/view?usp=drive_web <https://drive.google.com/a/wso2.com/file/d/0B-0UyBaVrBStR0x4TUR6LWJkYnM/view?usp=drive_web> [2] https://drive.google.com/a/wso2.com/file/d/0B-0UyBaVrBStV3NhTG4wMWhvRFE/view?usp=drive_web [3] https://docs.wso2.com/display/ESB481/Sample+12%3A+One-Way+Messaging+in+a+Fire-and-Forget+Mode+through+ESB [4] https://docs.wso2.com/display/ESB481/HTTP+Transport+Properties#HTTPTransportProperties-FORCE_SC_ACCEPTED Thanks and best regards, Ayoma Wijethunga Software Engineer WSO2, Inc.; http://wso2.com lean.enterprise.middleware Mobile : +94 (0) 719428123 <+94+(0)+719428123> Blog : http://www.ayomaonline.com LinkedIn: https://www.linkedin.com/in/ayoma
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
