Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get data from web service in ADF mobile
    primarykey
    data
    text
    <p>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 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:</p> <pre><code> &lt;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/"&gt; &lt;soapenv:Header&gt; &lt;xx:SOAHeader&gt; &lt;!--Optional:--&gt; &lt;xx:Responsibility&gt;XXX&lt;/xx:Responsibility&gt; &lt;!--Optional:--&gt; &lt;xx:RespApplication&gt;XXX&lt;/xx:RespApplication&gt; &lt;!--Optional:--&gt; &lt;xx:SecurityGroup&gt;XXX&lt;/xx:SecurityGroup&gt; &lt;!--Optional:--&gt; &lt;xx:NLSLanguage&gt;XXX&lt;/xx:NLSLanguage&gt; &lt;!--Optional:--&gt; &lt;xx:Org_Id&gt;XXX&lt;/xx:Org_Id&gt; &lt;/xx:SOAHeader&gt; &lt;The portion which is excluded from the soap, but which is required for getting response&gt; &lt;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"&gt; &lt;wsse:UsernameToken wsu:Id="UsernameToken-1"&gt; &lt;wsse:Username&gt;XXX&lt;/wsse:Username&gt; &lt;wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"&gt;XXX&lt;/wsse:Password&gt; &lt;wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"&gt;XXX&lt;/wsse:Nonce&gt; &lt;wsu:Created&gt;2013-02-13T08:58:50.649Z&lt;/wsu:Created&gt; &lt;/wsse:UsernameToken&gt; &lt;/wsse:Security&gt; &lt;The portion which is excluded from the soap, but which is required for getting response&gt; &lt;/soapenv:Header&gt; &lt;soapenv:Body&gt; &lt;get:InputParameters&gt; &lt;!--Optional:--&gt; &lt;get:P_USERNAME&gt;XXX&lt;/get:P_USERNAME&gt; &lt;/get:InputParameters&gt; &lt;/soapenv:Body&gt; &lt;/soapenv:Envelope&gt; </code></pre> <p>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). </p> <p>The WSDL for the web service is as follows:</p> <pre><code>&lt;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/"&gt; &lt;types&gt; &lt;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/"&gt; &lt;include schemaLocation="http://27.251.157.211:8000/webservices/SOAProvider/plsql/xx_fs_mob_login/APPS_XX_FS_MOB_LOGIN_GET_LOGIN.xsd"/&gt; &lt;/schema&gt; &lt;schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/apps/csf/soaprovider/plsql/xx_fs_mob_login/"&gt; &lt;element name="SOAHeader"&gt; &lt;complexType&gt; &lt;sequence&gt; &lt;element name="Responsibility" minOccurs="0" type="string"/&gt; &lt;element name="RespApplication" minOccurs="0" type="string"/&gt; &lt;element name="SecurityGroup" minOccurs="0" type="string"/&gt; &lt;element name="NLSLanguage" minOccurs="0" type="string"/&gt; &lt;element name="Org_Id" minOccurs="0" type="string"/&gt; &lt;/sequence&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;/schema&gt; &lt;/types&gt; &lt;message name="GET_LOGIN_Input_Msg"&gt; &lt;part name="header" element="tns:SOAHeader"/&gt; &lt;part name="body" element="tns1:InputParameters"/&gt; &lt;/message&gt; &lt;message name="GET_LOGIN_Output_Msg"&gt; &lt;part name="body" element="tns1:OutputParameters"/&gt; &lt;/message&gt; &lt;portType name="XX_FS_MOB_LOGIN_PortType"&gt; &lt;operation name="GET_LOGIN"&gt; &lt;input message="tns:GET_LOGIN_Input_Msg"/&gt; &lt;output message="tns:GET_LOGIN_Output_Msg"/&gt; &lt;/operation&gt; &lt;/portType&gt; &lt;binding name="XX_FS_MOB_LOGIN_Binding" type="tns:XX_FS_MOB_LOGIN_PortType"&gt; &lt;soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/&gt; &lt;operation name="GET_LOGIN"&gt; &lt;soap:operation soapAction="http://XXX:8000/webservices/SOAProvider/plsql/xx_fs_mob_login/"/&gt; &lt;input&gt; &lt;soap:header message="tns:GET_LOGIN_Input_Msg" part="header" use="literal"/&gt; &lt;soap:body parts="body" use="literal"/&gt; &lt;/input&gt; &lt;output&gt; &lt;soap:body use="literal"/&gt; &lt;/output&gt; &lt;/operation&gt; &lt;/binding&gt; &lt;service name="XX_FS_MOB_LOGIN_Service"&gt; &lt;port name="XX_FS_MOB_LOGIN_Port" binding="tns:XX_FS_MOB_LOGIN_Binding"&gt; &lt;soap:address location="http://XXX:8000/webservices/SOAProvider/plsql/xx_fs_mob_login/"/&gt; &lt;/port&gt; &lt;/service&gt; &lt;/definitions&gt; </code></pre> <p>Please help me to figure out a solution for this.</p> <p>Thanks in advance Rino</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload