Using Web Service from LiveCycle PDF Dynamic Form.

I have developed Staff Attendance Sheet about 7 years ago using Microsoft Office Web Componenets Data Access Pages (OWC DAP).
See image below of the current report using OWC DAP:
http://bit.ly/cAfeYs
Since we are moving our legacy systems to SAP, this report will have to be re-implemented using Adobe LiveCycle PDF which is connecting to Web Service over SAP Systems (since OWC does not connect to Web Service).
The SAP development team have developed the initial webservice which generates the required data.
I have developed the initial version of the LiveCycle PDF, which can be downloaded from this link:
http://bit.ly/9KBgm0
The following is a screen snapshot of the LC Desinger Form:http://bit.ly/cxMK62
When the web service is executed from inside PDF the result looks as follows:
http://bit.ly/cacbCg
The webservice accepts the following required parameters:
1. Period: YYYYMM. User Specified Value.
2. Staff ID: 9999999. It must be supplied automatcially to the web service and it must be the Windows ID of the User Logged In to Windows
Domain.
Other parameters are optional.
Assumptions:
==========
1. I am not using any Adobe Forms Server Technology. I can use LiveCycle Desinger ES2 and LiveCycle Reader Extensions Server.
2. I can alse develop using .NET to get the Logged In User ID (Windows), generate the XDP from ASPX Page and attach the XML to the XDP.
3. We are using IE8 with Adobe Reader 9 Plugin (IE add-on) to display LiveCycle PDF inside IE.
Questions:
========
1. First time the webservice is executed, I will get a prompt to allow/deny execution of the webservice. This is a security issue here, becuase we do not want any user to know the link to the Web Service. How we can hide the link to the webservice and prevent any user from getting the link ?
2. How I can stop the Prompt to Allow/Deny execution to the Web Service for good ? As you know, users will get confused, and when we launch this PDF, it will generate a lot of calls to the Service Desk (more than 1000 users).
3. The Web Service uses Simple User Name/Password for authentication to run the webservice. I need to embed the User Name/Password inside
the PDF, and also prevent any user for getting them, how ?
4. I want to send the Staff ID Parameter to the Web Service Automatically which is the Logged In User ID (Windows). This is the same value of the "Login Name" which can be accessed using Acrobat JavaScript. But the problem, this script must be trusted, and it will be a long story. Any ideas how to implement this requirement using simple methods ?
5. If I manage to send the Staff ID Parameter to the Webservice automatically (Logged In User ID), also, I want to prevent the user from sending a different user ID, ie, prevent him from using Import Data to Form to specify a Different User ID for the Webservice Parameter. How ?
I appreciate your help if you have any ideas about the above.
Tarek.

