• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unclear

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
 
Ranch Hand
Posts: 464
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..

 
And then we all jump out and yell "surprise! we got you this tiny ad!"
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic