Ahh. I was going to say. Been there before. The namespace handling in the Oracle library is tulip.
I decompiled a bunch of that java and gave up in the end. On the whole stinking API. Wrote a Servlet to do the heavy lifting and invoked that!
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: Oracle pl/sql ..... soap api question
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Oracle pl/sql ..... soap api question"
Collapse
-
Thanks guys,
the webservice provider pulled the namespace off the wrappedResponse element, so was able extract the success attribute.
css_jay99
Leave a comment:
-
Not sure about any obscure xPath synxtax in PL/SQL, as normally it would be '/soapStatus/@success' so can't comment on the way to access the success attribute.
Take a look at http://www.mercatorgeosystems.com/blog/?p=5 which seems to indicate using the '/' before the attribute.
Also, as donkey said, don't mess up your namespaces. Use either '/ns1:soapStatus@success' with a namespace declaration of 'xmlns:ns1="http://cuk.com/ccuk/schema' or drop off the namespace declaration altogether.Last edited by Weltchy; 3 November 2009, 07:57. Reason: Because it's early and I don't read other peoples responses to well at 7am
Leave a comment:
-
I think more likeOriginally posted by css_jay99 View Post...
<ns1:wrappedResponse xmlns:ns1 "http://cuk.com/res/cukwebservice/actions/">
<soapStatus xmlns="http://cuk.com/ccuk/schema" success="true"/>
</ns1:wrappedResponse>
I am trying to xtract the value of the attribute success
I tried something like
p_value := t_response.extract('/soapStatus@success','xmlns:ns1="http://cuk.com/ccuk/schema"').getStringVal();
but just kep getting ... ORA-30625: method dispatch on NULL SELF argument is disallowed....
...
css_jay99
p_value := t_response.extract('/soapStatus@success','xmlns="http://cuk.com/ccuk/schema"').getStringVal();
or
p_value := t_response.extract('/ns1:soapStatus@success','xmlns:ns1="http://cuk.com/ccuk/schema"').getStringVal();
Isn't the soapStatus element in the "http://cuk.com/ccuk/schema" namespace, so you need to either declare that as the default namespace, or actually use the 'ns1' alias you are defining.
Also I'd probably be checking that the result of the extract is not null before calling the getStringVal operation (to avoid the error)
Perhaps...
Leave a comment:
-
I had already googled but no luck with the issue since the error code is implying that I am passing null/missing xml to the method which I am not
css_jay99
Leave a comment:
-
Nothing specific, but I normally just google the error code when I get that sort of gubbins...
http://www.google.co.uk/search?sourc...=lr%3D&aq=&oq=
Leave a comment:
-
Oracle pl/sql ..... soap api question
Hi,
I am trying to extract a value from a soap api request in pl/sql
variable t_response is an xmltype returned from soap api
t_response has the following xml value below
<ns1:wrappedResponse xmlns:ns1 "http://cuk.com/res/cukwebservice/actions/">
<soapStatus xmlns="http://cuk.com/ccuk/schema" success="true"/>
</ns1:wrappedResponse>
I am trying to xtract the value of the attribute success
I tried something like
p_value := t_response.extract('/soapStatus@success','xmlns:ns1="http://cuk.com/ccuk/schema"').getStringVal();
but just kep getting ... ORA-30625: method dispatch on NULL SELF argument is disallowed....
any clues?
css_jay99Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Data Kraken v Torry Harris: 5 lessons for software developer contractors Today 06:09
- Loan Recall Case Study: Amanda Yesterday 06:00
- How IR35 inflated an £8.5bn consultancy bill — and tests Burnham at the Budget Aug 28 07:47
- Autumn Budget 2026: FCSA’s 5 contractor asks of John Healey Aug 27 04:15
- Andy Burnham's Zoom gripe doesn’t apply to IT contractors, say recruiters Aug 26 03:41
- Check your Loan Recall paperwork for the Isle of Man: it could matter Aug 25 03:27
- Budget 2026: Contractor advisers ask for ‘IR35 reset’ Aug 24 04:57
- Why might an umbrella company fail to pay its total tax bill to HMRC? Aug 18 06:08
- Contractors, here are the late payment fixes that the Lords just turned down Aug 17 08:03
- How will HMRC's Direct Debit plan affect contractors paying VAT and PAYE? Aug 13 23:54


Leave a comment: