Skip to Content
avatar image
Former Member

Consume web service using EJB

I am trying to consume a web service by following the tutorial listed here:

I've created and deployed a proxy to the server.

I am now creating an EJB to call the proxy and am having trouble with the following lines of code listed in the tutorial:

InitialContext ctx = new InitialContext();

CreditLimitCheck obj = (CreditLimitCheck)


CreditLimitCheckViDocument port = (CreditLimitCheckViDocument)



this.port = port;

I'm not sure which objects the CreditLimitCheck and CreditLimitCheckViDocument are referring to?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 29, 2009 at 03:50 AM

    Hi Michael,

    CreditLimitCheck and CreditLimitCheckViDocument are the two Service Endpoint Interfaces (SEI) that get created in the Proxy project in the tutorial that you have mentioned.

    The procedure to call the proxy is

    1. To create the Proxy object by referring to its JNDI name.

    2. Create the Logical Port Object using the Proxy Object.

    3. Using the Logical Port object, call the relevant Web service operations.

    Hope it helps.



    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 29, 2015 at 04:33 PM

    This message was moderated.

    Add comment
    10|10000 characters needed characters exceeded