5 Replies Latest reply: Jan 27, 2013 9:59 AM by 927943 RSS

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

    927943
      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
        • 1. Re: While consuming Fusion CRM web service in ADF mobile throwing an error
          Frank Nimphius-Oracle
          Hi,

          And also noticed as using JDeveloper ADF mobile App, unable to create URL service Data Control - REST based for FUsion CRM web services.

          Is the Fusion CRM service a REST service ? If it is a SOAP service then this is the answer why you get this message.

          Frank
          • 2. Re: While consuming Fusion CRM web service in ADF mobile throwing an error
            927943
            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
            • 3. Re: While consuming Fusion CRM web service in ADF mobile throwing an error
              Shay Shmeltzer-Oracle
              While I haven't tried it personally I would guess that the CRM services require user/pass to be invoked.
              So the Forbidden probably means that you didn't provide the right user/pass to get privileges to call the service.

              For the basics of how to invoke secured services see:
              https://blogs.oracle.com/shay/entry/accessing_secure_web_services_from
              • 4. Re: While consuming Fusion CRM web service in ADF mobile throwing an error
                985289
                Dear Bhaskara,

                For invoking Fusion CRM services ,you need to specify username and password in the soap request.If username and password is not present,then error message called "Forbidden" is thrown.
                Sometimes if username is correct and password is wrong,then also you will get the same message.

                Thanks & Regards,
                Rajesh Nagampurath
                • 5. Re: While consuming Fusion CRM web service in ADF mobile throwing an error
                  927943
                  Hi Rajesh,

                  Thru IDE of JDeveloper, I am specifying basic authentication with user name and password while creating WS BASED data control. I can show it to you if you want to see it.

                  Regards
                  Bhaskara