Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8426873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:38:49+00:00 2026-06-10T04:38:49+00:00

I needed to get an old software (which I didn’t develop) to test an

  • 0

I needed to get an old software (which I didn’t develop) to test an old equipment. The equipment ‘talks’ to the server by webservices. These webservices are auto generated by axis (Axis takes a class and make webservices from it’s methods).

The problem is: the equipment was developed to read an xml like this:

<ns:getReferenceCurveResponse xmlns:ns="http://services.teste.org" xmlns:ax22="http://data.teste.org/xsd" xmlns:ax23="http://util.java/xsd">  
<ns:return type="org.teste.ReferenceCurve">  
<ax21:createdOn>2012-08-16 17:00:59.0</ax21:createdOn>  
<ax21:endPoint>9.2</ax21:endPoint>  
<ax21:fiberId>21</ax21:fiberId>  
<ax21:id>42</ax21:id>  

And now the webservice is coming like this:

<ns:getReferenceCurveResponse xmlns:ns="http://services.teste.org" xmlns:ax22="http://data.teste.org/xsd" xmlns:ax23="http://util.java/xsd">  
<ns:return type="org.teste.ReferenceCurve">  
<ax22:createdOn>2012-08-16 17:00:59.0</ax22:createdOn>  
<ax22:endPoint>9.2</ax22:endPoint>  
<ax22:fiberId>21</ax22:fiberId>  
<ax22:id>42</ax22:id>  

As you noticed the prefix in namespace has changed from ax21 to ax22 which is generating errors since the equipment was coded to prefix ax21.

I’ve dug for a solution but could not find. I have recompiled the server side, also without success. I couldn’t find anywhere to change this namespace prefix, since is auto-generated by Axis2

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:38:50+00:00Added an answer on June 10, 2026 at 4:38 am

    I couldn’t find anything to fix this.

    Since it’s for testing locally (The server side, is up and running in out client) and since this change would affect only server side, I’ve managed to change the namespace prefix ‘ax22’ to ‘ns’

    You can do that by adding this tag to services.xml:

    <schema schemaNamespace="http://your.package.inverted/xsd"/>
    

    Like, if you have the com.google.something package, it should be like this:

    <schema schemaNamespace="http://something.google.com/xsd"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've set up a perforce server on an old always-on laptop which is always
If I needed to get NHibernate to support more databases (not included in the
I want to make one project that parse wiki pages and get needed information
I could get the handle to the google text doc i needed. I am
i needed help. How do i get domain from a string? For example: Hi
I can't get why, but suddenly some css broke and I was needed to
** EDIT ** Nevermind, just needed to take out the parens... I get this
Needed to write a server text file as the output of a business process
Disclaimer: this is needed for an old and ugly codebase that I'd much rather
I'm trying to use plain old java objects(POJO)'s and regular class files where needed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.