Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

APACHE soap api vs SUN API

 
Brusk Baran
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java API for XML Messaging / SOAP with Attachments API for Java vs APACHE soap api
the interfaces are different. is this normal?
[ November 11, 2003: Message edited by: Brusk Baran ]
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apache SOAP is not supposed to be JAXM compliant, nor SAAJ compliant.
So as far as you are talking about Apahe SOAP 2.3, it seems "normal" to observe differences with the Sun's APIs.
If you are looking for a JAXM implementation...well, I don't know one :-)
But Axis 1.1 implements the SAAJ
[ November 11, 2003: Message edited by: Jean-Louis Marechaux ]
 
Brusk Baran
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is very complicated,
which packages and from where do I need in order to just do a simple SOAP MEssage creation with one body and 3 text nodes , send it, get the acknowledgement ?
i am lost in the deep c of xml processing!!!
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd suggest downloading one of the following, including all .jar files from the lib directory, and mimicking what the samples do:
  • Apache Axis
  • Java Web Services Developer Pack
  •  
    JeanLouis Marechaux
    Ranch Hand
    Posts: 906
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Originally posted by Brusk Baran:
    It is very complicated,
    which packages and from where do I need in order to just do a simple SOAP MEssage creation with one body and 3 text nodes , send it, get the acknowledgement ?
    i am lost in the deep c of xml processing!!!

    Brusk,
    Actually, it sounds like what you want to do is not that complicated.
    But I admit the documentation is sometimes really poor.
    There are several Webservices implementations. A free one is Axis. Actually, if you can, use Axis instead of Apache SOAP which is deprecated.
    Moreove, I believe th Axis Documentation is better.
    http://ws.apache.org/axis/java/user-guide.html
    If you download Axis 1.1 ()http://ws.apache.org/axis/download.cgi), you 'll obtain some sample files to understand how it works.
    HTH
     
    Brusk Baran
    Ranch Hand
    Posts: 132
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Salut Lasse & Jean-Louis,
    u are right. I will just use it to connect to a in c# written service and get the update of ok. and have not used soap before, it appears just very complicated to me where to start but hopefully I have...
    Thanks...
    Brusk
     
    Lasse Koskela
    author
    Sheriff
    Posts: 11962
    5
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    If you just want to crank out a working web service client, you could consider downloading a wsdl2java plugin for Eclipse and generating the client code from the C# web service's WSDL document. Then, you only need to include the correct libraries in your classpath and off you go
     
    Brusk Baran
    Ranch Hand
    Posts: 132
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thx Lasse,
    it helped a lot ...
    adieu,
    Brusk
     
    Howard Kushner
    author
    Ranch Hand
    Posts: 361
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Originally posted by Lasse Koskela:
    If you just want to crank out a working web service client, you could consider downloading a wsdl2java plugin for Eclipse and generating the client code from the C# web service's WSDL document. Then, you only need to include the correct libraries in your classpath and off you go

    I like the part about wsdl2java (which can also be done from the command line by the way), but I just gotta ask:
    What has C# (or B flat) got to do with it? :roll:
    Is this the "Java Ranch" or the "C# Ranch"?
     
    Lasse Koskela
    author
    Sheriff
    Posts: 11962
    5
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    What has C# (or B flat) got to do with it?
    Nothing. However, saying "the C# web service" instead of "the web service" leaves absolutely no ambiguity in which service is being referred to (not that "the web service" wouldn't have done it, but that's the only excuse I managed to come up with ).
    Is this the "Java Ranch" or the "C# Ranch"?
    I think we'll leave the C# Ranch theme for gotdotnet...
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic