Win a copy of Pragmatic AI this week in the Artificial Intelligence 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 ...
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Joe Ess

my webservice supports Axis1.x but not Axis2.x ,so is it the compatibility issue?  RSS feed

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one web service and i want to test whether it supports Axis1.x and Axis2.x or not?

I tried to create the stubs classes using Axis 2-1.2 , the stubs classes are generated successfully. But when I used this
stubs classes in my client side code and sent the soap request to one service method ,

It returned me an error

"run rg.apache.axis2.AxisFault: Transport: Unable to parse XML

no element found at line 1, column 0, byte -1 at
line 187"

So i used lower version of Axis 1.3.0 and generated stubs from wsdl file and used that stubs in my client side code.when i sent the request to one of the service method i get the correct response from web service.

so could you guys please let me know whether this is the versioning issue.please share your knowledge on the same.
But i am just wondering if my web service supports Axis1 it should be compatible with Axis2.

I also observed that the stubs classes created using Axis2 and Axis1 are totally different ,i guess it would be different ways creating stubs for Axis 1 and Axis2,please share your thoughts if anyone knows more on it

Following ar 2 client side code(for stubs generated using Axis1 and Axis 2) that i used to call the service method.

Using stubs classes generated by Axis 1.3.0: which runs successfully
Note :returned output is of String type

UserSyncService userSyncService=new UserSyncServiceLocator();

catch(Exception ex)

Using stubs classes created using Axis 2-1.2:

UserSyncServiceStub stubClass=new UserSyncServiceStub();

UserSyncServiceStub.Test test=new UserSyncServiceStub.Test();

UserSyncServiceStub.Test0 testo=new UserSyncServiceStub.Test0();


catch(Exception ex)

It returned me an error

Your valuable suggestions will really help me.
Thanks In advance
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!