wood burning stoves*
The moose likes Web Services and the fly likes Axis and Document/Literal web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis and Document/Literal web service" Watch "Axis and Document/Literal web service" New topic
Author

Axis and Document/Literal web service

JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Hia ll,
Need some Axis specialist here.
Until now, I had to concentrate on Apache SoAP 2.3. With this SOAP implementation, the way to "simulate" a DocLit service is to have an object which signature is :
org.w3c.org.Element myMethod(org.w3c.org.Element myArg)
Now with Axis 1.1, what is supposed to be my signature ?
is it the same than in Apache SOAP or:
org.w3c.org.Document myMethod(org.w3c.org.Document myArg)
or something else..... ??
Lasse, Kyle, Others ??


/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
please have a look at the example provided by axis http://cvs.apache.org/viewcvs/ws-axis/java/samples/encoding/ you can see this example files under the samples/encoding directory of Axis package


Spritle Software Blogs
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Thanks a lot Balaji but...
The service you mention (ElementService.wsdl) is a rpc/encoded (according to its wsdl)
I want to publish a Document/Literal service
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Sorry I did not read your question properly.
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Thanks anyway Balaji
Anyone could answer this question ?
Don't tell me there is no Axis users out there !!
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by Jean-Louis Marechaux:
Thanks anyway Balaji
Anyone could answer this question ?
Don't tell me there is no Axis users out there !!

Actually I have been using axis for few months and found its NOT really stable for DOC/LIT service, many other users were also file'n lot of bugs on axis doc/lit service BUT axis is best product for RPC and Message based service and also interoperable with may other soap implementations.
Howard Kushner
author
Ranch Hand

Joined: Sep 19, 2003
Posts: 361
DOC/LIT works fine in WebSphere Studio Application Developer v5.1, but that is not, strictly speaking, AXIS, but an IBM derivative, so YMMV.


Howard Kushner<br />IBM Certified Enterprise Developer - WebSphere Studio Application Developer V5.0<br />IBM Certified Advanced System Administrator - WebSphere Application Server V5.0<br />IBM Certified Solution Developer - Web Services with WebSphere Studio V5.1<br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1931182108/" target="_blank" rel="nofollow">Developing J2EE Applications with WebSphere Studio</a> my Certification Study Guide for IBM Test 287
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Originally posted by Howard Kushner:
DOC/LIT works fine in WebSphere Studio Application Developer v5.1, but that is not, strictly speaking, AXIS, but an IBM derivative, so YMMV.

WSAD 5.1 ??
I only have WSAD 5.01.
Is 5.1 an upgrade available for a long time ??
WSDA 5.0.x only uses Apache SOAP 2.3, not Axis-like stuff as far as I know.

BTW, what is the signature of an DOC/LIt Axis method ??
It was my former question you know (look at the first post here)
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
If you use java2wsdl, the following parameters specify that the output wsdl should be for document literal:
These parameters produce the following output for a simple service class with the above mentioned signature:When changing the parameters to DOCUMENT and ENCODED, the output isNot much difference...
[ October 31, 2003: Message edited by: Lasse Koskela ]

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Howard Kushner
author
Ranch Hand

Joined: Sep 19, 2003
Posts: 361
Originally posted by Jean-Louis Marechaux:

WSAD 5.1 ??
I only have WSAD 5.01.
Is 5.1 an upgrade available for a long time ??
WSDA 5.0.x only uses Apache SOAP 2.3, not Axis-like stuff as far as I know.


I have had v5.1 since early August. If you're 5.0.1 then you gotta at least go 5.0.2, I would say, but that's still Apache SOAP... yawn.
To me the Apache SOAP was okay for the time being, but ever since I read Steve Graham's book I have been yearning for Axis... so now IBM has something that I really like and will be getting better and better!
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Thanks a lot guys.
What would be my (professional) life without the JavaRanchers :roll:
So the signature with Axis is the same than with Apache Soap (which is a good news for me !)
Lasse, why do you want to change from DOC/LITERAL to DOC/ENCODED ???
Is there any technical reason for that, because it is not recommended by the WS-I Basic Profile !
[ November 03, 2003: Message edited by: Jean-Louis Marechaux ]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Jean-Louis Marechaux:
Lasse, why do you want to change from DOC/LITERAL to DOC/ENCODED ???
Is there any technical reason for that, because it is not recommended by the WS-I Basic Profile !

I don't. I probably included both document styles because of a magnetic storm in the sun...
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Originally posted by Lasse Koskela:

I don't. I probably included both document styles because of a magnetic storm in the sun...

Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
I also generated two other variants using the WRAPPED style (just to see what the heck it is...) but for some reason, I didn't post those. Apparently the storm didn't last that long
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis and Document/Literal web service