How to Access Web service with ADF Mobile Browser Application

hi all,
My Jdeveloper version is 11g 2 release(Version 11.1.2.2.0). I need to know If I create a web application and put it on a server as a web service., Then I create a Mobile browser application and need to access that web service.
If it is possible, how should I do? version are same in both application.
hopping any clue..
Thxs.

You can go thru the below links :
ADF Mobile HowTos: Consuming SOAP web service in ADF Mobile using WS DC
Oracle JDeveloper 11g Release 2 Tutorials - Building Mobile Applications with Oracle ADF Mobile

Similar Messages

  • How to access web services with Javascript

    I want to create a XUL/Javascript form which uses CRM On Demand web services. At this time I cannot login (no sample code is given for javascript), therefore I generate my JSESSIONID separately, try and put it in the URL I call in my code, but the server answers back with the logon.jsp page.
         function test()
    var xmlToSend = "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:con='urn:crmondemand/ws/contact/' xmlns:con1='urn:/crmondemand/xml/contact'>";
         xmlToSend += "<soapenv:Header/>";
         xmlToSend += "<soapenv:Body>";
         xmlToSend += "<con:ContactWS_ContactQueryPage_Input>";
         xmlToSend += "<con1:ListOfContact>";
         xmlToSend += "<con1:Contact>";
         xmlToSend += "<con1:ContactId></con1:ContactId>";
         xmlToSend += "<con1:AccountId></con1:AccountId>";
         xmlToSend += "<con1:ContactEmail>= '[email protected]'</con1:ContactEmail>";
         xmlToSend += "<con1:ContactFirstName></con1:ContactFirstName>";
         xmlToSend += "<con1:ContactFullName></con1:ContactFullName>";
         xmlToSend += "<con1:ContactLastName></con1:ContactLastName>";
         xmlToSend += "<con1:AccountName></con1:AccountName>";
         xmlToSend += "</con1:Contact>";
         xmlToSend += "</con1:ListOfContact>";
         xmlToSend += "</con:ContactWS_ContactQueryPage_Input";
         xmlToSend += "</soapenv:Body>";
         xmlToSend += "</soapenv:Envelope>";
    var xmlhttp;
         xmlhttp = new XMLHttpRequest();
         xmlhttp.overrideMimeType('text/xml');
         xmlhttp.onreadystatechange=DisplayContact;
         xmlhttp.open("POST", "https://secure-ausomxdsa.crmondemand.com/", false);
         xmlhttp.setRequestHeader('Man', 'POST /Services/Integration;JSESSIONID=blablabla HTTP/1.1');
         xmlhttp.setRequestHeader('Content-Type', 'text/xml');
         xmlhttp.setRequestHeader('Content-Length', xmlToSend.length);
         xmlhttp.setRequestHeader('SOAPAction', 'document/urn:crmondemand/ws/contact/:ContactQueryPage');
    function DisplayContact()
              if (xmlhttp.readyState==4) {
                   if (xmlhttp.status==200) {
                        var response = xmlhttp.responseXML;
                        var responsetxt = (new XMLSerializer()).serializeToString(response);
                        document.write(responsetxt);
    The result is: responsetxt always contains the HTML code of logon.jsp.
    Anyone could help with a login code, or with the interrogation.
    Jeremy

    Hi,
    A JS Sample....
    You can use this JS in a Web Applet
    _____________________________________________ START OF FILE _____________________________________________
    <html>
    <head>
    <script type="text/javascript">
    var sso_token='%%%SSO Token%%%' // You can use an OCOD Variable in OCOD Web Applet
    sso_token = sso_token.replace(/\+/g, "%2B");//re-Encondig SSO-Token
    alert (sso_token);
    //////////////////////////////////// getInnerText() ////////////////////////////////////////
    function getInnerText(node) {
    if (typeof node.textContent != 'undefined') {
    return node.textContent;
    else if (typeof node.innerText != 'undefined') {
    return node.innerText;
    else if (typeof node.text != 'undefined') {
    return node.text;
    else {
    switch (node.nodeType) {
    case 3:
    case 4:
    return node.nodeValue;
    break;
    case 1:
    case 11:
    var innerText = '';
    for (var i = 0; i < node.childNodes.length; i++) {
    innerText += getInnerText(node.childNodes);
    return innerText;
    break;
    default:
    return '';
    //////////////////////////////////// sso_login() ////////////////////////////////////////
    //https://server/Services/SSOTokenValidate?odSsoToken = "ssotoken value"
    //https://server/Services/Integration?command=ssologin&odSsoToken="ssotoken value"
    var ajax=null;
    var browser = navigator.appName;
    if(browser == "Microsoft Internet Explorer"){
         ajax = new ActiveXObject("Microsoft.XMLHTTP");
    }else{
         ajax = new XMLHttpRequest();
    function SSO_Login() {     
    //var url = 'https://secure-ausomxdsa.crmondemand.com/Services/SSOTokenValidate?odSsoToken='+sso_token; // Check SSO Token
    var url = 'https://secure-ausomxdsa.crmondemand.com/Services/Integration?command=ssologin&odSsoToken='+sso_token;
    ajax.open("HEAD", url, true);
    ajax.onreadystatechange = getReponse;
    ajax.send(null);
    //////////////////////////////////// Login() ////////////////////////////////////////
    var ajax=null;
    var browser = navigator.appName;
    if(browser == "Microsoft Internet Explorer"){
         ajax = new ActiveXObject("Microsoft.XMLHTTP");
    }else{
         ajax = new XMLHttpRequest();
    function Login() {     
    var url = 'https://secure-ausomxdsa.crmondemand.com/Services/Integration?command=login';
    ajax.open("HEAD", url, true);
    ajax.onreadystatechange = getReponse;
    ajax.setRequestHeader('UserName','GLABADEN-FR13-15/WSUserName');
    ajax.setRequestHeader('Password','OnDemandPassword');
    ajax.send(null);
    //////////////////////////////////// getReponse() ////////////////////////////////////////     
    function getReponse(){
         switch(ajax.readyState){
              case 0:
              case 1:
                   //open com
              break;
              case 2:
                   //send query
              break;
              case 3:
                   //recieving data
              break;
              case 4:
                   //data received
                   //ajax.status contient 200, 404, ...
                   //ajax.statusText contient OK, NOT FOUND, ...
                   var reponseTexte= ajax.responseText;
                   var responseXml= ajax.responseXml;
                   alert(ajax.getResponseHeader("Set-Cookie"));
              break;     
    //////////////////////////////////// Call_WS() ////////////////////////////////////////     
    function Call_WS(){
    var xmlhttp =null;
    var browser = navigator.appName;
    if(browser == "Microsoft Internet Explorer"){
    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }else{
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open("POST", "https://secure-ausomxdsa.crmondemand.com/Services/Integration",true);
    xmlhttp.onreadystatechange=function() {
    if (xmlhttp.readyState==4) {
    rteNode = xmlhttp.responseXML.getElementsByTagName("ListOfContact").item(0);
    alert(rteNode.childNodes.length);
    for(var i=0; i<rteNode.childNodes.length; i++){
    switch( rteNode.childNodes.item(i).tagName ){
    case 'Contact':
    var ContactId = rteNode.childNodes.item(i).childNodes.item(0).tagName;
    var ContactIdValue = rteNode.childNodes.item(i).childNodes.item(0).text;
    var ContactIdGetValue = getInnerText(rteNode.childNodes.item(i).childNodes.item(0));
    alert(ContactId+" : "+ContactIdValue +" / "+ContactIdGetValue);
    break;
    case 'Other':
    break;
    default:
    break;
    xmlhttp.setRequestHeader("SOAPAction", "\"document/urn:crmondemand/ws/contact/10/2004:ContactQueryPage\"")
    xmlhttp.setRequestHeader("MessageType", "CALL")
    xmlhttp.setRequestHeader("Content-Type", "text/xml")
    //xmlhttp.setRequestHeader("Content-Type", "text/xml;charset=UTF-8")
    //xmlhttp.setRequestHeader("Content-Type", "text/xml;charset=ISO-8859-1")
    var miSoap=
    '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="urn:crmondemand/ws/contact/10/2004" xmlns:con="urn:/crmondemand/xml/contact"> \n' +
    '<soapenv:Header/> \n' +
    '<soapenv:Body> \n' +
    '<ns:ContactWS_ContactQueryPage_Input> \n' +
    '<ns:PageSize>10</ns:PageSize> \n' +
    '<con:ListOfContact> \n' +
    '<con:Contact> \n' +
    '<con:ContactId></con:ContactId> \n' +
    '</con:Contact> \n' +
    '</con:ListOfContact> \n' +
    '<ns:StartRowNum>0</ns:StartRowNum> \n' +
    '</ns:ContactWS_ContactQueryPage_Input> \n' +
    '</soapenv:Body> \n' +
    '</soapenv:Envelope> \n' ;
    alert(miSoap);
    xmlhttp.send(miSoap);
    //$(document).ready(function () {
    alert("start");
    $("table").each(function() {
    alert("table");
    var $table = $(this);
    var str_id = $table.id;
    alert(str_id);
    </script>
    <h1>Javascript WS</h1>
    <input type="button" onclick="Login()" value="Login">
    <input type="button" onclick="SSO_Login()" value="SSO_Login">
    <input type="button" onclick="Call_WS()" value="Call_WS">
    </body>
    </html>
    _____________________________________________ END OF FILE _____________________________________________
    Best Regards,
    Gerald

  • While consuming Fusion CRM web service in ADF mobile throwing an error

    Hi,
    I am developing ADF Mobile using JDeveloper
    11.1.2.3 and consuming Fusion CRM ADF Web Services.
    While executing CRUD operations with these web services
    in ADF mobile app, I am getting SOAP response as *Error in getting response
    and got result nothing *.
    And also noticed as using JDeveloper ADF mobile App, unable to create URL service
    Data Control - REST based for FUsion CRM web services. Where as I am able to
    create SOAP based web services data control. It' strange or surprise.
    Did anyone face the above problems. Kindly let me know any suggestions or
    samples to the below contacts
    Regards
    Bhaskara Reddy S
    00919008466722
    bhaskara.sannapureddy at Crmit.com

    Dear Frank,
    Based on below links, Fusion CRM also supports REST also apart from regular SOAP Web Services.
    http://niallcblogs.blogspot.in/2012/10/204-calling-rest-service-from-fusion-crm.html AND
    http://docs.oracle.com/cd/E15586_01/fusionapps.1111/e20388/F412758AN17B21.htm
    (For e.g one of linked in profile :http://www.linkedin.com/in/minalkhodani , many teams are developing using SOAP & REST)
    Designed and developed integration services using SOAP and REST web services for Oracle Fusion CRM Marketing Modules.)
    When creating URL based data control, getting an Error as "Forbidden" , (Does it mean NOT SUPPORTED??) . Kindly advice.
    I am calling WEB SERVICE thru SOAP in AMX PAGE code as below after creating Web Services Data Control from ADF Mobile UI thru JDeveloper IDE.
    == CODE SNIPPET OF AMX PAGE CALLING SOAP FUSION CRM WEB SERVICE =======
    <?xml version="1.0" encoding="UTF-8" ?>
    <amx:view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:amx="http://xmlns.oracle.com/adf/mf/amx"
    xmlns:dvtm="http://xmlns.oracle.com/adf/mf/amx/dvt">
    <amx:panelPage id="pp1">
    <amx:panelFormLayout id="pfl2">
    <amx:inputText value="#{bindings.name.inputValue}" label="Person First Name" id="it1"/>
    <amx:inputText value="300000001210220" label="Person Object Id" id="it2"/>
    </amx:panelFormLayout>
    <amx:facet name="header">
    <amx:outputText value="Create Person in Fusion CRM" id="ot1"/>
    </amx:facet>
    <amx:facet name="primary">
    <amx:commandButton id="cb1" text="Back" action="__back"/>
    </amx:facet>
    <amx:facet name="secondary">
    <amx:commandButton id="cb2"/>
    </amx:facet>
    <amx:panelFormLayout id="pfl1">
    </amx:panelFormLayout>
    <amx:outputText value="#{bindings.message.inputValue}" id="ot2"/>
    <amx:outputText value="#{bindings.code.inputValue}" id="ot3"/>
    *<amx:commandButton actionListener="#{bindings.createPerson.execute}" text="createPerson"*
    *disabled="#{!bindings.createPerson.enabled}" id="cb3"/>*
    <amx:iterator var="row" value="#{bindings.personParty1.collectionModel}" id="i1">
    <amx:panelLabelAndMessage label=" 300000001210220" id="plam2">
    <amx:outputText value="#{row.PartyId}" id="ot5">
    <amx:convertNumber groupingUsed="false"/>
    </amx:outputText>
    </amx:panelLabelAndMessage>
    <amx:panelLabelAndMessage label="#{bindings.name.inputValue}" id="plam1">
    <amx:outputText value="#{row.PersonFirstName}" id="ot4"/>
    </amx:panelLabelAndMessage>
    </amx:iterator>
    </amx:panelPage>
    </amx:view>
    Regards
    Bhaskara Reddy

  • Can anybody tell how to access web service from Message Driven bean

    Can anybody tell how to access web service from Message Driven bean

    Can anybody tell how to access web service from Message Driven bean

  • How to call Web Services with Sun Java Studio Creator?

    Can someone from Sun please explain how to use the sample Web Services USWeather and GoogleSearch in Sun Java Studio Creator (no Portlet Application)?
    I read the Web Service Tutorial Accessing Web Services (http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/webservices.html) and this blog entry: http://blogs.sun.com/roller/page/winston?entry=code_google_search_in_no .
    But the proposed solutions do not work with the services USWeather and GoogleSearch.
    Thank you.

    Thank you for your answer, dongmei.
    It seems that the MethodResultTableDataProvider does not return the response of the web service as a value field if the WSDL contains only one result element.
    E.g. from WSDL of the USWeather Web Service which returns theGetWeatherReportResult string:
    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.webserviceX.NET" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://www.webserviceX.NET" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
      <wsdl:types>
        <s:schema elementFormDefault="qualified" targetNamespace="http://www.webserviceX.NET">
          <s:element name="GetWeatherReport">
            <s:complexType>
              <s:sequence>
                <s:element minOccurs="0" maxOccurs="1" name="ZipCode" type="s:string" />
              </s:sequence>
            </s:complexType>
          </s:element>
          <s:element name="GetWeatherReportResponse">
            <s:complexType>
              <s:sequence>
                <s:element minOccurs="0" maxOccurs="1" name="GetWeatherReportResult" type="s:string" />
              </s:sequence>
            </s:complexType>
          </s:element>
          <s:element name="string" nillable="true" type="s:string" />
        </s:schema>If I drag the web service method on the page and I should be able to select the response value in the Bind to Data dialog box. But there is no value field. Value fields only occur if the web service returns more than one value.
    The question is how can I get the response GetWeatherReportResult from the service.

  • How to create web services with complex objects as parameters

    Hi,
    Not sure if this is the right place, but...
    I'm using Netbeans 5.5 and trying to learn web services.
    Creating a simple web service with simple parameters like strings and integers is nice and easy. I'm now trying to take the next step, and create a web service with a more complex schema as a parameter.
    I've tried two approaches, and hit dead ends on both:
    (1) Define my complex schema as an xsd file, and then create a WSDL file. Creating the schema and saving it in my EFB project works fine; when I try to create a new WSDL file, the IDE gives me a button to import external schemas - which is where the problem is: the Browse simply won't find my newly created schema file.
    (2) Define a Java class (in this case, it's a fairly simple example containing a single ArrayList), and then use the IDE to generate a web service from Java. The IDE does this fine, but I now have no idea how to consume or test the web service - I don't know where to look for the WSDL that has presumably been generated, and I'm also a bit iffy over what answers to give the WSDL creator about port names etc.
    Ideally, I'd prefer to get approach 1 to work - can someone point me in the direction of a sensible tutorial for these things?
    (Happy to carry on using Netbeans 5.5 or to revert to Sun Studio Enterprise, which I was playing with before.)
    All help appreciated, Thanks

    - For NetBeans related questions, nbusers mailing list is more suited. It is often visited by NetBeans experts.
    http://www.netbeans.org/community/lists/top.html
    ...[email protected]
    The NetBeans users mailing list. General discussion of NetBeans use, this is the place to ask for help and to help others.... (There is a 'Subscribe' button next to the above that you can use to subscribe to the list).
    Can you try posting this question on nbusers list?
    - SJSE 8.1 is based on an older version of NB (NB5.0).
    You should definitely continue with NetBeans, since all development is now being done in NetBeans; all the major JSE modules have been moved to opensource at netbeans.org and are all being developed there. There are as yet no future plans to work on further releases for JSE.
    Please check out http://www.netbeans.org for more details.

  • How to use web service with ABAP Web Dynpro

    Hi.
         do you know, how to web service with ABAP Web Dynpro?

    Hi,
    If you have a webservice ready with you then you can generate a proxy from SE80 and you can use that. You just have to create a port and assign to that generated proxy(CLASS) and you are good to go.
    Let me know if you need more information.
    Thank You,
    Gajendra.

  • How to use web services with Dynamic url behaviour

    Hi,
    IView created by me currently uses some web services whose url behavior is static but i want to give a dynamic url behavior. i.e. i want to use the url which user provides. So here are my questions
    1. How I shall assign the url supplied by the user to IView?
    2. If I want to set some config variables during runtimes how I shall do it?
    Thanks in advance,
    Vishvesh

    Hi,
    1. I'm guessing you mean the webservice's url the user provides is pointing to an identical webservice to what you used to create your proxy... otherwise I think it will be very hard to do (I can imagine creating the proxies using the wsdl tool in run time or using code dome.. but that can't be what you want, right?).
    So if what you wanted is to use the same web service with a different url, then the web service's proxy class you created has API for doing this in code! (it inherits it)
    2. you can't, simply since the portal application doesn't ever use the config file... it isn't even deployed to the portal... so dynamic properties are "out of the question" here, sorry... see 1 again
    Regards,
    Ofer

  • Not able to access web service with axis and tomcat

    Dear all
    i am trying to access web service using axis in tomcat.
    i downloaded axis-bin-1_4.zip, unzipped it and installed it properly in tomcat.
    i had tested axis, its working fine.
    i had created a simple java class(a sample class from book) and deployed it in axis. i also created a client(a java consol class) for accessing that web service. but its giving error. i have no idea why this is comming.
    plz point me in right direction.
    thanks in advance
    The error is:
    Exception in thread "main" AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (404)/axis/ArithmeticProcessor.jws
    faultActor:
    faultNode:
    faultDetail:
            {}:return code:  404
    <html><head><title>Apache Tomcat/6.0.14 - Error report</tit
    le><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;ba
    ckground-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;
    color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Ari
    al,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-f
    amily:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-famil
    y:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:
    Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color :
    black;}A.name {color : black;}HR {color : #525D76;}--></style> </hea
    d><body><h1>HTTP Status 404 - /axis/ArithmeticProcessor.jws</h
    1><HR size="1" noshade="noshade"><p><b>
    type</b> Status report</p><p><b>message</b> <u&
    gt;/axis/ArithmeticProcessor.jws</u></p><p><b>descriptio
    n</b> <u>The requested resource (/axis/ArithmeticProcessor.jws) is n
    ot available.</u></p><HR size="1" noshade="noshade
    "><h3>Apache Tomcat/6.0.14</h3></body></html>
            {http://xml.apache.org/axis/}HttpErrorCode:404
    (404)/axis/ArithmeticProcessor.jws
            at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j
    ava:744)
            at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
            at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
    y.java:32)
            at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
            at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
            at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
            at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
            at org.apache.axis.client.Call.invoke(Call.java:2767)
            at org.apache.axis.client.Call.invoke(Call.java:2443)
            at org.apache.axis.client.Call.invoke(Call.java:2366)
            at org.apache.axis.client.Call.invoke(Call.java:1812)
            at ArithmeticClient.main(ArithmeticClient.java:50)

    Hi ,
    Please go through this link and check in this way only you created the webservice correctly or not. If not follow and do it definitely will get you the webservice access by iphone or any application.
    www.scribd.com/doc/19255987/Web-Services-in-Abap

  • How to test my ADF mobile browser application on Android emulator?

    Hi
    I have created a Mobile Browser Application. Could anyone please tell me how to test it on Android emulator?
    I read the information about downloading and configuring simulators(Blackberry) and emulators(Microsoft Windows) for ADF Mobile browser in "Running Mobile Device Simulators with ADF Mobile and JDeveloper". However they didn't mention details about downloading and configuring "*Android Emulators*". Could anyone please help me in this.
    Regards
    Raja

    Hi,
    thought you want to test a mobile BROWSER application on android emulator you have to use android JDK like mentioned by codigoadf.
    I guess also that the configuration (create virtual android device, ...) will be the same.
    You have to use the same URL for your application than on your PC but replace 127.0.0.1 by 10.0.2.2 (In case your WLS runs on the same machine as the android emulator)
    regards
    Peter

  • How to get data from web service in ADF mobile

    I'm new to ADF mobile application development. I'm currently blocked in a scenario. I have a web service(from third party) which needs <wsse:Security> to retrieve data. In soapUI, the web service will retrieve the response only when there is this security tag. Otherwise it will give response as invalid security. The web service looks like this:
            <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xx="http://xmlns.oracle.com/apps/csf/soaprovider/plsql/xx_fs_mob_login/" xmlns:get="http://xmlns.oracle.com/apps/csf/soaprovider/plsql/xx_fs_mob_login/get_login/">
                   <soapenv:Header>
                      <xx:SOAHeader>
                         <!--Optional:-->
                         <xx:Responsibility>XXX</xx:Responsibility>
                         <!--Optional:-->
                         <xx:RespApplication>XXX</xx:RespApplication>
                         <!--Optional:-->
                         <xx:SecurityGroup>XXX</xx:SecurityGroup>
                         <!--Optional:-->
                         <xx:NLSLanguage>XXX</xx:NLSLanguage>
                         <!--Optional:-->
                         <xx:Org_Id>XXX</xx:Org_Id>
                      </xx:SOAHeader>
        <The portion which is excluded from the soap, but which is required for getting response>
        <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
                         <wsse:UsernameToken wsu:Id="UsernameToken-1">
                            <wsse:Username>XXX</wsse:Username>
                            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXX</wsse:Password>
                            <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">XXX</wsse:Nonce>
                            <wsu:Created>2013-02-13T08:58:50.649Z</wsu:Created>
                         </wsse:UsernameToken>
                      </wsse:Security>
        <The portion which is excluded from the soap, but which is required for getting response>
                   </soapenv:Header>
                   <soapenv:Body>
                      <get:InputParameters>
                         <!--Optional:-->
                         <get:P_USERNAME>XXX</get:P_USERNAME>
                      </get:InputParameters>
                   </soapenv:Body>
                </soapenv:Envelope>
    I tried the steps described in ADF mobile tutorial to get web service data. But I'm getting response code 500 from the server. I tried the steps for secured web service also. But I'm not sure which security policy has been implemented in the web service. I tried with oracle/wss_username_client_token_policy and some others but didn't succeed. Later I tried by creating web service client/proxy. But as Oracle ADF only supports java 1.4, I got errors in the generated code(errors on generics and annotation).
    The WSDL for the web service is as follows:
        <definitions xmlns:tns="http://xmlns.oracle.com/apps/csf/soaprovider/plsql/xx_fs_mob_login/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns1="http://xmlns.oracle.com/apps/csf/soaprovider/plsql/xx_fs_mob_login/get_login/" name="XX_FS_MOB_LOGIN" targetNamespace="http://xmlns.oracle.com/apps/csf/soaprovider/plsql/xx_fs_mob_login/">
        <types>
        <schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/apps/csf/soaprovider/plsql/xx_fs_mob_login/get_login/">
        <include schemaLocation="http://27.251.157.211:8000/webservices/SOAProvider/plsql/xx_fs_mob_login/APPS_XX_FS_MOB_LOGIN_GET_LOGIN.xsd"/>
        </schema>
        <schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/apps/csf/soaprovider/plsql/xx_fs_mob_login/">
        <element name="SOAHeader">
        <complexType>
        <sequence>
        <element name="Responsibility" minOccurs="0" type="string"/>
        <element name="RespApplication" minOccurs="0" type="string"/>
        <element name="SecurityGroup" minOccurs="0" type="string"/>
        <element name="NLSLanguage" minOccurs="0" type="string"/>
        <element name="Org_Id" minOccurs="0" type="string"/>
        </sequence>
        </complexType>
        </element>
        </schema>
        </types>
        <message name="GET_LOGIN_Input_Msg">
        <part name="header" element="tns:SOAHeader"/>
        <part name="body" element="tns1:InputParameters"/>
        </message>
        <message name="GET_LOGIN_Output_Msg">
        <part name="body" element="tns1:OutputParameters"/>
        </message>
        <portType name="XX_FS_MOB_LOGIN_PortType">
        <operation name="GET_LOGIN">
        <input message="tns:GET_LOGIN_Input_Msg"/>
        <output message="tns:GET_LOGIN_Output_Msg"/>
        </operation>
        </portType>
        <binding name="XX_FS_MOB_LOGIN_Binding" type="tns:XX_FS_MOB_LOGIN_PortType">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="GET_LOGIN">
        <soap:operation soapAction="http://XXX:8000/webservices/SOAProvider/plsql/xx_fs_mob_login/"/>
        <input>
        <soap:header message="tns:GET_LOGIN_Input_Msg" part="header" use="literal"/>
        <soap:body parts="body" use="literal"/>
        </input>
        <output>
        <soap:body use="literal"/>
        </output>
        </operation>
        </binding>
        <service name="XX_FS_MOB_LOGIN_Service">
        <port name="XX_FS_MOB_LOGIN_Port" binding="tns:XX_FS_MOB_LOGIN_Binding">
        <soap:address location="http://XXX:8000/webservices/SOAProvider/plsql/xx_fs_mob_login/"/>
        </port>
        </service>
        </definitions>
    Please help me to figure out a solution for this.
    Thanks in advance
    Rino

    how to store the data in the mobile which i fetched from the server using RMS. Can u give me a eg. code. here and send me a link to my email id. [email protected]
    I am using Oravle10g as the database. It is installed in the server.
    I made a connection in servlet using ODBC:JDBC.
    I am able to see the data fetched from the server in my mobile.
    Now, i am trying to save the data. But i dont know how to use the RMS to connect to the Oracle database or pass the string etc.
    Do help me if you dont mind.
    I kept reading and tried some codes but i failed.
    Me still trying...........
    Thanks in Advance.

  • How to access web service from Oracle ?

    Database version: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    I am trying to make a call to a web service through a procedure/function...
    I tried to use
    CREATE OR REPLACE PROCEDURE Call_Rest_Webservice
    AS
      t_Http_Req Utl_Http.Req;
      t_Http_Resp Utl_Http.Resp;
      t_Request_Body VARCHAR2(30000);
      t_Respond VARCHAR2(30000);
      t_Start_Pos INTEGER := 1;
      t_Output VARCHAR2(2000);
    BEGIN
      /*Construct the information you want to send to the webservice.
      Normally this would be in a xml structure. But for a REST-
      webservice this is not mandatory. The webservice i needed to
      call excepts plain test.*/
      t_Request_Body := 'the data you want to send to the webservice';
      /*Telling Oracle where the webservice can be found, what kind of request is made
      and the version of the HTTP*/
      t_Http_Req := Utl_Http.Begin_Request('**webservice address**',
                                           'GET',
                                           'HTTP/1.1');
      /*In my case the webservice used authentication with a username an password
      that was provided to me. You can skip this line if it's a public webservice.*/
      --Utl_Http.Set_Authentication(t_Http_Req, 'username', 'password');
      /*Describe in the request-header what kind of data is send*/
      Utl_Http.Set_Header(t_Http_Req, 'Content-Type', 'text/xml charset=UTF-8');
      /*Describe in the request-header the lengt of the data*/
      Utl_Http.Set_Header(t_Http_Req, 'Content-Length', Length(t_Request_Body));
      /*Put the data in de body of the request*/
      Utl_Http.Write_Text(t_Http_Req, t_Request_Body);
      /*make the actual request to the webservice en catch the responce in a
      variable*/
      t_Http_Resp := Utl_Http.Get_Response(t_Http_Req);
      /*Read the body of the response, so you can find out if the information was
        received ok by the webservice.
        Go to the documentation of the webservice for what kind of responce you
        should expect. In my case it was:
        <responce>
          <status>ok</status>
        </responce>
      Utl_Http.Read_Text(t_Http_Resp, t_Respond);
      /*Some closing?1 Releasing some memory, i think....*/
      Utl_Http.End_Response(t_Http_Resp);
    END;But it gave me ORA-29272: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1029
    ORA-12545: Connect failed because target host or object does not exist
    But I can link to the web server by going to **webservice address** through my browser.
    Is there any ACL should be open in order to have this capability? I asked my DBA but she asked me I will need to give her username/password/ip in order to open an ACL...
    however there is no username/password required while visiting the web service...
    Any help would be highly appreciated..
    Thanks,
    Edited by: 986006 on Mar 4, 2013 8:38 AM

    Y.L wrote:
    That is because the database was unable to connect to the specified server. Wrong hostname or IP specified. Failure to resolve the hostname into an IP. Firewall blocking. Etc.The hostname I put there can be visit through my browser. I think it should not be the host server's issue... So it could be a firewall on my database side that needs to be open in order to visit the hostserver?The "web browser" code (your PL/SQL code using UTL_HTTP) runs on the Oracle database server. It needs the same type of network access that your browser on your PC enjoys. (firewalls opened, proxy authentication if required, etc).
    On 11g. Not on 10g.I saw the example code you post through the link you provided... will those only work on 11g?
    If it can work on 10g, what package or what steps I need to follow in order to have that working on me?The code I've posted will work on both versions. My comment was regards to ACLs. No ACLs existed on 10g. So you only need execute privs on the relevant packages (e.g. UTL_HTTP, etc).
    ACLs were introduced with 11g - so on 11g you also need the DBA to create an ACL for you that will allow UTL_HTTP access to the network.

  • How to call web service with parameters?

    Hi
    I'm testing a distributed architecture where parameters are queried from an ODBC database, and a web service called with resulting parameters as input, returning a computed result to the integrated Crystal report. I'm unable to successfully associate the database fields with the web service parameters - the web service is always called with empty parameters. When I call the web service manually from CR by entering parameters, it works as expected. I'm using a sub-report with fields linked to the main report.
    Has anyone done something like this / know how to correctly link database fields with web service parameters?
    Help much appreciated,
    Lance

    An update - I solved this problem as follows:
    In CR Design view, right-click on sub-report object, select 'Change Subreport Links'. In the links dialog, transfer database fields into 'Field(s) to link to' list. Select a field in 'Field(s) to link to' and in 'Subreport parameter field to use' below, map the field to the appropriate web service parameter field in the dropdown.
    Tested with version 11.5.8.826.
    - Lance

  • How to consume Web Service with Password digest from PLSQL

    We have Oracle 10g (10.2.0.3.0) 64 bit. We have a situation where we need to consume web service whose security header looks like as follow,
    <soapenv:Header>
    <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <wsse:UsernameToken wsu:Id="UsernameToken-50">
    <wsse:Username>weblogic</wsse:Username>
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">d2enK45chjBPVvvukbYU6OX56kI=</wsse:Password>
    <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">YAhEtLJfp4lzycLd3hZYjQ==</wsse:Nonce>
    <wsu:Created>2013-01-22T06:28:38.897Z</wsu:Created>
    </wsse:UsernameToken>
    </wsse:Security>
    </soapenv:Header>
    Here we need passowrd digest, Nonce and Timestamp.
    How to create password digest from PLSQL? or if any other alternatives available please response soon.

    I do not see why it will not be possible to do digest authentication with a web server using PL/SQL.
    As for the digest password - the web server supplies a token (a nonce) which you need to use for creating the hashed authentication token (the digest password). The URL I posted explains this authentication process.
    As for the technical how-to in PL/SQL - as I mentioned, never had to do this (only dealt with Basic and NTLM authentication thus far). But as other auth methods (such as Microsoft's NTLM) can be implemented, I do not see why digest authentication could not.
    Suggest you spend some time googling for technical articles/sample code on the subject - and try to find specific PL/SQL related sample code too.

  • How to call Web Services (with javascript) in a view load event ?

    Hello to the expert community,
    I'm looking for a piece of javascript code allowing to call Web Services in a view load event ?
    Any ideas will be really appreciated.
    Regards.
    Have a nice week.

    Thank you for your answer, dongmei.
    It seems that the MethodResultTableDataProvider does not return the response of the web service as a value field if the WSDL contains only one result element.
    E.g. from WSDL of the USWeather Web Service which returns theGetWeatherReportResult string:
    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.webserviceX.NET" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://www.webserviceX.NET" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
      <wsdl:types>
        <s:schema elementFormDefault="qualified" targetNamespace="http://www.webserviceX.NET">
          <s:element name="GetWeatherReport">
            <s:complexType>
              <s:sequence>
                <s:element minOccurs="0" maxOccurs="1" name="ZipCode" type="s:string" />
              </s:sequence>
            </s:complexType>
          </s:element>
          <s:element name="GetWeatherReportResponse">
            <s:complexType>
              <s:sequence>
                <s:element minOccurs="0" maxOccurs="1" name="GetWeatherReportResult" type="s:string" />
              </s:sequence>
            </s:complexType>
          </s:element>
          <s:element name="string" nillable="true" type="s:string" />
        </s:schema>If I drag the web service method on the page and I should be able to select the response value in the Bind to Data dialog box. But there is no value field. Value fields only occur if the web service returns more than one value.
    The question is how can I get the response GetWeatherReportResult from the service.

Maybe you are looking for

  • How to connect fax in Hp laser jet m 1005

    I have a HP Laser Jet M 1005, How can i connect fax in Hp laser jet m 1005

  • Very easy question, i think

    What's the best way to know if a certain row exist in a table given the primary key? The first i can think of it is as follow: ResultSet rs=statement.executeQuery("SELECT primary_key FROM tableX where primary_key=The_primary_key_i_look_for") boolean

  • Database not available

    Hi, I am getting the error message while starting startsap. Could you please provide the solution how it can be fixed. My of OS is Solaris. sapcebiw:BIPadm 5% cat /home/BIPadm/startdb.log Tue May 1 00:39:40 IST 2007 LOGFILE FOR STARTING ORACLE Trying

  • Emails being deleted automatically?

    I have a user on our network that is experiencing a strange issue with her GW account. There are no rules set, and all of her receiving settings appear to be okay, as far as I can tell. However, when she receives emails, they get automatically pushed

  • ONLY video files not already in library wont transfer to itunes library

    I've found NO help from the apple website dealing with this problem, video only importing problems don't even come up in the help sections. heres an example, i just bought a new cd, i can easily transfer the files from the drive to my library, or fro