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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:22:24+00:00 2026-05-24T06:22:24+00:00

I have the following code which connects to a oracle database via soap, creates

  • 0

I have the following code which connects to a oracle database via soap, creates an XML Blob and returns it to the screen.

I am receiving the following error, and cannot figure out why.

array(3) {
  ["faultcode"]=>
  string(11) "soap:Client"
  ["faultstring"]=>
  string(22) "Error processing input"
  ["detail"]=>
  array(1) {
    ["OracleErrors"]=>
    string(39) "
        Incorrect Input Doc/URL
      "
  }
}

I am using the following function to call a stored procedure.

function getUsersData(){

    $xmlfunc    = 'GETUSERS';
    $pkg            = 'JSON_EXPORTS';
    $inparam    = array("SESSIONHASH-VARCHAR2-IN" => $_SESSION['sessionhash']);

    $outparam = array("USERSDATA-XMLTYPE-OUT");

    $oradb = oradb::getconnection();
    $oradb->newxml($xmlfunc,$pkg,$inparam,$outparam);

    $result = $oradb->getxml(false,false,false,true);

    print_r($result);

}

This is the stored procedure I am calling:

CREATE OR REPLACE PACKAGE BODY vivouser.json_exports IS
 -- @Oracle bexV2

  PROCEDURE getusers(sessionhash  IN VARCHAR2,
                     usersdata    OUT XMLTYPE)
  IS
    p_companyid     number;
    p_storegroupid  number;
    p_userid        number;
  BEGIN

  bexcore.checksessionid(sessionhash, p_companyid, p_storegroupid, p_userid);

  usersdata := bexcore.CreateXMLData(
    'select userid, 
        tbu.companyid, 
        tbu.firstname, 
        tbu.middlename, 
        tbu.lastname, 
        tbu.gender, 
        tbu.payrollnumber, 
        tbu.ismanager, 
        tpt.description, 
        tpt.wagerate 
    from tbuser tbu
        left join tbposition tbp using (USERID)
        left join tbpositiontype tpt using (POSITIONTYPEID);'
    );

  END getusers;

END json_exports;

Also, please note: $_SESSION[‘sessionhash’] is proven to be a logical hash value. All other soap calls using this format function as expected. Bexcore.checksessionid is also proven to be valid, and not the cause of this error, as is bexcore.createXmlData (they are each used in thousands of other cases in the same way and run as expected.)

  • 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-24T06:22:25+00:00Added an answer on May 24, 2026 at 6:22 am

    The problem I was having, was that the user accessing the database did not have permissions set to allow calling the requested packages.

    use

    grant all on <packagename> to <user>;

    to solve this problem.

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

Sidebar

Related Questions

I have the following code, which connects to a web service and returns an
I have the following code in my C# class which remotely connects to a
I have the following code which creates a dynamic object that is assigned to
I have the following code block which connects out to a secure service (payment
I'm trying to use opengl in C#. I have following code which fails with
I have following Code Block Which I tried to optimize in the Optimized section
I have the following code which works just fine when the method is POST,
I have the following code which works fine. However, I only want to return
Okay so I have the following Code which appends a string to another in
I have the following JQuery code which does similar functionality like Stackoverflow where the

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.