This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Services and the fly likes Web services through jax rpc or soap which is better solution Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Web services through jax rpc or soap which is better solution" Watch "Web services through jax rpc or soap which is better solution" New topic
Author

Web services through jax rpc or soap which is better solution

inwish tandon
Greenhorn

Joined: Apr 06, 2005
Posts: 8
plz let me know
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 965

JAX-RPC uses SOAP. Maybe you could try and ask the question in another way so that we can understand what you are asking.


Please ignore post, I have no idea what I am talking about.
inwish tandon
Greenhorn

Joined: Apr 06, 2005
Posts: 8
Every book is written that u have two ways of making a web sevice ..
soap,,and xml rpc(jax rpc),, which one of the two
is used in the enterprise application development.Please let me..

Actually someone experienced could guide me please how to move abt making enterprise web sevrices....
[ April 07, 2005: Message edited by: inwish tandon ]
Saqib Rasul
Greenhorn

Joined: Apr 08, 2005
Posts: 11
SOAP is just a format that specified messages. what the messaging style looks like is given names like XML-RPC, Document-Literal. JAX-RPC lets you create Web Services clients and server-side code usuallu in the XML-RPC style.

But if you read through articles like this:

http://www-128.ibm.com/developerworks/java/library/ws-tip-j2eenet1/index.html

is suggests against the XML-RPC style web service. Read Part 2 and Part 3 of the above articles as well.

The only thing i can think of that would be important in an enterprise environemnt is interoperability. If this is the case, then i would recommend that you start with the WSDL, then try to use this WSDL in different environments: Java, .NET, Visual Studio and see how they handle it. Then start to implenent the back end code to handle the Web Service.

Hope this helps,

Saqib


<a href="http://galaxy.sagadc.com/" target="_blank" rel="nofollow">http://galaxy.sagadc.com/</a><br />- Web Services in 15 minutes -
inwish tandon
Greenhorn

Joined: Apr 06, 2005
Posts: 8
Please guide me .. how should i go about it all.. I know Ejbs..And i have learnt the basics of web services ,, quite well.
Saqib Rasul
Greenhorn

Joined: Apr 08, 2005
Posts: 11
Here is a guide to learn Web Services:

1. To learn Web Services you will also need to learn about XML Schema. So head over to the W3Schools and learn a bit about the Schema.

2. Once you have that, you need to learn about the WSDL and then SOAP. I think the W3School have tutorials about them too. You relly need to know the WSDL well. SOAP is relativly simple. The W3C site also has good docs about WSDLs.

3. Then get yourself a decent XML Editor that can handle Schemas and WSDLs. A good editor will be able to make a SOAP message out of a WSDL and fire it and you let you see the SOAP result.

4. Head over to the IBM DeveloperWorks website and learn a bit more about WSDL and interoperability.

5. Design your Schema and WSDL.

6. See if Axis or Jax-RPC help, otherwise, handle the SOAP messages yourself.

7. Just to test, run your WSDL through the Microsoft Office Web Services Toolkit 2.0 and see if it generated VB Code to run your Web Service. If the VB Code genration actually works, you have done well.

It does seem a lot, but i think it can be done in a week or so. A decent XML editor helps a LOT.

Send me a private message and I can let you know about Galaxy which lets you create Web Services without any coding, and is Free!

Hope this helps,

Saqib
Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
Hi Saqib,

I am new to Galaxy and inn what way Galaxy is different from Apache AXIS or JWSDP ? Please clarify ?


RR Kumaran
SCJP 1.4
Saqib Rasul
Greenhorn

Joined: Apr 08, 2005
Posts: 11
Hello Kumaran,

Galaxy is a Web Application that (amoung other featurs) creats Web Services from data sources: databases, LDAP and mainframe 3270 application. The basic and developer versions are free (even for commercial projects) and there is also an Eclipse Plugin.

For more information go to: http://galaxy.sagadc.com -> Documents -> FAQ

How is Galaxy different to AXIS or JAX-RPC? Well with AXIS or JAX-RPC are libraries that allow you to create client/server side code to consume or serve out web services. Galaxy lets you serve out data as Web Services without any coding.

If you have more questions about Galaxy ir want to know how Galaxy can help you then head over to the Galaxy Forums and dont be shy.

Regards,

Saqib
inwish tandon
Greenhorn

Joined: Apr 06, 2005
Posts: 8
Hi Saqib,

I m working on jbuilder.I want to use collections in the methods .. how s that possible , can u please elaborate..
Saqib Rasul
Greenhorn

Joined: Apr 08, 2005
Posts: 11
hi Inwish,

Can you elaborate more on what you are trying to achive.

Regards,

Saqib
inwish tandon
Greenhorn

Joined: Apr 06, 2005
Posts: 8
I wanted to ask what collections types are possible , that i can use in the ejbs..is there anything special i got to do ..
Saqib Rasul
Greenhorn

Joined: Apr 08, 2005
Posts: 11
Sorry, i am still not getting the full context of what you are trying to achieve. Can you explain to me the problem that you are trying to solve. Or at least more information. Once i know where you stand and where you want to be, perhaps i can show you a way to get there.

Regards,

Saqib
inwish tandon
Greenhorn

Joined: Apr 06, 2005
Posts: 8
I want to use HashMap and ArrayList in the Session bean i m exposing ..how's that possible.
Can i straight forward use these collections or do i need to create some wrapper.
FOr example..
public ArrayList getNames(String key){}
if i use this method in my session bean to send data back to client , will it work..
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Web services through jax rpc or soap which is better solution