Hi All,
I want to consume a web service published by XI in my EJB.
XI team has given me wsdl file for consuming webservice. With the help of this wsdl file I have created a deployable proxy. If I expand this proxy in NWDS I can see 4 things
1. Logical Port- In this there is a port xyzPort.
2. Proxy Classes
3. SEIs- In this there are 2 classes are there
a. one class some ABC extending from extends java.rmi.Remote,javax.xml.rpc.Stub
b. second is suppose STU extends javax.xml.rpc.Service.
4. wsdl file
I got some code on help.sap for consuming webservice as follows:
<b>public void ejbCreate() throws CreateException {
try {
InitialContext ctx = new InitialContext();
CreditLimitCheck obj = (CreditLimitCheck) ctx.lookup("java:comp/env/CreditLimitCheckProxy");
CreditLimitCheckViDocument port = (CreditLimitCheckViDocument) obj.getLogicalPort("DEFAULTPort_Document", CreditLimitCheckViDocument.class);
this.port = port;
} catch (Exception e) {
throw new CreateException(e.toString());
}</b>
but I am not getting which are these 2 classes CreditLimitCheck and CreditLimitCheckViDocument. What these classes indicates.
Also as given in code from where can I get jndi lookup name("CreditLimitCheckProxy")
Please help me out.
cheers
jayant