Web Service  Stateless Session request using JDeveloepr 11g (JAX-RPC)

I have been trying to consume web Service by sending Stateless Session request to the system.
I generated the Java Proxy using JDeveloepr 11g, using JAX-RPC.
As it is Stateless I need to add following SOAP Header for authentication
<soap:Header>
<wsse:Security soap:mustUnderstand="1">
<wsse:UsernameToken>
<wsse:Username>[email protected]</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wssusername-
token-profile-1.0#PasswordText">adminOnDemand</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>
To do this I tried clientuntcredentialprovider as suggested by most of the post online, but found of little help as the server complained of not be able to find the User Name and Password.
To add to the mess problem I hit was I was not able to View the SOAP Request or Response sent by JDeveloper hence not helping me in debugging the same
I have tried it on XML SPY by manually adding SOAP Header to the SOAP request and was able to find the response, but I have not been able to do the same using the JDeveloper 11g IDE.
I have tried HTTP Analyzer assuming it might help, but unfortunately due to the huge size of WSDL, tool hanged my PC each time I loaded it.
I know it should be fairly straight forward but just feel like missing something.
Has anybody has got this thing working ?
Regards,
Deepak

What exactly you mean that since your request is stateless you must send a Username token?
Also, can you put here the code you used to populate the UNT.
Finally, if possible, can you zip and email your wsdl, the http analyzer should be able to handle wsdls, even if they are huge.
Thanks,
Vishal

