SOA Gateway xml output when using refcursor as a parameter type
I'm trying to use a webservice in my Oracle Application. In my Pl/SQL procedure i have an out parameter of type refcursor
PROCEDURE LISTE_FOURNISSEUR (liste_fournisseurs out SYS_REFCURSOR)
But when i call the webservice i get the response in this format
<LISTE_FOURNISSEURS>
<Row>
<Column name="CODE_FOURNISSEUR" sqltype="VARCHAR2">1</Column>
<Column name="VENDOR_NAME" sqltype="VARCHAR2">IAM</Column>
<Column name="ICE" sqltype="VARCHAR2">1</Column>
<Column name="NIF" sqltype="VARCHAR2">1</Column>
<Column name="RC" sqltype="VARCHAR2">1</Column>
<Column name="ADDRESS_LINE1" sqltype="VARCHAR2">Casa</Column>
<Column name="CODE_PORT" sqltype="NUMBER">101</Column>
<Column name="BANK_ACCOUNT_NUM" sqltype="VARCHAR2"></Column>
</Row>
<Row>
<Column name="CODE_FOURNISSEUR" sqltype="VARCHAR2">1</Column>
<Column name="VENDOR_NAME" sqltype="VARCHAR2">IAM</Column>
<Column name="ICE" sqltype="VARCHAR2">1</Column>
<Column name="NIF" sqltype="VARCHAR2">1</Column>
<Column name="RC" sqltype="VARCHAR2">1</Column>
<Column name="ADDRESS_LINE1" sqltype="VARCHAR2">Casa</Column>
<Column name="CODE_PORT" sqltype="NUMBER">141</Column>
<Column name="BANK_ACCOUNT_NUM" sqltype="VARCHAR2"></Column>
</Row>
</LISTE_FOURNISSEURS>
But i want my result to be as the following
<LISTE_FOURNISSEURS>
<FOURNISSEUR>
<CODE_FOURNISSEUR>1</CODE_FOURNISSEUR>
<VENDOR_NAME>IAM</VENDOR_NAME>
<ICE>1</ICE>
<NIF>1</NIF>
<RC>1</RC>
<CADDRESS_LINE1>Casa</CADDRESS_LINE1>
<CODE_PORT>101</CODE_PORT>
<BANK_ACCOUNT_NUM></BANK_ACCOUNT_NUM>
</FOURNISSEUR>
</LISTE_FOURNISSEURS>
The issue doesn't happen when i use other output parameters (Varchar2, number,...)
Is there any way to get the wanted results
xml plsql oracleapplications
add a comment |
I'm trying to use a webservice in my Oracle Application. In my Pl/SQL procedure i have an out parameter of type refcursor
PROCEDURE LISTE_FOURNISSEUR (liste_fournisseurs out SYS_REFCURSOR)
But when i call the webservice i get the response in this format
<LISTE_FOURNISSEURS>
<Row>
<Column name="CODE_FOURNISSEUR" sqltype="VARCHAR2">1</Column>
<Column name="VENDOR_NAME" sqltype="VARCHAR2">IAM</Column>
<Column name="ICE" sqltype="VARCHAR2">1</Column>
<Column name="NIF" sqltype="VARCHAR2">1</Column>
<Column name="RC" sqltype="VARCHAR2">1</Column>
<Column name="ADDRESS_LINE1" sqltype="VARCHAR2">Casa</Column>
<Column name="CODE_PORT" sqltype="NUMBER">101</Column>
<Column name="BANK_ACCOUNT_NUM" sqltype="VARCHAR2"></Column>
</Row>
<Row>
<Column name="CODE_FOURNISSEUR" sqltype="VARCHAR2">1</Column>
<Column name="VENDOR_NAME" sqltype="VARCHAR2">IAM</Column>
<Column name="ICE" sqltype="VARCHAR2">1</Column>
<Column name="NIF" sqltype="VARCHAR2">1</Column>
<Column name="RC" sqltype="VARCHAR2">1</Column>
<Column name="ADDRESS_LINE1" sqltype="VARCHAR2">Casa</Column>
<Column name="CODE_PORT" sqltype="NUMBER">141</Column>
<Column name="BANK_ACCOUNT_NUM" sqltype="VARCHAR2"></Column>
</Row>
</LISTE_FOURNISSEURS>
But i want my result to be as the following
<LISTE_FOURNISSEURS>
<FOURNISSEUR>
<CODE_FOURNISSEUR>1</CODE_FOURNISSEUR>
<VENDOR_NAME>IAM</VENDOR_NAME>
<ICE>1</ICE>
<NIF>1</NIF>
<RC>1</RC>
<CADDRESS_LINE1>Casa</CADDRESS_LINE1>
<CODE_PORT>101</CODE_PORT>
<BANK_ACCOUNT_NUM></BANK_ACCOUNT_NUM>
</FOURNISSEUR>
</LISTE_FOURNISSEURS>
The issue doesn't happen when i use other output parameters (Varchar2, number,...)
Is there any way to get the wanted results
xml plsql oracleapplications
add a comment |
I'm trying to use a webservice in my Oracle Application. In my Pl/SQL procedure i have an out parameter of type refcursor
PROCEDURE LISTE_FOURNISSEUR (liste_fournisseurs out SYS_REFCURSOR)
But when i call the webservice i get the response in this format
<LISTE_FOURNISSEURS>
<Row>
<Column name="CODE_FOURNISSEUR" sqltype="VARCHAR2">1</Column>
<Column name="VENDOR_NAME" sqltype="VARCHAR2">IAM</Column>
<Column name="ICE" sqltype="VARCHAR2">1</Column>
<Column name="NIF" sqltype="VARCHAR2">1</Column>
<Column name="RC" sqltype="VARCHAR2">1</Column>
<Column name="ADDRESS_LINE1" sqltype="VARCHAR2">Casa</Column>
<Column name="CODE_PORT" sqltype="NUMBER">101</Column>
<Column name="BANK_ACCOUNT_NUM" sqltype="VARCHAR2"></Column>
</Row>
<Row>
<Column name="CODE_FOURNISSEUR" sqltype="VARCHAR2">1</Column>
<Column name="VENDOR_NAME" sqltype="VARCHAR2">IAM</Column>
<Column name="ICE" sqltype="VARCHAR2">1</Column>
<Column name="NIF" sqltype="VARCHAR2">1</Column>
<Column name="RC" sqltype="VARCHAR2">1</Column>
<Column name="ADDRESS_LINE1" sqltype="VARCHAR2">Casa</Column>
<Column name="CODE_PORT" sqltype="NUMBER">141</Column>
<Column name="BANK_ACCOUNT_NUM" sqltype="VARCHAR2"></Column>
</Row>
</LISTE_FOURNISSEURS>
But i want my result to be as the following
<LISTE_FOURNISSEURS>
<FOURNISSEUR>
<CODE_FOURNISSEUR>1</CODE_FOURNISSEUR>
<VENDOR_NAME>IAM</VENDOR_NAME>
<ICE>1</ICE>
<NIF>1</NIF>
<RC>1</RC>
<CADDRESS_LINE1>Casa</CADDRESS_LINE1>
<CODE_PORT>101</CODE_PORT>
<BANK_ACCOUNT_NUM></BANK_ACCOUNT_NUM>
</FOURNISSEUR>
</LISTE_FOURNISSEURS>
The issue doesn't happen when i use other output parameters (Varchar2, number,...)
Is there any way to get the wanted results
xml plsql oracleapplications
I'm trying to use a webservice in my Oracle Application. In my Pl/SQL procedure i have an out parameter of type refcursor
PROCEDURE LISTE_FOURNISSEUR (liste_fournisseurs out SYS_REFCURSOR)
But when i call the webservice i get the response in this format
<LISTE_FOURNISSEURS>
<Row>
<Column name="CODE_FOURNISSEUR" sqltype="VARCHAR2">1</Column>
<Column name="VENDOR_NAME" sqltype="VARCHAR2">IAM</Column>
<Column name="ICE" sqltype="VARCHAR2">1</Column>
<Column name="NIF" sqltype="VARCHAR2">1</Column>
<Column name="RC" sqltype="VARCHAR2">1</Column>
<Column name="ADDRESS_LINE1" sqltype="VARCHAR2">Casa</Column>
<Column name="CODE_PORT" sqltype="NUMBER">101</Column>
<Column name="BANK_ACCOUNT_NUM" sqltype="VARCHAR2"></Column>
</Row>
<Row>
<Column name="CODE_FOURNISSEUR" sqltype="VARCHAR2">1</Column>
<Column name="VENDOR_NAME" sqltype="VARCHAR2">IAM</Column>
<Column name="ICE" sqltype="VARCHAR2">1</Column>
<Column name="NIF" sqltype="VARCHAR2">1</Column>
<Column name="RC" sqltype="VARCHAR2">1</Column>
<Column name="ADDRESS_LINE1" sqltype="VARCHAR2">Casa</Column>
<Column name="CODE_PORT" sqltype="NUMBER">141</Column>
<Column name="BANK_ACCOUNT_NUM" sqltype="VARCHAR2"></Column>
</Row>
</LISTE_FOURNISSEURS>
But i want my result to be as the following
<LISTE_FOURNISSEURS>
<FOURNISSEUR>
<CODE_FOURNISSEUR>1</CODE_FOURNISSEUR>
<VENDOR_NAME>IAM</VENDOR_NAME>
<ICE>1</ICE>
<NIF>1</NIF>
<RC>1</RC>
<CADDRESS_LINE1>Casa</CADDRESS_LINE1>
<CODE_PORT>101</CODE_PORT>
<BANK_ACCOUNT_NUM></BANK_ACCOUNT_NUM>
</FOURNISSEUR>
</LISTE_FOURNISSEURS>
The issue doesn't happen when i use other output parameters (Varchar2, number,...)
Is there any way to get the wanted results
xml plsql oracleapplications
xml plsql oracleapplications
edited Nov 15 '18 at 16:09
executable
1,8802822
1,8802822
asked Nov 12 '18 at 9:27
ChaymaeChaymae
521413
521413
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I'm guessing that you're using dbms_xmlgen to generate XML.
So if that's the case then use following command to change default row tag name:
dbms_xmlgen.setRowTag( ctx, 'FOURNISSEUR' );
where ctx is your context initialized something like this:
ctx := dbms_xmlgen.newcontext( ....
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53259190%2fsoa-gateway-xml-output-when-using-refcursor-as-a-parameter-type%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I'm guessing that you're using dbms_xmlgen to generate XML.
So if that's the case then use following command to change default row tag name:
dbms_xmlgen.setRowTag( ctx, 'FOURNISSEUR' );
where ctx is your context initialized something like this:
ctx := dbms_xmlgen.newcontext( ....
add a comment |
I'm guessing that you're using dbms_xmlgen to generate XML.
So if that's the case then use following command to change default row tag name:
dbms_xmlgen.setRowTag( ctx, 'FOURNISSEUR' );
where ctx is your context initialized something like this:
ctx := dbms_xmlgen.newcontext( ....
add a comment |
I'm guessing that you're using dbms_xmlgen to generate XML.
So if that's the case then use following command to change default row tag name:
dbms_xmlgen.setRowTag( ctx, 'FOURNISSEUR' );
where ctx is your context initialized something like this:
ctx := dbms_xmlgen.newcontext( ....
I'm guessing that you're using dbms_xmlgen to generate XML.
So if that's the case then use following command to change default row tag name:
dbms_xmlgen.setRowTag( ctx, 'FOURNISSEUR' );
where ctx is your context initialized something like this:
ctx := dbms_xmlgen.newcontext( ....
answered Nov 20 '18 at 16:55
smoczynasmoczyna
97110
97110
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53259190%2fsoa-gateway-xml-output-when-using-refcursor-as-a-parameter-type%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown