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

designing a service

peter cooke
Ranch Hand

Joined: Mar 16, 2004
Posts: 317
I am learning webservices. Ok My company for all intensive purposes in manually performing some B2B funcionality.

I am trying to sell them the idea of a soap based service for thier B2B processing.

I know:
All the details that need to be passed in a soap message.

what pieces must be encrytped.

that some signature must be added to verify that the person sending the soap request is authorized.

I need to attach images to the soap request as part of the processing.

What I do not have a clue is where to proceede from here.
Guidance please

CIAO Peter M. Cooke
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
If you want to know if Web Services can fit your needs, the answer is yes, according to what you explained in your post.
There are several items in WS, such s WS-Security, encryption, binary attachments (SAAJ), and so forth...

If you want to obtain clues about how to design a web service for a b2b solution, I'm not sure such a generic question can be answered in a forum. But if you have any specific question, go ahead.

/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
peter cooke
Ranch Hand

Joined: Mar 16, 2004
Posts: 317
This is one of the most intimiating a learning expriences I have had in a very long time. I want to keep from going down the wrong path.

QUESTION)I know what the buisness requirements would be, for a valid soap message. So It makes sense for me to start by building a progam, that will create a soap message, send the soap message some where that trigger some action. Then figure you how what I need to do to register my service somewhere on my network.


QUESTION)I can easily chose to send my soap message to a servlet over HTTP.
Why would I choose a statless EJB? (I want to use an EJB for the experience but I would need to justify the an ejb container)

QUESTION) Registrys. What are my options? Since my company does not have a commitment to any particular registry implementations. Any recommendtions.

Currently I have written a java application that will create some test soap message, envelope, and body, and I can write that soap message to the file system.

QUESTION) Is there some "SOAP message format" for dummies

Question) in the soap body I add a header and some text. In the example code I used both header and made body elements :


name= SOAPFactory.newInstance().createName("manufacturer");
bodyElement= body.addBodyElement(name);

what the program generates is:
"<manufacturer xmlns="">ford</manufacturer>"
Why does the xmlns occur here???
Why would I declare a name space?

Very LONG SHOT but hope someone knows. some of the buisnesses calling this busness process have/use IBM mainframes using cobal and RPG. Apparently enabling AS400's or 390's to do HTML requests is very expensive.
Any suggestions on how to enable a remote mainframe contact my service.
The other limitation is that the remote mainframe has very limited programmer staff and almost none of it has java exprience.
peter cooke
Ranch Hand

Joined: Mar 16, 2004
Posts: 317
Ok after doing some more learning.
If I know the types of information, and transport security rules of the data I need to perform my buisness process.

is JAX-RPC a magic bullet that will allow me to specify the data and the rules by which my data must go over the wire, and then have JAX-RPC build the soap message for me?
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Yes, Jax-RPC will build the SOAP message for you, according to a bunch of parameters you have to specify (encoding style for instance). You can do it designing a WSDL and then generating the JAX-RPC client.
For the data itself, your XML payload can come with a XSD schema to specify its content and some values.
I agree. Here's the link:
subject: designing a service
It's not a secret anymore!