• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis and Document/Literal web service

 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ??
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry I did not read your question properly.
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DOC/LIT works fine in WebSphere Studio Application Developer v5.1, but that is not, strictly speaking, AXIS, but an IBM derivative, so YMMV.
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Howard Kushner
author
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic