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 7926809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:57:14+00:00 2026-06-03T18:57:14+00:00

I have some 10 year old Java code for calling a legacy SOAP authentication

  • 0

I have some 10 year old Java code for calling a legacy SOAP authentication service. The WSDL is RPC:ENCODED and contains many typos. I was hoping to easily convert the old code to Axis 1.4 or something, but ran into snags. Everything I looked at wanted to use the WSDL. Can someone help translate this into modern code that doesn’t require the faulty WSDL?

Here’s the SOAP call section:

    SOAPMappingRegistry soapmappingregistry = new SOAPMappingRegistry();
    BeanSerializer beanserializer = new BeanSerializer();

    soapmappingregistry.mapTypes(Constants.NS_URI_SOAP_ENC, new QName(
            "urn:xml-soap-session-demo", "authenticationresult"),
            AuthenticationResult.class, beanserializer, beanserializer);
    Call call = new Call();
    call.setSOAPMappingRegistry(soapmappingregistry);
    call.setTargetObjectURI("urn:Security");
    call.setMethodName("authenticate");
    call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
    Vector<Object> vector = new Vector<Object>();
    vector.addElement(new Parameter("app", String.class, "PHS", null));
    vector.addElement(new Parameter("user", String.class, userName, null));
    vector.addElement(new Parameter("password", String.class, password, null));
    vector.addElement(new Parameter("encryption", Integer.class, new Integer(0), null));
    call.setParams(vector);
    Response response = null;
    URL endpointURL = new URL(endpoint);
    response = call.invoke(endpointURL, "");
    if (!response.generatedFault()) {
        Parameter parameter = response.getReturnValue();
        Object obj = parameter.getValue();
    ...
    }

Many thanks.

  • 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-03T18:57:16+00:00Added an answer on June 3, 2026 at 6:57 pm

    Well, most soap frameworks relies on the WSDL standard a lot. Axis, CXF, Spring WS etc. I think you could try Spring WS. It has saved me a couple of times when you don’t know or want to use the entire WSDL (but knows how the payload should be encoded).

    However, why do you even want to port that thing if the service is full of type-o:s? Old client, old service – why don’t you keep it that way and upgrade the code once the service has been replaced with something without type-o:s? I don’t think you will end up with something less ugly anyway.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some Java code which performs bitwise operations on a BitSet. I have
I'm working on a 10-year-old Java webapp, and I would like to introduce some
We currently have a 10 year old nasty, spaghetti-code-style SQL Server database that we
I have some XML which contains records and sub records, like this: <data> <record
I have some jquery code that is doing an ajax lookup and returning comma
I have some code which populates a hashtable with a question as the key
I've been helping augment a twenty-some year old proprietary language within my company. It
I have inherited a 20-year-old interactive command-line unix application that is no longer supported
there is a year old, similar question - but in case there have been
We have a 12-year-old Ms Access app that we use for our core inventory

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.