| Summary | This article clarifies how to specify a SOAP/HTTP endpoint as a callback for a CORBA backend when using the Artix router. |
|---|---|
| Environment |
Artix 5.6.2 C All Supported Operating Systems |
| Question/Problem Description |
How to pass a SOAP/HTTP callback reference to an Artix router for a CORBA backend? Passing SOAP/HTTP endpoint references to an Artix router in front of a CORBA server. |
| Clarifying Information |
Assume the following scenario. You need to expose a CORBA backend application to SOAP/HTTP Web Services clients through an Artix router and the IDL for the CORBA backend defines that a reference (callback reference) needs to be passed into method calls. The WSDL generated out of the IDL will contain EndpointReferenceType types as input parameters. The Artix router proxifies transient references when a reference is passed from the client to the backend server or vice versa. This proxy is then used to invoke the methods and apply the protocol conversion (SOAP/HTTP <-> CORBA) This article clarifies how to pass in SOAP/HTTP callback reference, so that the Artix router is able to proxify it and so that a CORBA backend application is able to call back on the Web Services SOAP/HTTP client. The above scenario is common in a publish-subscribe type of application. In order to quickly test a SOAP/HTTP method exposed by the router a tool like SoapUI is being used. |
| Error Message | |
| Defect/Enhancement Number | |
| Cause | |
| Resolution |
On the client SOAP/HTTP side there are two mandatory pieces of information necessary in the SOAP message in order for the Artix router to be able to proxify a callback reference:
Below is an example. Assuming the IDL is defined as follows in pubsub.idl interface Subscriber { When using SoapUI and loading the WSDL generated out of the IDL by the Orbix/Artix compiler with idl -wsdl pubsub.idl the sample request for the registerSubscriber message will need to look like below: <soapenv:Envelope Once the above message is passed through the Artix router, it will get proxified and the CORBA backend will be able to invoke notify calls on this proxy. These calls will be translated into SOAP/HTTP requests by the Artix router and invoked on the SOAP/HTTP callback endpoint exposed by the client. |
| Workaround | |
| Notes | |
| Attachment |
#KnowledgeDocs
#Orbix