Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Himai Minh

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

Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic