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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:44:40+00:00 2026-05-28T07:44:40+00:00

It´s showing the following error and I have not idea why, can someone help

  • 0

It´s showing the following error and I have not idea why, can someone help me?

The error is:

Couldn’t create SOAP message due to exception: XML reader error:
com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ‘[‘
(code 91) in prolog; expected ‘<‘ at [row,col {unknown-source}]: [1,1]

The function I´m making the call is:

private static ContractTermsDownloadReply contractTermsDownloadOperation(
        ContractTermsDownloadRequest body) {
    ContractTermsDownload service = null;
    try {
        URI uri = new URI("https://companyname.com/ContractTermsDownload");
        service = new ContractTermsDownload(uri.toURL());
    } catch (Exception ex) {
        Logger.getLogger(JavaApplication1.class.getName()).log(
                Level.SEVERE, null, ex);
    }

    ariba.sourcing.vrealm_1461.ContractTermsDownloadPortType port = service
            .getContractTermsDownloadPortType();
    BindingProvider prov = (BindingProvider) port;
    prov.getRequestContext().put("authorization",
            "Basic User2011:Password2011");

    try {
        ContractTermsDownloadReply reply = port
                .contractTermsDownloadOperation(body);
        return reply;
    } catch (Exception exc) {
        System.out.println(exc.getMessage());
    }
    return null;
} 
  • 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-05-28T07:44:41+00:00Added an answer on May 28, 2026 at 7:44 am

    At the end I had to use the CFX library and it worked fine, the code is this:

    Client client = ClientProxy.getClient(contractTermsDownloadPortType);
    client.getOutInterceptors().add(new AbstractOutDatabindingInterceptor(Phase.MARSHAL) {
    
            public void handleFault(Message message) {
            }
    
            public void handleMessage(Message message) throws Fault {
                MetadataMap<String, Object> headers = new MetadataMap<String, Object>();
                headers.putSingle("authorization", "Basic User:Password2012");
                message.put(Message.PROTOCOL_HEADERS, headers);
            }
        });
    

    Hope this will help someone, because it was a nightmare.

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

Sidebar

Related Questions

I have just started using SlickGrid and was hoping someone can help me solve
it is showing me following error when i m opening http://localhost:3000/store **We're sorry, but
I am preparing android application which is showing the following error: 03-21 17:30:41.988: E/AndroidRuntime(782):
While I am running this code it showing me a following error:- Column 'virtuemart_product_id'
I have requirement as following like showing ABPeoplePickerNavigationController in tabbar based application. I researched
I have the following lines showing up in files that have been converted to
i wrote following code to create a linkbutton programmatically, but its showing like lable
Following error is showing in Maven console everytime I do Project -> Clean. Only
I have one application for showing the map but it is not working does
I am not sure why the On Error goto does not handle the following

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.