This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Axis and Document/Literal web service  RSS feed

 
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 ??
 
author and deputy
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
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
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.
 
author
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)
 
author
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
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
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
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
 
So I left, I came home, and I ate some pie. And then I read this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!