• 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!

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.

Previously on "Oracle pl/sql ..... soap api question"

Collapse

  • DeepBlue
    replied
    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!

    Leave a comment:


  • css_jay99
    replied
    Thanks guys,

    the webservice provider pulled the namespace off the wrappedResponse element, so was able extract the success attribute.

    css_jay99

    Leave a comment:


  • Weltchy
    replied
    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:


  • css_jay99
    replied
    I''ll give that a try when i get into work

    cheers

    css_jay99

    Leave a comment:


  • donkeykungpochicken
    replied
    Originally 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
    I think more like

    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:


  • mudskipper
    replied
    Shouldn't that be /soapStatus/@success ?

    Leave a comment:


  • d000hg
    replied
    I have absolutely no idea what that even means.

    Leave a comment:


  • AtW
    replied
    Originally posted by d000hg View Post
    That made me feel a bit
    Shush, or you'll be locked up again!

    Leave a comment:


  • d000hg
    replied
    Originally posted by css_jay99 View Post
    I am trying to extract a value from a soap api request in pl/sql
    That made me feel a bit

    Leave a comment:


  • css_jay99
    replied
    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:


  • Moscow Mule
    replied
    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:


  • css_jay99
    started a topic Oracle pl/sql ..... soap api question

    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_jay99
Working...
X