We will show how to make J component available as a web service and consume it with a .NET client here, as well as a Mac SOAP Client or J SOAP Call.

Exposing J Service

Here we will see how to expose J component as a SOAP web service without writing any code, just configuring Windows Component Services.

Creating COM+ Application

Here we will expose J.dll as a COM+ application. To learn more about various selection user the [?] title button and point the mouse to the option of interest.

JApp.png

COM+ Application-Container

J Component

Now JApp is ready to be consumed as a COM+ component.

SOAP Service

Navigate to http://localhost/JApp/ so see the wsdl interface of JDLLServer component.

Consuming J Service

Now we will create some client applications to consume the SOAP service.

.NET Web Service Client

JSoapClient.png

Adding Web Reference

To verify, in Solution Explorer, under Web References, double-click Local_JApp to see the interfaces in Object Browser. The JDLLServerClassService is the one we are going to work with. There are other interfaces to do async calls, etc.

Calling Web Service

}}}

} }}}

Java Web Services Client

Since J component is exposed as a web service it would be possible to consume it from different machines using any language that can call SOAP web services, or even just can make an HTTP request.

We will next show how to access J web service using Mac SOAP Client. Also it can be accessed with Java EE features.

See Also

Interfaces/SOAP Web Service (last edited 2008-12-08 10:45:49 by )