Why is UTL_DBWS is doing a POST when calling a webservice??

Hi everyone,
I was testing the UTL_DBWS package with a 10.2.0.2.0 database to get a call to a webservice on an Oracle AS. My PL/SQL code is like this:
declare
l_service sys.UTL_DBWS.service;
l_call sys.UTL_DBWS.call;
l_result ANYDATA;
l_wsdl_url VARCHAR2(1024);
l_service_name VARCHAR2(200);
l_operation_name VARCHAR2(200);
l_input_params sys.UTL_DBWS.anydata_list;
reti          pls_integer;
BEGIN
l_wsdl_url := 'http://localhost:8099/JMSService?wsdl';
l_service_name := 'JMSService';
l_operation_name := 'sendTextMsg';
l_service := sys.UTL_DBWS.create_service (
wsdl_document_location => URIFACTORY.getURI(l_wsdl_url),
service_name => l_service_name);
l_call := sys.UTL_DBWS.create_call (
service_handle => l_service,
port_name => null,
operation_name => l_operation_name);
sys.utl_dbws.set_property(l_call, 'ENCODINGSTYLE_URI', 'http://schemas.xmlsoap.org/soap/encoding/');
sys.utl_dbws.set_property(l_call, 'OPERATION_STYLE', 'rpc');
sys.utl_dbws.set_target_endpoint_address(l_call, 'http://localhost:8099/JMSService');
l_input_params(1) := ANYDATA.ConvertVarchar2('a');
l_input_params(2) := ANYDATA.ConvertVarchar2('a');
l_input_params(3) := ANYDATA.ConvertVarchar2('just a test');
l_result := sys.UTL_DBWS.invoke (
call_handle => l_call,
input_params => l_input_params
sys.UTL_DBWS.release_call (call_handle => l_call);
sys.UTL_DBWS.release_service (service_handle => l_service);
dbms_output.put_line( ANYDATA.AccessNumber(l_result));
dbms_output.put_line('DONE');
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('ERROR');
dbms_output.put_line(SQLERRM);
END;
The code was published in some official example but I'm getting the following error message:
===> Invocation (a[class java.lang.String],a[class java.lang.String],just a test[class java.lang.String])
HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 405 Method Not Allowed
     at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(Unknown Source)
     at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(Unknown Source)
     at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:165)
     at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:110)
     at oracle.j2ee.ws.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:87)
     at oracle.j2ee.ws.client.dii.BasicCall.invoke(BasicCall.java:546)
     at oracle.jpub.runtime.dbws.DbwsProxy$CallProxy.invokeProxy(Unknown Source)
     at oracle.jpub.runtime.dbws.DbwsProxy$CallProxy.access$2500(Unknown Source)
     at oracle.jpub.runtime.dbws.DbwsProxy.invokeProxy(Unknown Source)
CAUSE:
javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 405 Method Not Allowed
     at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(Unknown Source)
I analyzed the traffic in the jdeveloper's http monitor and found out, that obviously the UTL_DBWS package sends a POST request but it should be GET, because the oracle AS responses that POST is not allowed with my webservice. If you use the AS' web interface to invoke the webservice, a GET is generated.
Now, does anyone know about that or how I can configure UTL_DBWS to send GET requests?
thanks in advance
Steffen
ps: apparently it doesn't matter whether the webservice is returning some data or not

