• Post Reply Bookmark Topic Watch Topic
  • New Topic

axis and axis 2  RSS feed

 
swapnil paranjape
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

I have host address and port of the given webservice. I have written the javaclass client to send request and receive response using AXIS 1.4 (old version). i am able to get the response.

But my client wants to me use axis 2 . There is no defined wsdl. I am not sure if you can develop java client / stub etc in axis 2 without wsdl.

Can I generate the stub and java client using wsdl2java with just host and port address without wsdl file. If I form url http://hostname:port i can see the xml file.

Please help.
 
Michael Bronshteyn
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like you have some custom made web service which is using some servlet to get the post.

I do remember using similar web service without WSDL. It was some awkward custom made web service which required posting xml document via HTTP. If this is your case, you can use HTTPClient and post xml.

But to make a long story short, you do need wsdl to use wsdl2java.

Hope it helps.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!