File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Unclear Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Unclear" Watch "Unclear" New topic
Author

Unclear

Hakan Akkaya
Greenhorn

Joined: Nov 21, 2001
Posts: 18
Hi all,

I�ve made a Jframe on which i can start a Web Service.
When i click the Button "Best�tigen" a method startwebservice is called. This belongs to a EJB and this one does nothing else then writing a XMl message with the Number (99) and drops it into a JMS Queue. What i don�t understand is following:
Where is SOAP? I think that the Connection betwenn the EJB and the Client is done over http but where is then SOAP ? As i can see in the examples there is following code in the CLient:
String url = URL;
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.soap.http.SoapInitialContextFactory");
h.put("weblogic.soap.wsdl.interface",
EJBRemote.class.getName() );
h.put("weblogic.soap.verbose", "true" );
Context context = new InitialContext(h);
EJBRemote service = (EJBRemote)context.lookup(url+"/Ejb/statelessSession.EjbHome/statelessSession.EjbHome.wsdl");
// EJb -Call
service.starteWebservice(nummer);
Can yu please explain me, why the weblogic.soap.wsdl.interface is needed and what it does?
Could you please explain me , what here happens. I mean why this EJBRemote service = (EJBRemote)context.lookup(url+"/Ejb/statelessSession.EjbHome/statelessSession.EjbHome.wsdl") ?
I thought that WSDL is nothing else than a description language? Why is this line needed here?
I�ve been looking for this for now 3 Weeks and i don�t knw what else to do .
I hope you can help me .

Thank you in advance..
Ragu Sivaraman
Ranch Hand

Joined: Jul 20, 2001
Posts: 464
Originally posted by Hakan Akkaya:
Hi all,

I�ve made a Jframe on which i can start a Web Service.
When i click the Button "Best�tigen" a method startwebservice is called. This belongs to a EJB and this one does nothing else then writing a XMl message with the Number (99) and drops it into a JMS Queue. What i don�t understand is following:
Where is SOAP? I think that the Connection betwenn the EJB and the Client is done over http but where is then SOAP ? As i can see in the examples there is following code in the CLient:
String url = URL;
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.soap.http.SoapInitialContextFactory");
h.put("weblogic.soap.wsdl.interface",
EJBRemote.class.getName() );
h.put("weblogic.soap.verbose", "true" );
Context context = new InitialContext(h);
EJBRemote service = (EJBRemote)context.lookup(url+"/Ejb/statelessSession.EjbHome/statelessSession.EjbHome.wsdl");
// EJb -Call
service.starteWebservice(nummer);
Can yu please explain me, why the weblogic.soap.wsdl.interface is needed and what it does?
Could you please explain me , what here happens. I mean why this EJBRemote service = (EJBRemote)context.lookup(url+"/Ejb/statelessSession.EjbHome/statelessSession.EjbHome.wsdl") ?
I thought that WSDL is nothing else than a description language? Why is this line needed here?
I�ve been looking for this for now 3 Weeks and i don�t knw what else to do .
I hope you can help me .

Thank you in advance..

It seems to me that ejb's in this case are functioning as websvcs so that they have their own wsdl, which enables other clients(java, c#) to utilize the service with the help of SOAP
SOAP implementations do vary from appserver to appserver and most of them are proprietary.. If it is Apache-SOAP then it is very modular where you can retain the ejb's as such and just wrap it around with soap-rpc so that it can serve dual purposes of being a java-ejb bean serving java client through rmi or so,,, and be a websvcs and serve other clients like c# via SOAP..
I am not very savvy with weblogic-soap implem, so i am unable to give the technical-knowhow of the code ...
Hope it helps
Ragu
Jim Baiter
Ranch Hand

Joined: Jan 05, 2001
Posts: 532
Have you looked at these docs?
http://e-docs.bea.com/wls/docs61/webServices/client.html#1032801
You can invoke the web service without using the WSDL file. See the URL below.
http://e-docs.bea.com/wls/docs61/webServices/advanced.html

Originally posted by Hakan Akkaya:
...
Can yu please explain me, why the weblogic.soap.wsdl.interface is needed and what it does?
Could you please explain me , what here happens. I mean why this EJBRemote service = (EJBRemote)context.lookup(url+"/Ejb/statelessSession.EjbHome/statelessSession.EjbHome.wsdl") ?
I thought that WSDL is nothing else than a description language? Why is this line needed here?
I�ve been looking for this for now 3 Weeks and i don�t knw what else to do .
I hope you can help me .

Thank you in advance..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unclear