Hi everyone,
I was testing the UTL_DBWS package with a 10.2.0.2.0 database to get a call to a webservice on an Oracle AS. My PL/SQL code is like this:
declare
l_service sys.UTL_DBWS.service;
l_call sys.UTL_DBWS.call;
l_result ANYDATA;
l_wsdl_url VARCHAR2(1024);
l_service_name VARCHAR2(200);
l_operation_name VARCHAR2(200);
l_input_params sys.UTL_DBWS.anydata_list;
reti          pls_integer;
BEGIN
l_wsdl_url := 'http://localhost:8099/JMSService?wsdl';
l_service_name := 'JMSService';
l_operation_name := 'sendTextMsg';
l_service := sys.UTL_DBWS.create_service (
wsdl_document_location => URIFACTORY.getURI(l_wsdl_url),
service_name => l_service_name);
l_call := sys.UTL_DBWS.create_call (
service_handle => l_service,
port_name => null,
operation_name => l_operation_name);
sys.utl_dbws.set_property(l_call, 'ENCODINGSTYLE_URI', 'http://schemas.xmlsoap.org/soap/encoding/');
sys.utl_dbws.set_property(l_call, 'OPERATION_STYLE', 'rpc');
sys.utl_dbws.set_target_endpoint_address(l_call, 'http://localhost:8099/JMSService');
l_input_params(1) := ANYDATA.ConvertVarchar2('a');
l_input_params(2) := ANYDATA.ConvertVarchar2('a');
l_input_params(3) := ANYDATA.ConvertVarchar2('just a test');
l_result := sys.UTL_DBWS.invoke (
call_handle => l_call,
input_params => l_input_params
sys.UTL_DBWS.release_call (call_handle => l_call);
sys.UTL_DBWS.release_service (service_handle => l_service);
dbms_output.put_line( ANYDATA.AccessNumber(l_result));
dbms_output.put_line('DONE');
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('ERROR');
dbms_output.put_line(SQLERRM);
END;
The code was published in some official example but I'm getting the following error message:
===> Invocation (a[class java.lang.String],a[class java.lang.String],just a test[class java.lang.String])
HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 405 Method Not Allowed
     at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(Unknown Source)
     at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(Unknown Source)
     at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:165)
     at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:110)
     at oracle.j2ee.ws.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:87)
     at oracle.j2ee.ws.client.dii.BasicCall.invoke(BasicCall.java:546)
     at oracle.jpub.runtime.dbws.DbwsProxy$CallProxy.invokeProxy(Unknown Source)
     at oracle.jpub.runtime.dbws.DbwsProxy$CallProxy.access$2500(Unknown Source)
     at oracle.jpub.runtime.dbws.DbwsProxy.invokeProxy(Unknown Source)
CAUSE:
javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 405 Method Not Allowed
     at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(Unknown Source)
I analyzed the traffic in the jdeveloper's http monitor and found out, that obviously the UTL_DBWS package sends a POST request but it should be GET, because the oracle AS responses that POST is not allowed with my webservice. If you use the AS' web interface to invoke the webservice, a GET is generated.
Now, does anyone know about that or how I can configure UTL_DBWS to send GET requests?
thanks in advance
Steffen
ps: apparently it doesn't matter whether the webservice is returning some data or not

