HowTo: EJB talking to WebService

Discussions

XML & Web services: HowTo: EJB talking to WebService

  1. HowTo: EJB talking to WebService (2 messages)

    I'm trying to integrate existing Delphi 6 application that exposes its functionality as Web Services (WSDL)
    with EJB code.
    How to do this? Has anybody tried such a thing?

    Sandelf
  2. You should check out the "Developer's Guide to Building
    XML-based Web Services with the Java 2 Platform, Enterprise Edition (J2EE)" white paper located on the Resources Section of the site at

    https://www.theserverside.com/resources/pdf/J2EE-WebServices-DevGuide.pdf

    I think the white paper shows you how to call a webservice from EJB.
  3. HowTo: EJB talking to WebService[ Go to top ]

    You basically need to use any one of the many client API's out there (like GLUE or Apache SOAP) to make the call. One issue, is getting the outgoing socket from your container.

    Your container will need to support having socket factories in JNDI, so you will look up a URLConnection from JNDi and then pass it to your SOAP impementation to use.