• Post Reply Bookmark Topic Watch Topic
  • New Topic

Web services through jax rpc or soap which is better solution  RSS feed

 
inwish tandon
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
plz let me know
 
William Barnes
Ranch Hand
Posts: 1048
2
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAX-RPC uses SOAP. Maybe you could try and ask the question in another way so that we can understand what you are asking.
 
inwish tandon
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
inwish tandon
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Saqib,

I am new to Galaxy and inn what way Galaxy is different from Apache AXIS or JWSDP ? Please clarify ?
 
Saqib Rasul
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Inwish,

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

Regards,

Saqib
 
inwish tandon
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!