Hi Tarek,
First of all, Thank for your replying.
I have developing Adobe LiveCycle xdp form with a button. The SAP Web Service will be called when the button is pressed.
Before that, I ‘m able to call another ASP.NET web services by using SOAP.request call. However, when I apply the code to call SAP web service, it doesn’t work. I checked that the web service is valid. And I found that there is something wrong when implementing the SOAP.request call. But I have no idea what wrong is it. So, I beg your help
The following is the code in the click event of the button:
//mainData.sfMain.Button7[1]::click - (JavaScript, client)
    var webServiceEndPoint = "http://xxxxxxx.xxxxxxx.com:8000/sap/bc/srt/wsdl/bndg_DEDB492BB032E7F1B09F001CC4FBCEC9/wsdl11/allinone/ws_policy/document?s ap-client=300";
    var staffIDInput = "9999999";
    var oAuthenticator = {
    Username: "usr",
    Password: "pw"
app.alert("1");
    var response = SOAP.request({
       bEncoded: false,
       cResponseStyle: SOAPMessageStyle.Message,
       cURL: webServiceEndPoint,
       oRequest: {"urn:Z_RFC_GET_STAFF_BANK_INFO":{A_STAFF_ID: staffIDInput}},
         cAction: "urn:sap-com:document:sap:rfc:functions",
        oAuthenticate: oAuthenticator
app.alert("2");
WSDL is shown as follow:
<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions targetNamespace="urn:sap-com:document:sap:rfc:functions" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="urn:sap-com:document:sap:rfc:functions" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
- <wsdl:documentation>
<sidl:sidl xmlns:sidl="http://www.sap.com/2007/03/sidl" />
</wsdl:documentation>
<wsp:UsingPolicy wsdl:required="true" />
- <wsp:Policy wsu:Id="BN_ZWS_ALC_GET_STAFF_BANK_INFO">
- <wsp:ExactlyOne xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy" xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility">
- <wsp:All>
- <sp:TransportBinding>
- <wsp:Policy>
- <sp:TransportToken>
- <wsp:Policy>
<sp:HttpsToken />
</wsp:Policy>
</sp:TransportToken>
- <sp:AlgorithmSuite>
- <wsp:Policy>
<sp:TripleDesRsa15 />
</wsp:Policy>
</sp:AlgorithmSuite>
- <sp:Layout>
- <wsp:Policy>
<sp:Strict />
</wsp:Policy>
</sp:Layout>
</wsp:Policy>
</sp:TransportBinding>
</wsp:All>
</wsp:ExactlyOne>
<saptrnbnd:OptimizedXMLTransfer uri="http://xml.sap.com/2006/11/esi/esp/binxml" xmlns:saptrnbnd="http://www.sap.com/webas/710/soap/features/transportbinding/" wsp:Optional="true" />
</wsp:Policy>
- <wsp:Policy wsu:Id="IF_ZWS_ALC_GET_STAFF_BANK_INFO">
- <sapsession:Session xmlns:sapsession="http://www.sap.com/webas/630/soap/features/session/">
<sapsession:enableSession>false</sapsession:enableSession>
</sapsession:Session>
<wsp:ExactlyOne xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy" xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" />
</wsp:Policy>
- <wsp:Policy wsu:Id="OP_Z_RFC_GET_STAFF_BANK_INFO">
<sapcomhnd:enableCommit xmlns:sapcomhnd="http://www.sap.com/NW05/soap/features/commit/">false</sapcomhnd:enableCommit>
<sapblock:enableBlocking xmlns:sapblock="http://www.sap.com/NW05/soap/features/blocking/">true</sapblock:enableBlocking>
<saptrhnw05:required xmlns:saptrhnw05="http://www.sap.com/NW05/soap/features/transaction/">no</saptrhnw05:required>
<saprmnw05:enableWSRM xmlns:saprmnw05="http://www.sap.com/NW05/soap/features/wsrm/">false</saprmnw05:enableWSRM>
</wsp:Policy>
- <wsdl:types>
- <xsd:schema attributeFormDefault="qualified" targetNamespace="urn:sap-com:document:sap:rfc:functions">
- <xsd:element name="Z_RFC_GET_STAFF_BANK_INFO">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element name="A_STAFF_ID" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
- <xsd:element name="Z_RFC_GET_STAFF_BANK_INFOResponse">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element name="L_BANK_ACC" type="xsd:string" />
<xsd:element name="L_BANK_ACC_HOLDER" type="xsd:string" />
<xsd:element name="L_BANK_NAME" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
- <wsdl:message name="Z_RFC_GET_STAFF_BANK_INFO">
<wsdl:part name="parameters" element="tns:Z_RFC_GET_STAFF_BANK_INFO" />
</wsdl:message>
- <wsdl:message name="Z_RFC_GET_STAFF_BANK_INFOResponse">
<wsdl:part name="parameter" element="tns:Z_RFC_GET_STAFF_BANK_INFOResponse" />
</wsdl:message>
- <wsdl:portType name="ZWS_ALC_GET_STAFF_BANK_INFO">
- <wsp:Policy>
<wsp:PolicyReference URI="#IF_ZWS_ALC_GET_STAFF_BANK_INFO" />
</wsp:Policy>
- <wsdl:operation name="Z_RFC_GET_STAFF_BANK_INFO">
- <wsp:Policy>
<wsp:PolicyReference URI="#OP_Z_RFC_GET_STAFF_BANK_INFO" />
</wsp:Policy>
<wsdl:input message="tns:Z_RFC_GET_STAFF_BANK_INFO" />
<wsdl:output message="tns:Z_RFC_GET_STAFF_BANK_INFOResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="ZWS_ALC_GET_STAFF_BANK_INFO" type="tns:ZWS_ALC_GET_STAFF_BANK_INFO">
- <wsp:Policy>
<wsp:PolicyReference URI="#BN_ZWS_ALC_GET_STAFF_BANK_INFO" />
</wsp:Policy>
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
- <wsdl:operation name="Z_RFC_GET_STAFF_BANK_INFO">
<soap:operation soapAction="" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="service">
- <wsdl:port name="ZWS_ALC_GET_STAFF_BANK_INFO" binding="tns:ZWS_ALC_GET_STAFF_BANK_INFO">
<soap:address location="http://xxxxxxx.xxxxxxx.com:8000/sap/bc/srt/rfc/sap/zws_alc_get_staff_bank_info/300/zws_alc _get_staff_bank_info/zws_alc_get_staff_bank_info" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

Similar Messages

  • Web Services From EBS R 12 forms.

    Hi,
    Kindly help me with the below requirement.
    We need to call external web services from Our EBS application. We have a custom application,which requires to consume web services from an external website.
    How can we achive this ?
    Environment details:
    Oracle EBS R 12.0.6
    DB :10.2.0.4
    Regards,
    Satish

    Hi,
    Sorry for the late reply.
    **apache log**
    [Thu Dec 15 10:34:32 2011] [error] [client 10.1.15.131] [ecid: 1323930872:10.8.6                                             5.13:32758:0:365,0] Directory index forbidden by rule: /oracle/oracle_dev/apps/a pps_st/comn/java/classes/
    [Thu Dec 15 10:34:33 2011] [error] [client 10.1.15.131] [ecid: 1323930873:10.8.6                                             5.13:19686:0:158,0] Directory index forbidden by rule: /oracle/oracle_dev/apps/a pps_st/comn/java/classes/
    [Thu Dec 15 10:34:36 2011] [error] [client 10.1.15.131] [ecid: 1323930876:10.8.6                                             5*.13:19758:0:281,0] File does not exist: /oracle/oracle_dev/inst/apps/UAT_auherp apptrng/portal/oracle/oracle_dev/apps/apps_st/comn/java/classes/oracle/apps/fnd/ jar/archive1.jar*
    [Thu Dec 15 10:34:36 2011] [error] [client 10.1.15.131] [ecid: 1323930876:10.8.6                                             5.13:19758:0:282,0] File does not exist: /oracle/oracle_dev/inst/apps/UAT_auherp apptrng/portal/oracle/oracle_dev/apps/apps_st/comn/java/classes/oracle/apps/fnd/ jar/archive1.jar
    [Thu Dec 15 10:34:36 2011] [error] [client 10.1.15.131] [ecid: 1323930876:10.8.6                                             5.13:19758:0:283,0] File does not exist: /oracle/oracle_dev/apps/apps_st/comn/ja va/classes/oracle/forms/icons/save.gif
    [Thu Dec 15 10:34:36 2011] [error] [client 10.1.15.131] [ecid: 1323930876:10.8.6                                             5.13:19758:0:284,0] File does not exist: /oracle/oracle_dev/apps/apps_st/comn/ja va/classes/oracle/forms/icons/print.gif
    [Thu Dec 15 10:34:36 2011] [error] [client 10.1.15.131] [ecid: 1323930876:10.8.6                                             5.13:19758:0:285,0] File does not exist: /oracle/oracle_dev/apps/apps_st/comn/ja va/classes/oracle/forms/icons/pset.gif
    [Thu Dec 15 10:34:36 2011] [error] [client 10.1.15.131] [ecid: 1323930876:10.8.6                                             5.13:19758:0:286,0] File does not exist: /oracle/oracle_dev/apps/apps_st/comn/ja va/classes/oracle/forms/icons/exit.gif
    [Thu Dec 15 10:34:
    ** Application log**
    Thr is not entry related to that form in the application log.
    we are following the below metalink note:
    How to add custom JAR files to Apache OC4J Classpath in R12 instance? [ID 433241.1]
    Steps followed.
    1. added jar file in $OA_JAVA/oracle/apps/fnd/jar/archie1.jar
    2. updated the paramters s_oacore_prepend_classpath and s_oacore_append_classpath with the above ( $OA_JAVA/oracle/apps/fnd/jar/archie1.jar) jar file location.
    3.auto config was executed successfully
    4. restarted the services.
    Note:
    1.oacore specific parameter was successfully update in all the orion-application.xml execpt this file $INST_TOP/ora/10.1.3/j2ee/forms/application-deployments/forms/orion-application.xml. We manuallly added the entry in the file and restarted the serivce.
    2. we were getting the same error (FRM-40735 WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-105100) with jdeveloper but got resolved by adding jdev.jar in forms_classpath.
    Regards,
    Satish
    Edited by: hcs on Dec 15, 2011 1:07 AM

  • Is it possible to access a html based web service from a pdf form?

    I was wondering if it is possible to send a query from livecycle to web service and parse the return data.
    An quick example of what I am thinking is querying a database like wolfram alpha using their html query.
    It is in the format http://api.wolframalpha.com/v2/query?input=pi&appid=XXXX. where "pi" is the query and XXXX is the specific user id
    The website then returns a xml file.
    Is there anyway to send out that html with any query from a text field and process the response?
    Thanks!

    Hi,
    Naseko is right in using the formcalc get function, and I use this for accessing information from google calendar, you can also call the formcalc get function from JavaScript as described here http://blogs.adobe.com/formfeed/2009/02/calling_formcalc_functions_fro.html.
    The main problem I have is with the yellow message bar message and popup saying do you want to allow access to api.wolframalpha.com (or whatever).  I think you can get around this by certifing the form, but I don't have access to the servre products to do that.
    Anyway, if it helps have a look at https://workspaces.acrobat.com/?d=vFcW-9OVSm*BdV6GyFfUIg you will need to modify the button click code to specify your own appid but the code is simple enough;
    var response = FormCalc.Function.Get("http://api.wolframalpha.com/v2/query?appid=<<appid>>&input=capital%20of%20australia");
    response = response.replace(/^<\?xml\s+version\s*=\s*(["'])[^\1]+\1[^?]*\?>/, "");
    var responseNode = xfa.datasets.createNode("dataGroup", "response");
    responseNode.loadXML(response, false, false);
    var answer = responseNode.resolveNode("queryresult.pod.(title.value=='Result')").subpod.plaintext.value;
    console.println(answer);
    So this code sends a query "capital of australia" and gets a response "Canberra, Australian Capital Territory, Australia"
    Replace <<appid>> with your appid and look at the linked sample to see how FormCalc.Function.Get works.
    Also, expect Designer to crash a few times while getting it to work.
    Hope this helps,
    Bruce

  • Using Web Service from JSP

    hi all,
    i must read a html form and send these value to a web service and get return value (XML) from web service but i can't find how it has been done so i need help.
    Thanks.
    ps : my english is not too good. (i think you know this before.)
    : i'm very very tiro :)

    i must read a html form and send these value to a web
    service and get return value (XML) from web serviceHi,
    Check out Jakarta AXIS to create Web services and clients.
    http://ws.apache.org/axis/
    Understanding your situation, I think you can.
    1. Create a web service using AXIS. Deploy this in a web application say TESTAXIS in a container say TOMCAT. "Publish" the web service.
    2. Create another web application and have a servlet read the form code. Embed the client code in the servlet and send the data to the web service.
    Bingo !!! Your job is done !!!
    Regards.

  • Using web services from apex end

    Hi,
    I'm trying to suspend/delete/resume a particular job scheduled in BI Publisher from oracle apex end.For these I'm using the following web services
    1.suspendScheduledReport
    2.resumeScheduledReport
    3.deleteScheduledReport
    when calling
    suspendScheduledReportResponse/
    resumeScheduledReportResponse/
    deleteScheduledReportResponse
    all of them are returning true.
    although the web service call is being successful, but jobs are not being suspended/resumed/deleted in BI Publisher.
    the web service "deleteScheduledReportHistory" is working fine.
    The products I'm using:
    APEX 3.1.2
    BI Publisher 10.1.3.4
    can anyone have detail idea of these??
    its really urgent.
    regards,
    joyoti

    I recommend you post this in a forum that has BI Publisher expertise, this is a WebLogic Server forum.

  • Using web-services from campaign

    Hello,
    Using POST/GET I need to pass to a web page a number dialed in a campaign by the customer, I think the only way to do that is using the web-services call utility. How can I do that? I have not been able to do a simple web-service call using it, it aways ends with some error on bea. I have read some topics here regarding this issue but none helped.
    Thanks,
    Davi Elias

    It is not just 1 node, you will need to do several things which I have outlined here.
    In the first node set your variables.
    Here the invocation class is defined.
    Set this to the standard Native Invocation Class used in CCA.
    If this was not defined, the Campaign should use a default invocation class but I'd advise you to specify just to be sure.
    The values are:
    $invocationClass
    com.taw.web.invocation.WebServiceInvocation
    Remember that when specifying the string value single quotes (ticks) should surround the value (as with any string in CCA Campaigns).
    Next in the same node set the values for the service name.
    Set this to the default of ‘invoke’ used in CCA.
    If this was not defined, the Campaign should use the default of ‘invoke’ but again I'd advise on setting it to be sure.
    The values are :
    $serviceName
    invoke
    Next you will need to set the values that will be passed as the input objects to the invocation class.
    Recall that the two required objects are WebServiceInvocationId and KeyValue.
    The next area that would need to be defined is the Invocation wait loop.
    This is done for both testing as well as operation reasons.
    For testing this provides simple troubleshooting.
    For production use, the loop is important to handle time outs and errors.
    If the timeout value is ever reached, the return value will be set to Fail.
    First set the loop counter, then in the child nodes define the Loop counter expressions to check for a specific time to wait value.
    The external web service will need to be prepared to receive the exact objects sent by the Invocation class.
    In addition it will also expect to be instructed to process the invoke method.
    That should be enough to get you going.

  • Error when calling Web Service from Adobe Form

    Hi all,
    I need to invoke a Web Service from my Adobe Interactive Form. I have merged the WSDL files, following the steps in this document:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/148ec26e-0c01-0010-e488-decaafae3b26
    But when I press the corresponding button in order to call the web service, I get the following error:
    "Error trying to read file.
    http://<my_host>:51000/<my_WS>/Config1?style=document"
    It seems to be an error in my configuration, because I'm sure that I have followed all steps in the previous PDF.
    Any idea?
    Thanks.

    Well, I think so... I've followed all the steps, and my merged WSDL file seems like the one in page 12...
    Any suggestion, please?
    Thank you,

  • How to retrieve the username/password of logged user so to use web services

    Hi Experts,
    we are using web services from a web dynpro application, the web services we use are CAF web services; actually we are "hardcoding" username and password so to be able to execute these web services, using this code before calling the web service:
    wdContext.currentRequest_ReporteDeRendicionDetallada_RElement().modelObject().setInvokerProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY,"testuser");
      wdContext.currentRequest_ReporteDeRendicionDetallada_RElement().modelObject().setInvokerProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY,"testpassword");
    but as this is not a very good practice, we want to replace the "testuser" with the logged user and, of course, retrieve the password and use it instead of "testpassword".
    How can we achieve this? I couldn´t find any tips on this.
    Best regards,
    Marco.

    Hello,
    thanks for your anwsers, although I´ve followed both links I couldn´t find the answer to my problem.
    I need to know how to retreive user and password from the UME of the portal so to be able to execute web services in the java stack, the UME is connected to a LDAP in our corporation.. so may be the passwords are not stored in the UME?
    If it is not possible to retrieve the passwords of the users , which is the best practice to deal with username/passwords to execute CAF webservices from web dynpro java? Hardcoding is not a very good practice..
    Best regards,
    Marco.

  • Calling web service from ADOBE 7.0 PDF Form

    Hi,
    I would like to get help from here for my problem.
    I have Interactive PDF form. user will enter th data and submit the form to server. In server side I am getting xml format stream.
    Now I would like to call a web service from the form instread of .Jsp/.asp/servlet. But I do not know how to do this.
    As we know, whem you make webservice call we have to send payload xml data. How do I do this. I tried using data connection for wsdl. this is not connecting at all.
    plz help me here

    Hi,
    using the the below code. have got the header like below. In the header- how the adobe handling <ns0: tags. I want to change this as like <wsa:. Please help me on this.
    var oHeader = {};
    oHeader[NS + "To"] =
    soapType: "wsa:ElementedURI",
    soapValue: "com.app.producer.ProducerImpl"
    var oResultHeader = {};
    var oRequest = {};
    oRequest["" + "test></test>"] = {};
    var response = SOAP.request(
    cURL: cURL,
    oRequest: oRequest,
    cAction: "http://testurl.com",
    oReqHeader: oHeader,
    oRespHeader: oResultHeader
    SOAP Envelop
    <?xml version="1.0" ?>
    - <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <SOAP-ENV:Header>
    <ns0:To SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:ns1="wsa" xsi:type="ns1:ElementedURI">com..app.producer.ProducerImpl</ns0:To>
    </SOAP-ENV:Header>
    - <SOAP-ENV:Body>
    <test />
    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

  • Error when trying to access a secured web service from Forms 10g 10.1.2.3

    Hello,
    I'm trying to access a secured web service from Forms10g 10.1.2.3 but i'm getting the next error when pressing the button the first time:
    java.rmi.RemoteException: ; nested exception is: HTTP transport error: javax.xml.soap.SOAPException:
    java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 401 UnauthorizeWhen i press the button a second time i got this error:
    javax.xml.rpc.soap.SOAPFaultException: The SOAP request is invalid. The required node 'Envelope' is missingThis is the code i have in my button:
    DECLARE
    jo ora_java.jobject;
    pdfObject ora_java.jobject;
    pdf     varchar2(900);
    rv varchar2(100);
    ex ora_java.jobject;
    BEGIN
    JO := SEARCHSOAPCLIENT.new;
    SEARCHSOAPCLIENT.setUsername(JO,'weblogic');
    SEARCHSOAPCLIENT.setPassword(JO,'welcome1');
    pdfObject := SEARCHSOAPCLIENT.quicksearch(JO,'1234',NULL);
    pdf := SEARCHSOAPCLIENT.tostring(pdfObject);
    message(pdf);
    message(' ');
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    :error := Exception_.toString(ex);
    END;When i run it from JDeveloper it works, this is a portion of java code the proxy web service has:
    import oracle.webservices.transport.ClientTransport;
    import oracle.webservices.OracleStub;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Stub;
    public class SearchSoapClient {
        private webservicesproxywebcontent.proxy.SearchSoap _port;
        public SearchSoapClient() throws Exception {
            ServiceFactory factory = ServiceFactory.newInstance();
            _port = ((webservicesproxywebcontent.proxy.Search)factory.loadService(webservicesproxywebcontent.proxy.Search.class)).getSearchSoap();
            this.setUsername("weblogic");
            this.setPassword("welcome1");
            System.out.println("callling from _port "+ _port.quickSearch("1234234", null));
         * @param args
        public static void main(String[] args) {
            try {
                webservicesproxywebcontent.proxy.SearchSoapClient myPort = new webservicesproxywebcontent.proxy.SearchSoapClient();
                System.out.println("calling " + myPort.getEndpoint());
            } catch (Exception ex) {
                ex.printStackTrace();
         * delegate all operations to the underlying implementation class.
        public QuickSearchResult quickSearch(String queryText, IdcPropertyList extraProps) throws java.rmi.RemoteException {
            return _port.quickSearch(queryText, extraProps);
        }Also the secured web service was generated from Webcenter Content 11.1.1.6 that is why it's a secured web service.
    Kind Regards
    Carlos

    Without going into any technical discussion about the code, my first question is what JDK version was used to create this which was imported into the form? Understand that Forms 10 runs on JDK 1.4.2, so if you used any newer JDK version, likely there will be problems.

  • Two web services in a pdf form

    I m designing a process which has two web services (adobe livecycle workbench) I can get respond from each of them but that means I have two xmls.
    The problem starts from here .I need one document put into pdf however I have two Documents, one from each web service
    ı just need to equal two xml to one xml that case I can have one document to put into renderPDFfrom process
    what should I do ?
    should I put another process to combine xml or is there any methods to combine xml
    I m waiting for your answers
    thanks for helping

    thank you very much Jasmin your answer is brilliant but in my case When I put  "Main" between Node1 and mainxml  (not really "Main" in my case form1) it doesnt work correctly  /process_data/mainxml/Main/Node1/Child
    this is my code and also another problem
    /process_data/wstranslatesum/Page1/tablo1   =      /process_data/wsresponse2/Envelope/Body/HelloWorldResponse/HelloWorldResult/diffgram/NewD ataSet
    /process_data/wstranslatesum/Page2/Sonuc    = /process_data/wsresponse/Envelope/Body/getMaxWaitingProcessStepsResponse/getMaxWaitingPro cessStepsResult/diffgram/NewDataSet
    when I use above example only
    /process_data/wstranslatesum/Page2/Sonuc    = /process_data/wsresponse/Envelope/Body/getMaxWaitingProcessStepsResponse/getMaxWaitingPro cessStepsResult/diffgram/NewDataSet
    above part works   they are on the other page
    when I use the below
    /process_data/wstranslatesum/Page2/tablo1   =      /process_data/wsresponse2/Envelope/Body/HelloWorldResponse/HelloWorldResult/diffgram/NewD ataSet
    /process_data/wstranslatesum/Page2/Sonuc    = /process_data/wsresponse/Envelope/Body/getMaxWaitingProcessStepsResponse/getMaxWaitingPro cessStepsResult/diffgram/NewDataSet
    it works perfectly   (did you notice that they are on the same page)
    so what is the problem I know you are Expert
    can youy recommend any resource which has real case example
    thank you so much
    Sincerely ,
    Joseph

  • Adobe Interactive Forms by using Web Service

    Hi Experts,
    Can we create adobe forms by using web service????...
    Please give me the steps to achieve this.
    Please help me out on this.
    Thanks in Advance,
    Praveen

    Hi Praveen Kumar  ,
    Check the following websites which contain examples on Adobe Interactive Forms by using Web Service:
    https://www.sdn.sap.com/irj/sdn/adobe
    Improving the Performance of Adobe® LiveCycleu2122 Designer Forms(scripting)
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_perf_guidelines.pdf
    Interactive Forms Based on Adobe Software: Overview
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e635e290-0201-0010-a9be-9e8e4ce04770
    Adobe Interactive Forms
    http://www.saplounge.be/Files/media/pdf/Huberland-Interactive-Forms-2007.10.10.pdf
    Taking interactive forms to next level
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8c103c36-0301-0010-cda8-f6b381bedb6e
    Introduction to Adobe PDF Library SDK(PDFL SDK)(Simply scroll the document)
    http://partners.adobe.com/public/developer/en/webseminars/PDFL_WebSeminar.pdf
    Creating Interactive forms in webdynpro for java
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f27e290-0201-0010-ff82-c21557572da1
    PDF-Based Print Forms/SAP Interactive Forms by Adobe
    http://help.sap.com/saphelp_nw04s/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/frameset.htm
    Date Objects in Adobe Designer
    http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
    Checking and Testing a PDF-Based Print Form
    http://help.sap.com/saphelp_nw04s/helpdata/en/c2/1fe9aa4d7b413e8515f90b73729e97/frameset.htm
    Architecture
    http://help.sap.com/saphelp_nw04/helpdata/en/f2/21021b911f4c0cae11459a4ce0bc62/frameset.htm
    http://www.nl4b.com/Adobe/Invitation_SAPBrussels_Q407.pdf
    cheers!
    gyanaraj
    ****Pls reward points if u find this helpful

  • Calling web service from oracle forms 10g

    Problem Description:
    I'm following the steps as per the doc:
    http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html
    to create a java stub to call external web service and then use java importer in oracle forms to call this web service from oracle forms.
    WSDL for external web service used is http://gend:83/DesignService.svc?wsdl
    The service was developed by us.
    Calling the web service using JDeveloper works fine but when I complie in Oracle Forms it returns wrong number of types of arguments in call SENDHELLO.
    The code from oracle form to call web service is as below:
    DECLARE
    jo ora_java.jobject;
    xo ora_java.jobject;
    rv varchar2(2000);
    ex ora_java.jobject;
    str varchar2(100);
    BEGIN
    jo := GendServiceClient.new;
    rv := GendServiceClient.sendHello('Nora');
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    message(Exception_.toString(ex));
    END;
    Any help/ideas on this is greatly appreciated. Thanks.
    Edited by: KE Nora Loera on Jun 1, 2012 1:24 PM

    My primary skill is PL/SQL but the only information I found on Oracle's site to call a web service from a 10g Form was creating a jar file and importing the java class. Since I don't want to ask our corporate IT to make changes on the UNIX box for the jar files I went a different route.
    I use UTL_HTTP.BEGIN_REQUEST to call a URL then load I load the data to a table as a CLOB since we have more than 4000 characters. Now I need to parse the XML and load it into a form. I have never done this so if there is a helpful site please let me know. I have looked at several sites but none do what I want.
    Thanks

  • Calling web service from oracle forms fails with ORA_JAVA.JAVA_ERROR

    Problem Description:
    I'm following the steps as per the doc:
    http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html
    to create a java stub to call external web service and then use java importer in oracle forms to call this web service from oracle forms.
    WSDL for external web service used is http://www.webservicex.net/CurrencyConverter.asmx?wsdl
    Calling the web service using JDeveloper works fine but from Oracle Forms returns ORA_JAVA.JAVA_ERROR; Unable to call out to Java, Invalid object type for argument 1
    The code from oracle form to call web service is as below:
    DECLARE
    jo ora_java.jobject;
    rv ora_java.jobject;
    ex ora_java.jobject;
    outString varchar2(2000);
    BEGIN
    jo:= CurrencyConvertorStub.new;
    --This will get the exchange rate from US Dollars to UK Sterling.
    rv:= CurrencyConvertorStub.ConversionRate(jo,'CAD','USD');
    message (float_.floatValue(RV));
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    outString := Exception_.toString(ex);
    message(outString);
    END;
    Any help/ideas on this is greatly appreciated. Thanks.

    Yes, it is the message line - so basically this call fails => rv:= CurrencyConvertorStub.ConversionRate(jo,'CAD','USD'); and control goes in the exception block
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    Below is the code from java stub that was generated using JDeveloper by using web services stub/skeleton and associating the WSDL
    public Double ConversionRate(String FromCurrency, String ToCurrency) throws Exception
    URL endpointURL = new URL(endpoint);
    Envelope requestEnv = new Envelope();
    Body requestBody = new Body();
    Vector requestBodyEntries = new Vector();
    String wrappingName = "ConversionRate";
    String targetNamespace = "http://www.webserviceX.NET/";
    Vector requestData = new Vector();
    requestData.add(new Object[] {"FromCurrency", FromCurrency});
    requestData.add(new Object[] {"ToCurrency", ToCurrency});
    requestBodyEntries.addElement(toElement(wrappingName, targetNamespace, requestData));
    requestBody.setBodyEntries(requestBodyEntries);
    requestEnv.setBody(requestBody);
    Message msg = new Message();
    msg.setSOAPTransport(m_httpConnection);
    msg.send(endpointURL, "http://www.webserviceX.NET/ConversionRate", requestEnv);
    Envelope responseEnv = msg.receiveEnvelope();
    Body responseBody = responseEnv.getBody();
    Vector responseData = responseBody.getBodyEntries();
    return (Double)fromElement((Element)responseData.elementAt(0), java.lang.Double.class);
    }

  • How to get the list of values for a dynamic parameter using Web Services SDK?

    <p>I am struggling to get the list of values for a dynamic parameter of a report.</p><p>I am using Java Web Services SDK ... I tried to use PromptInfo.getLOV().getValues() method but it does not work.</p><p>First of all ... is this possible (to get the list of values for a dynamic param) using Web Services?</p><p>Second of all, if this is possible, how should I do it ... it seems it works fine when running the report from CMC. It asks for DB logon info and after that it provides a list of values.</p><p>Thx </p>

    <p>Your assumption is correct. We are trying to get the LOVs from the Crystal Report. I was not aware that this is not supported by Web Services SDK.</p><p>We used Web Services SDK to integrated the Crystal Reports in our web application. We implemented some basic actions for reports: schedule, view instances, run ad-hoc reports.</p><p>We encountered this problem when trying to run/schedule reports with dynamic parameters (a list of values from DB). We were unable to get the LOVs.</p><p>Please let me know if you can think of an alternative to look at.</p><p>Thanks a lot,</p><p>Catalin </p>

Maybe you are looking for

  • How to enhance Oracle Datapump Performance (AIX, Oracle 11.1.0.7.0)

    For some testing pupose we have to do import a 230GB dump file. This is very time consuming while import. 1. How can I identify the MAX parallesim supported by Oracle 11.1.0.7.0 AIX.? Is it depend upon the no of processor on server.? How can i find t

  • Word 2007 - Acrobat : filename with periods (.)

    Just a quick question : since we upgraded to Office 2007, one of my users complains that when he converts his Word documents to PDF (through the virtual printer in Word), the filename is automatically cut, it stops at the first period (.) which could

  • The problem in the thread pool implemented by myself

    Hello, I need to a thread pool in J2ME CDC 1.0 + FP 1.0, so I implemented a simple one by myself that also meets my own requirement. Here is the main idea: The thread pool creates a fixed number of threads in advance. When a task comes, it is put in

  • Question about stamping white balance

    Hello, I'm a beginner in Aperture and have the following question for which I haven't found an answer yet. Let me explain what I did and where the problem rose: I have a set of photo's (400+, RAW), all taken at the same location under nearly same con

  • Taxes Not Coming During J1IIN

    Hi,    I m trying to create an excise invoice , but BED , Cess all are coming 0. Pls Help.