Similar Messages

  • Web Services stateless session connection

    I have used the example of code given in the Session class, that is available as a reference, to successfully connect to the Oracle On Demand web services. This however has produced a stateful session, whereas I need to create a stateless one.
    I'd be grateful for an example of how to connect and create a stateles session in C# code.
    Thanks,
    Guy.

    I am looking for a sample as well, I am also developing integrations using .NET platform, however so far I have been using stateful only.
    I am not sure how the WSDLs downloaded are to be used to generate stateless requests.

  • Web service authentication/session management using Axis2

    I'm creating a web service using Axis2 where the client will need to login to the service and maintain a session. I'm trying to figure out a good way to do this. I've read the article on the following link:
    http://www.developer.com/services/article.php/3620661/Axis2-Session-Management.htm
    and it describes 4 main ways of doing this: Request Session Scope, Soap session scope, Transport session scope, and Application scope. However, it doesn't give much detail in actually implementing this. It says to add a parameter to services.xml like this:
    <service name="foo" scope=" transportsession">
    </service>
    but what about the actual code that goes in the server and client to actually handle the login process and verify the username/password in an SQL database on the server? I'm having a lot of trouble finding a good tuturial on this. Can anyone point me in the right direction? I'm also open to other ideas that don't necessarily directly involve Axis2.

    Session management for a web service and already answered. Locking.

  • Error while calling .svc web service from pl/sql using utl_dbws

    Hello Folks,
    I am calling a .svc web service from pl/sql using utl_dbws and encountering the following error
    javax.xml.rpc.soap.SOAPFaultException: The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).
    Can you help me find what am I doing wrong?
    Thanks
    Rk

    Hi,
    Here are the details
    1. What version?
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for 64-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    2. What error message ... we need the full and complete error stack not your interpretation of it.
    ORA-29532: Java call terminated by uncaught Java exception: javax.xml.rpc.soap.SOAPFaultException: The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Messag
    3. "I am calling means what?" We need the full and complete statement showing the values of all parameters.
    The input to the web-service is a xmltype containing address information and the web-service returns a string
    CREATE OR REPLACE FUNCTION get_id
    RETURN VARCHAR2
    AS
    l_service UTL_DBWS.service;
    l_call UTL_DBWS.CALL;
    l_wsdl_url VARCHAR2 (32767);
    l_namespace VARCHAR2 (32767);
    l_service_qname UTL_DBWS.qname;
    l_port_qname UTL_DBWS.qname;
    l_operation_qname UTL_DBWS.qname;
    l_xmltype_in SYS.XMLTYPE;
    l_xmltype_out SYS.XMLTYPE;
    l_return VARCHAR2 (32767);
    BEGIN
    l_wsdl_url := 'http://test.com/test.svc?wsdl';
    l_namespace := 'http://test.org/';
    l_service_qname := UTL_DBWS.to_qname (l_namespace, 'SName');
    l_port_qname := UTL_DBWS.to_qname (l_namespace, 'BasicHttpBinding_ISName');
    l_operation_qname := UTL_DBWS.to_qname (l_namespace, 'Iden');
    l_service :=
    UTL_DBWS.create_service
    (wsdl_document_location => urifactory.geturi
    (l_wsdl_url),
    service_name => l_service_qname
    l_call :=
    UTL_DBWS.create_call (service_handle => l_service,
    port_name => l_port_qname,
    operation_name => l_operation_qname
    l_xmltype_in :=
    SYS.XMLTYPE
    ('<IdenRequest xmlns:i="http://www.w3.org/XMLSchema-instance" xmlns="http://test.org/SNameIden.WCFService">
    <address />
    <zip>12345</zip>
    <state>AA</state>
    <street>W Test </street>
    </address>
    </IdenRequest>'
    l_xmltype_out :=
    UTL_DBWS.invoke (call_handle => l_call,
    request => l_xmltype_in);
    UTL_DBWS.release_call (call_handle => l_call);
    UTL_DBWS.release_service (service_handle => l_service);
    l_return := l_xmltype_out.EXTRACT ('//Iden/text()').getstringval();
    RETURN l_return;
    END;
    /

  • Invoke Web Service in 9i database using UTL_HTTP

    I am trying to explore Oracle's UTL_HTTP package to invoke external web service without having to use java stored procedure. I downloaded a demo scripts from OTN web site (http://www.oracle.com/technology/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html) and bumped into problems when invoking it.
    select * from book_quote
    ERROR at line 1:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1022
    ORA-12545: Connect failed because target host or object does not exist
    ORA-06512: at "APPS.DEMO_SOAP", line 71
    ORA-06512: at "APPS.BOOK_SERVICE", line 13
    I checked the wsdl at the given website and it's valid. Is the database machine unable to connect to the internet? If so how can I enable it?
    Can anyone help?
    Thanks,
    Tom

    Hi,
    You need to use Adaptive Web Service Model for that.
    Check the tuorial in the link for accessing web services.
    https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#16
    Regards
    Pankaj

  • What web service & xml will be used for deleting the packged epub/pdf file from Admin Console

    What web service & xml will be used for deleting the packged epub/pdf file from Admin Console?
    I am able to delete the files from Admin console directy but not able to get which web service is calling on deleting the file from admin console:
    Mangal

    Hi Jim,
    I tired following web service and xml to delete the packaged ebook but it is giving me error instead of response:
    Web Service & XML
    http://myserver_url/admin/ManageResourceKey
    <request action="delete" auth="builtin" xmlns="http://ns.adobe.com/adept">
    <nonce>" . $nonce . "</nonce>
    <expiration>'. $expiration .'</expiration>
    <resourceKey>
    <resource>resource_id</resource>
    <resourceItem>1</resourceItem>
    </resourceKey>
    </request>
    Error Message
    <error xmlns="http://ns.adobe.com/adept"
    data="E_ADEPT_DATABASE http://myserver_url/admin/ManageResourceKey
    Cannot%20delete%20or%20update%20a%20parent%20row:%20a%20foreign%20key%20constraint%20fails %20(`adept`.`distributionrights`,%20CONSTRAINT%20`distributionrights_ibfk_2`%20FOREIGN%20K EY%20(`resourceid`)%20REFERENCES%20`resourcekey`%20(`resourceid`))"/>
    Magal Varshney

  • Does WL70 Web Service Support Sessions?

    Does anybody know how to make WL70 Web Service support sessions?
    The "javax.xml.rpc.session.maintain" property on Stub does not seem to work.
    Without session support, it is almost no use for us because we have to authenticate
    the user each time.
    Thanks in advance.
    - Hao

    It is just not working for me. I am using static stub.
    After tracking the HTTP traffic, I found that the WL70 server is not issuing any
    cookie. I have configured all the parameters for tracking session in the web application,
    but I still don't see any cookie in the HTTP headers from the server. I also tried
    to invoke the service using a browser, still no cookie seen. Is this a bug or
    there is some other configuration for the server?
    - Hao
    "manoj cheenath" <[email protected]> wrote:
    By default client will maintain the session. You dont have to set this
    property.
    Are you using static or dyn client?
    Also, you should use the same instance of the stub for all your invokes
    (all invokes to be in the same session).
    regards,
    -manoj
    "Hao Chen" <[email protected]> wrote in message
    news:[email protected]..
    It is not working for me.
    When I set the "javax.xml.rpc.session.maintain" property, weblogicthrows
    "UnsupportedOperation"
    exception and be default I don't see any session information beingpassed.
    How do I configure the client side or even the server?
    Thanks.
    - Hao
    "manoj cheenath" <[email protected]> wrote:
    WL70 client does support http session. Is this not
    working for you?
    regards,
    -manoj
    "Hao Chen" <[email protected]> wrote in message
    news:3d6402ac$[email protected]..
    Does anybody know how to make WL70 Web Service support sessions?
    The "javax.xml.rpc.session.maintain" property on Stub does not seemto
    work.
    Without session support, it is almost no use for us because we haveto
    authenticate
    the user each time.
    Thanks in advance.
    - Hao

  • Error during deployment of stateless session EJB using EJB 3.0

    having trouble deploying a stateless session bean to app server 10.1.3.1 oc4j container.
    deceided to go through oracles demo: How-To Develop a Stateless Session EJB using EJB 3.0 (http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-ejb30-stateless-ejb/doc/how-to-ejb30-stateless-ejb.html).
    the demo encounters the same issue. so i assume there is something wrong with the app server set up, and not my source code.
    here is the deployment log:
    [Jul 1, 2009 11:59:25 AM] Application Deployer for test_ws STARTS.
    [Jul 1, 2009 11:59:25 AM] Copy the archive to C:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\test_ws.ear
    [Jul 1, 2009 11:59:25 AM] Initialize C:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\test_ws.ear begins...
    [Jul 1, 2009 11:59:25 AM] Unpacking test_ws.ear
    [Jul 1, 2009 11:59:25 AM] Done unpacking test_ws.ear
    [Jul 1, 2009 11:59:25 AM] Initialize C:\product\10.1.3.1\OracleAS_1\j2ee\home\applications\test_ws.ear ends...
    [Jul 1, 2009 11:59:25 AM] Starting application : test_ws
    [Jul 1, 2009 11:59:25 AM] Initializing ClassLoader(s)
    [Jul 1, 2009 11:59:25 AM] Initializing EJB container
    [Jul 1, 2009 11:59:25 AM] Loading connector(s)
    [Jul 1, 2009 11:59:26 AM] Starting up resource adapters
    [Jul 1, 2009 11:59:26 AM] Processing EJB module: ejb30ws-ejb.jar
    [Jul 1, 2009 11:59:26 AM] application : test_ws is in failed state
    [Jul 1, 2009 11:59:26 AM] Operation failed with error: java.lang.NoClassDefFoundError
    the opmn log reveals the same error, but no more detail.
    any ideas???
    /stuck

    I am having exactly the same issue. Was this issue resolved? If so, please share the resolution and if not can someone please suggest what could be wrong.
    Thanks

  • Create web service from java class in Jdeveloper 11g

    I have very simple java class which I want to expose as a web service. I am using the Jdeveloper's in-built wizard to "Creat Web Service" from a java class. While doing so when I am selecting a method to be exposed as a web service, I get a error pop-up which says "Failed to load system class."
    I am not able to understand the reson for this error. I tried to do this with a very simple java code too but still no luck!!
    Here is the code:
    public class DownloadFileFromECMWrapper {
    public DownloadFileFromECMWrapper() {}
    public static void main(String args[]){
    DownloadFileFromECMWrapper obj = new DownloadFileFromECMWrapper();
    obj.callDownloadFileFromECM("C:\\shivam\\MyFile.txt");
    public String callDownloadFileFromECM(String filePath){
    System.out.println(filePath);
    return filePath;
    Can someone please help me on this.
    Edited by: 962154 on Sep 28, 2012 2:37 PM

    I have very simple java class which I want to expose as a web service. I am using the Jdeveloper's in-built wizard to "Creat Web Service" from a java class. While doing so when I am selecting a method to be exposed as a web service, I get a error pop-up which says "Failed to load system class."
    I am not able to understand the reson for this error. I tried to do this with a very simple java code too but still no luck!!
    Here is the code:
    public class DownloadFileFromECMWrapper {
    public DownloadFileFromECMWrapper() {}
    public static void main(String args[]){
    DownloadFileFromECMWrapper obj = new DownloadFileFromECMWrapper();
    obj.callDownloadFileFromECM("C:\\shivam\\MyFile.txt");
    public String callDownloadFileFromECM(String filePath){
    System.out.println(filePath);
    return filePath;
    Can someone please help me on this.
    Edited by: 962154 on Sep 28, 2012 2:37 PM

  • SWA: Web Services call with attachment using 10.1.3 preview?

    Has anyone managed to figure out how to invoke a web service with an attachment (using SWA, SOAP with Attachments) with the new 10.1.3 preview release?
    Or are there any samples/documents that can point me in the right direction on how to do this?
    Thanks!
    ....Andrzej

    Finally got 10.1.3 installed, and sure enough, there is an example for the use of SWA (SOAP with Attachments), both as client and as server.
    But the notes say it won't run with Oracle Lite DB. Makes me wonder why?
    Kinda sucks, since that is what we're using for our proof of concept. <sigh>

  • A user that consumes a Web service is authorized to use then in BackEnd?

    Hello,
    I need to help me please
    Can you validate that a user that consumes a Web service is authorized to use this service?.
    I mean, I have a backend system, which has an RFC, which we published in PI as Web Services, and a third application consumes it with SOAP Adapter. How I can check that the user is consuming the service is authorized (role / profile) in the backend to run this service?
    I searched SAML, but I will not check certificates, I need to check that the user is authorized in the backend, do I need IDM?
    Thanks in advance.

    Hello,
    Please go to back end system and see the authorization profile of the user consuming the service. He must have SOAP Run time aurhorization for object S_SERVICE for the specific service. Also, the user needs application authorization for the underlying RFC call.
    Thanks,
    Venu

  • How to consume sap xi pi web services or sap RFC with oracle 11g forms.

    Dear All
    how to consume sap xi pi web services or sap RFC with oracle 11g forms.
    or
    how to config 11g forms with sap xi....
    or how to call sap xi web services in 11g forms....
    or can send sample code....
    Regards
    smfatmi
    Edited by: smfatmi on Oct 17, 2011 2:16 AM
    Edited by: smfatmi on Oct 17, 2011 2:17 AM

    Dear All
    how to consume sap xi pi web services or sap RFC with oracle 11g forms.
    or
    how to config 11g forms with sap xi....
    or how to call sap xi web services in 11g forms....
    or can send sample code....
    Regards
    smfatmi
    Edited by: smfatmi on Oct 17, 2011 2:16 AM
    Edited by: smfatmi on Oct 17, 2011 2:17 AM

  • How to deploy and debug java web service in eclipes or using any other soft

    Hai,
    can any one tell me how to deploy and debug java web service in eclipes or using any other software.
    i have used tomcat web server and jdk1.4.0 to develop web service.
    we have used web service to interact with MS outlook .
    bye
    sudhakar.m

    Hi Sudhakar,
    If you are used to working with ant then you can very well use eclipse to deploy your web service.
    You would usually have the ant script in the source root working directory. From eclipse if you select the build file from the navigator view and right click you will see a run ant option in the pop up menu.
    Select that option and you would be able to see each targets with a checkbox select option. So define each target maybe one for wsdl2java conversion, one for compilation and one for deploying your web services. You can either make all of them run by having depends option on or you can run them individually as it takes your fancy.
    I am not sure about debugging a web service yet.
    Hope this helps
    Aviroop
    The truth is out there? Does anyone know the URL?

  • RESTful Web service in ECC without using netweaver gateway

    Can anyone explain how to create RESTful Web service in ECC without using netweaver gateway?

    Hi,
    Follow this link.
    Mobilize ALV Reports - Part 1 Create RESTful service

  • What Web Services Strobe Media Playback Uses.

    HI,
    Am I posting correct question or I am wrong
    Does strobe media playback uses any web service.
    If it uses or not please let me know .

    The player supports both standard and advanced delivery methods, including progressive download, RTMP streaming,
    RTMP dynamic streaming, HTTP streaming, HTTP dynamic streaming, and live streaming. Flash Media Playback
    1.5 and Strobe Media Playback 1.5 also provide support for RTMFP multicast content delivery.
    While RTMP(x) streaming are FMS content delivery technologies, the player can also be used with other FMS compatible streaming servers, such as Wowza or Red5.
    In the case you do not need the use of FMS streaming functionality, progressive download is always an alternative (what this means is that all you need is a video that can be served by a webserver like apache, nginx, lightypd, etc).
    As for how the player can be used, these links are allways a good place to start and get a better idea of what it is all about:
    http://www.osmf.org/strobe_mediaplayback.html
    http://blog.theflashblog.com/?p=2087
    Hope this helps.

Maybe you are looking for