Similar Messages

  • Have an iPhone 5. Phone does not ring when calls come in and texts sent from non-iPhones are delayed by 4-5 hours before receiving.

    Have an iPhone 5. Phone does not ring when calls come in and texts sent from non-iPhones are delayed by 4-5 hours before receiving.

    This morning I woke up thinking that I should turn off my iPhone and then call it from a land line.  If the problem is the network then there would be a delay before I heard ringing.
    I turned my iPhone off and called it.  Right away I heard my message.
    I turned my iPhone back on and called it.  It rang right away!
    So, did Virgin Mobile fix the problem or did turning my iPhone off fix the problem?
    I don't know, but I'll take either.  I do know that Virgin Mobile said it would be four days to check the problem.  Did the problem get fixed yesterday when the four business days were up.  I do know that I've had my iPhone on for a long, long time.  Did upgrading to 6.1.1 or 6.1.2 cause the problem and turning my iPhone off reset my iPhone?
    If you have delayed ringing problem and turning your iPhone off and on again resolved it, please post a note here.
    P.S. I did call Virgin Mobile and its records show the investigation is still open.  I hope my points get passed on to the investigators.
    P.P.S. Reading my notes, I had turned my iPhone off and on last week.  Maybe it's all the phase of the moon.

  • Phone does not ring when called any suggestions

    Iphone4 does not ring when called. Any suggestions?

    Is the silent switch on?
    Does the ringer not sound or does the call not come through at all?
    Can you make outgoing calls?

  • Why won't my Razr Maxx ring when called from my home phone or the other cell phone (I-phone) on my Verizon account?

    Why won't my Razr Maxx ring when called from my home phone or the other cell phone (I-phone) on my Verizon account?

    Hi Ruth:
    Thanks for reaching out to me about this issue.
    This has been happening since I got the phone a couple of years ago.
    I did not realize that my home land line and my wife's cell phone
    always go straight to voice mail until my wife pointed it out to me
    several months ago.  Is there a setting I can adjust?
    Yes, I can make calls to our home land line and to her cell phone
    without being diverted to voice mail.
    Any advice you might have would be most welcome.
    Thanks.
    Greg Bostwick
    On 12/22/14, Verizon Wireless Customer Support

  • Error when calling a Webservice's public method in Forms10g

    Hi,
    I'm getting the following error when calling a webservice's public method, i'm using Forms10g 10.1.2.3
    java.rmi.RemoteException; nested exception is: HTTP transport error javax.xml.soap.SOAPException
    java.security.PrivilegedActionException javax.xml.soap.SOAPException
    Message send failed javax.net.ssl.SSLException SSL handshake failed X509CertChI have added the Jar containing the client proxy in both Classpaths(system variable and default.env), the jar has been made with jdk 1.4
    I also have tested the client proxy from jDeveloper and it's working there, but in Forms i'm getting this error.
    I guess my problem might be that i'm calling a webservice that is secured since the url starts with https
    what should i do to fix this ??
    Regards
    Carlos

    I understand, so i have a doubt, why the webservice works on jDeveloper ??Not just JDeveloper even soapUI and Neatbeans have a way of working without a client certificate installed.
    I do not know how they achieve it. I know that they work without a client DC.
    Cheers,
    PS: See this http://stackoverflow.com/questions/8887434/webservices-ssl-https, it offers a clue.
    The java programs run unhindered when one-way authentication is being used. These products ship with a digital certificate that is in the path of most popular CAs.
    Corollary, if the Web Server is configured for mutual authentication then you need to install and configure the client certificate in the tools.
    Edited by: Prabodh on Dec 5, 2012 8:36 PM

  • BAPI_GET_PAYSLIP_HTML error when called as webservice

    Greetings
    I'm calling BAPI_GET_PAYSLIP_HTML as a webservice to make payslips available via web browser but it returns no output. I
    've tested the same bapi in se37 with the same parameters and we get the desired return.
    The problems isn't either with the calling procedure because I've made the same test (via webservice) to BAPI_GET_PAYSLIP we it had return.
    Could you help me with this?
    Thanks in advance
    Nuno

    hi!
    are you trying to hit this bapi when calling a BSP? Or are you trying to do this with ITS?
    also, check if adding the COMMIT statement right after the bapi will help.
    regards,
    manasa

  • Why my Startup Manager does not appear when I hold the Option key when starting to boot.

    I no longer have the Startup Manager appearing when I hold the Option key when starting to boot.
    Instead, the system just boots into whichever OS was last selected in the Startup Disk Preference.
    How to get back my Startup Manager so that I can boot up from my external hard disk.
    Thank you.

    Can you please run the following in terminal and post the output in your reply:
    diskutil list; echo; nvram -p | grep boot-args; echo

  • Why spark videodisplay control does not work when i run the application?

    Even in the mode design I can not see the video, thks.....

    @Jorge,
    Try using file:/// instead of file:/.
    This seems to work for me:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx">
        <s:VideoDisplay x="159" y="96"
                source="file:///C:/Documents and Settings/pdehaan/My Documents/My Videos/walking.flv"
                loop="true"
                width="384" height="267"/>
    </s:Application>
    But I'd probably recommend copying the .FLV file into your Builder project or putting it online instead of trying to play it back from a hardcoded file:/// path.
    Peter

  • Caller ID does not work when calling from Jabber

    We have the following results when doing calls within the company:
    Desk Phone A (4567-X-Smith): 7801234567
    Desk Phone B (4568-Y-Miller): 7801234568
    Main Company Line: 7801230000
    All desk phones have the following type of configuration:
    Under the phone -> Line[1] -> Line1 on Device <MAC>
    Display (Internal Caller ID): 4567-X-Smith
    ASCII Display (Internal Caller ID): Our Company Name
    Line Text Label: 780-123-4567
    ASCII Line Text Label: 780-123-4567
    External Phone Number Mask: 7801230000
    Desk Phone A calls Desk Phone B
    - caller ID shows up properly on Desk Phone B as 4567-X-Smith
    User at Desk Phone A makes the call through the Jabber client to Desk Phone B
    - caller ID shows up as 7801230000
    This last situation is the problem since we want all internal calls whether they're form the desk phone or Jabber to show the proper caller ID. However, we want the generic main company line (7801230000) to show up to anybody outside the company. What is set incorrectly? Why does Jabber take over the line but not keep the same caller ID settings? Does jabber work as if it's doing an external call?
    Thanks in advance,
    Kris

    Interesting... I just 4-digit dialed 8182 (typed in the Search field at the top of the jabber window) and my proper caller ID showed up...
    Next I tried 10 digit dial 7804988182 through jabber and it showed 7804988100 (our external calling mask). I also just noiced that it very briefly flashes 97804988182 so that seems to indicate it's trying to dial through the PSTN...
    Oddly enough, if I 10 digit dial through my desk phone, it shows the proper caller ID.

  • Dialog Box does not function when called a second time

    I have created a dialog box that only seems to work once in a larger application. The box is designed to be a MatLab code debugger. My idea was to allow a user to interactively create/debug Matlab code from LabView using ActiveX automation. Anyway, I have created a test vi that uses this dialog box twice. The first time it is called it functions as expected, but the second time nothing on the front panel (of the dialog box) responds and I cannot close the window or interrupt the vi. I am using LabVIEW 7.0 on Windows 98. Please see the attached vi's. MatlabDebugger.vi is the dialog that's causing the problem. Matlabx2.vi is the sub vi that handles the ActiveX automation. Debuggertest.vi is the test v
    i in which the dialog will not word a second time.
    Thanks in advance for any help or suggestions.
    Attachments:
    Debuggertest.vi ‏51 KB
    MatlabDebugger.vi ‏303 KB
    Matlabx2.vi ‏361 KB

    The problem is caused by the nested event structures; you have an event structure inside an event structure, acting on the same controls. When the main one reacts to the cancel the other one get's stuck...so on the next call the main event structure just halts due to the stuck event structure inside it. It's not obvious why this is a fault, you may be able to spot it now that you're on the track though.
    MTO

  • 5800xm doing annoying things when calling...

    Does anyone know if you can disable the stupid messages the phones tells you about? Whenever I make a call when my data connection is active (which is all the time so I can get live email updates) it disables my data connection, which is ok, I understand that much. What I don't understand is the fact it needs to tell me every single time it does it... just once would have done! So say if I am calling someone and it goes to answer phone, I can't hang up because there is a stupid message telling me that my data connection has been disabled and I end up leaving a message on the answer machine of me shouting profanities at the stupid message informing me of the obvious!
    So yeah after a rant, anyone know if its able to be gotten rid of?

    Try cleaning out the dock connecter with a dry toothbrush. It sounds like a number of your problems could be caused by some kind of conductive grit in interfering with the dock connector and shorting some of the pins. The popup about accessories not being supported is a dead giveaway.  This may correct many of your problems altogether.
    The sluggish response time may just be due to the fact that it's a 3G. I suffered the same sluggishness on my 3G, as does my wife currently (I already upgraded to an iP4, she's waiting till fall so she can one up me).
    The problem with music starting when you have the headphones plugged in may be the dirty dock connector or the headphones themselves.  I've been through several sets of headphones over the years because of strange behavior.  It's just the nature of the beast.
    Good luck
    Hope this helps

  • FaceTime on Mac (Yosemite) does not connect when calling an IOS device

    Hi all,
    Since my upgrade with Yosemite, I seem to be having issues with FaceTime (video/audio) calling iOS Devices. iMessage works just fine with Yosemite. But when i attempt to call the other party via FaceTime, i could hear it ring but cannot connect. Anybody else who has the same issue and does anybody know how to fix it? It would seem to be a Yosemite issue, because when i tried using my iPad and iPhone to call via FaceTime, it works just fine using the same Apple Id i used for the Macbook Pro (Mid 2010). But when I use my Mac to call the iPhone.. It rings but it does not connect.. I hope they fix this with the next update..

    For the ones who are interested: the problem has been "solved".
    Solution: none. I found out that the iPhone 4 from my girlfriend caused the problem. The iPhone made it impossible to FaceTime to each other from iPhone <> MacBook Pro. I think it's because the discontinued iOS support for the iPhone 4.
    Since she has the iPhone 6 FaceTime now works wonderful without any problem.

  • Phone does not ring when calling out

    When I make a phone call I cannot hear phone ringing  unless I put speaker on. Once person answers I can take off speaker phone and hear normally through the phone .
    iPhone 4S 16 GB

    I fixed it ! ..thanks to
    Helpful AnswerRe: No sound on my iphone                                                                        Jan 25, 2010 8:25 AM                                                    (in response to Taebak3)                                       
    In your first post you said you tried a reset, is this what you did, if not do this: Press the sleep/wake button & home button at the same time, keep pressing until you see the Apple logo, then release(ignore the slide to power off). The phone has independent volume control for each function, make sure your volume is turned up: 
    !http://images.apple.com/iphone/how-to/content/images/volume_p1.png!                                                                                     MacBook Pro                           

  • Why do i get a busy signal when calling my pre paid flip phone?

    I recently activated a old pre paid flip phone and I added minutes with a refill card on my verizon wireless account online.  It shows the payment as well as the calls I made to it  but it never lets me get through to the person.  What is the glitch?????

        I apologize for the problems you've experienced GrandmaJean. I know it's important to have your concerns addressed and resolved. We don't have access to prepaid accounts, but the number to call is 888-294-6804. Please make sure you select the correct option, but you must allow the prompts to finish before making a selection. If you don't, this may be why you're unable to get through.
    AdaS_VZW
    Follow us on Twitter at @VZWSupport 

  • Why there's error stating "unreported exception" when call function

         public void actionPerformed(ActionEvent evt)
              Object obj = evt.getSource();
              if (obj == DeleteButton)
                   readfile(); // Error here
                   deletefile();
                   rename();
    ========================================================================
         public void readfile() throws Exception
              BufferedReader in = new BufferedReader(new FileReader("WhiteCollar2.txt"));
              line=in.readLine();
              found=0;
              while (line!=null)
                   if ((line.substring(0,6)).equals((String)textfield.getText()))
                        System.out.println("CORRECT\n");
                        found=1;
                   else
                        writefile();                    
                   line=in.readLine();
    ========================================================================
    How come when I call the above readfile(), it gives me :
    DeleteScreen.java:70: unreported exception java.lang.Exception; must be caught or declared to be thrown
    readfile();
    However if I change to the following :
    try{readfile()};
    catch (Exception e) {}
    The code works fine. I am still figuring out on throwing exceptions etc. But how come I already throw exceptions it still complains exception not declared?
    Thanks and Rgds

    but the writefile() function which I called in the
    read() also throw exception but how come I do not need
    to catch it for the write()?The error message says it all: must be caught or declared to be thrown. Thus, you must either catch the exception using try-catch or you must declare that your method throws the exception using the throws declaration.
    Your call to writefile() is in the method readfile() that already declares that it throws Exception. So there is no problem there.
    BTW, you should know that it is generally ill-advised to catch or declare exception using the superclass Exception. You should use as specific an exception class as possible. In this case I suppose it would be IOException.

Maybe you are looking for

  • Oracle 10.2.0.1 Standard Edition on Windows Server 2003 R2 SP2 German vers.

    Hi, We got a "strange" error installing Oracle db on MS win Ser 2003. When the installation procedure created the database it stopped with Ora-604 and Ora-2248. My first thought was the language problem but I'm not sure. Below you'll see the trace.lo

  • The request to execute code in the sandbox failed

    I have developed a webpart for a client which is hosted on O365. While saving the webpart properties I am Getting the error"Web Part Error: The request to execute code in the sandbox failed." The same web part works on a different O365 site perfectly

  • Could you please help us for asset depreciation postings are not posted

    HI can any body help, while creating asset  acqistion date 22 january 2010 and  Capitalized date is December 18 2009, but depriciation caliculating from  acqisition date , where is the mistake happen we did not get , please guide me thanks Ranamka

  • E-mail accounts setup - migrating from classic & webstar to panther

    I used workgroup manager to set up accounts, enabled e-mail & selected server but when I use system admin to look at the mail email accounts none show up also I can't see any users for the ftp server. The appropriate domains have been created. I've r

  • Create OD Kerberos record with Windows .local domain

    I am in the process of setting up my open directory master that will be working in a golden triangle with our existing windows domain. Our windows FQDN ends with .local and all dns is running on this domain. I am unable to create a kerberos record fo