Web service Impersonate in SharePoint InfoPath forms

Hi All,
We are using SharePoint 2010 InfoPath forms in one of the sites. We have IIS hosted Web service which is using TIBCO service to fetch the users info in InfoPath forms.
Now my client wants to migrate to SAP, due to cost involved they want to use one dedicated account to get the user info from SAP instead of Sharepoint site logged in user.
I implemented Impersonate in IIS web service web. Config file as below.
<identity impersonate="true" username="Domain\Username" password="Password123" />
However am getting error when I fetch the users in the form. I checked the log and found below error.
The following query failed: GetEmployeeList (User: 0#.w|Domain\UserName, Form Name: NESS-TerminationRequest-v14, IP: , Connection Target: , Request:
https://MySite/sites/forms/HRTest/_layouts/FormServer.aspx?XsnLocation=https://MySite/sites/forms/FormServerTemplates/NESS-TerminationRequest-v14.xsn&SaveLocation=https://MySite/sites/forms/HRTest/TerminationRequestDoc&ClientInstalled=true&Source=https://MySite/sites/forms/HRTest/TerminationRequestDoc/Forms/AllItems.aspx&DefaultItemOpen=1,
Form ID: urn:schemas-microsoft-com:office:infopath:NESS-TerminationRequest-v14:-myXSD-2008-11-02T22-14-53 Type: DataAdapterException, Exception Message: The remote server returned an error: (500) Internal Server Error. The remote server returned an error:
(500) Internal Server Error.)
I have double checked the service with SOAP UI which is working fine for dedicated test user.
Could you please let me know is any one faced similar issues or any help here please.
Br,
Syam

Hi
created UDCX connection and passed the credentials in SSO to access the SAP service, however i got below error.
The following query failed: GetEmployeeList (User: 0#.w|domain\mohans, Form Name: NESS-TerminationRequest-v15, IP: , Connection Target:
https://MYSite/forms/hr/DataConnections/GetEmployeeList.udcx, Request:
https://MySite/forms/HRTest/_layouts/FormServer.aspx?XsnLocation=https://MySite/forms/FormServerTemplates/NESS-TerminationRequest-v15.xsn&SaveLocation=https://MySite/forms/HRTest/TerminationRequestDoc&ClientInstalled=true&Source=https://MYSIte/forms/HRTest/TerminationRequestDoc/Forms/AllItems.aspx&DefaultItemOpen=1,
Form ID: urn:schemas-microsoft-com:office:infopath:NESS-TerminationRequest-v15:-myXSD-2008-11-02T22-14-53 Type: DataAdapterException, Exception Message: Credentials in SSO (Windows=[yes], Username=[yes], Password= [yes]) did not match the specified type "Windows")
i tried with NTLM,Basic and Windows in COnnection file and also tried various target types in SSO but nothing helped me.
Any help on this please?
Br,
Syam

Similar Messages

  • How to invoke HTTP Web Services in an Adobe Interactive Form

    Hi all,
    I am using Adobe Livecycle Designer stand-alone (without Netweaver integration), currently a trial 8.2 version.
    I need to invoke an HTTP Web Service (non-SOAP) in an Adobe Interactive Form. The Net.HTTP method does not work due to security reasons. The error message I get is:
    (german)
    " NotAllowedError: Sicherheitseinstellungen verhindern den Zugriff auf diese Eigenschaft oder Methode.
    Net.HTTP.request:28:XFA:form1[0]:mysubform[0]:Region[0]:change"
    In english this translates to: "Security settings prohibit the call of this property or method.
    And indeed the "Javascript for Acrobat API reference" includes the following note:
    "Note:This method can only be made outside the context of a document (for example, in a folder level JavaScript)."
    So this method seems to be excluded from use in an Adobe document, e. g. in an interactive form. But why is it then listed at all? Is there a way to call HTTP Web Services in an Adobe Interactive Form by somehow branching out the call outside the document itself? Of course I do not want to call a SOAP service which then calls the HTTP Web Service
    Is there any other way to invoke HTTP Web Services in an Adobe Interactive Form?
    Thanks a lot for your response!
    Regards
    Christoph

    Hi,
    back again, had to handle other issues, sorry.
    Just to get a little more concrete. The condition depends on the context node attributes. So if an attribute is initial, it's field should not been shown, if it's not initial, it should ne shown. There are 6 context attributes and therefore 6 fields in the form. How can I get the attributes' value?
    And can I put them into the same subform or do I have to create 7 (6 conditions + blank-condition) subforms?
    I put the fields (textfield and context node value) that should be shown depending on conditions in a subform. So how can I adress this subform?
    I'm not so familiar with JavaScript, so please help me. I need something like:
    if (context_node_attribute X is initial) {
             subform_1.presence = "hidden" ;
    I tried it with
    if ( ARB_STUNDEN.rawValue != null) {
         Beratungsstunden.presence = "hidden" ;
    but it didn't work....
    Thanks,
    Tan

  • Sharepoint infopath form should have only new item rights

    Sharepoint infopath form should have only new item rights

    You may create a custom Permission level for this requirement. Go to Site Settings -> User And Permissions -> Site Permissions -> Click on Permissions Tab in the ribbon. Now click on Permission Levels. Click on Add a Permission level.
    Give name to this new permission level. In the List Permissions, Check Edit items and keep "Add items" unchecked. Select other permissions which you need to give. Save the Permission level. Now assign this permission level to the group. Note that,
    you can also change the OOB permission levels like "Contribute" and uncheck "Add Items" permission but that may have an undesirable effect on other things. It is always better not to change OOB things.
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • State service error when submitting InfoPath form to Library

    I have a problem and looks like Google couldn't help me.. I really hope someone here will be able to.
    I have a Form Library using a custom form. When submitting the form to the library, users are getting this error. I don't get the error with my own user, only difference is I have full access to the farm and content using web app policy.
    ULS logs give me few informations
    SharePoint Server
    State Service
    bm1k
    Medium
    StateSqlSession.GetItemBytesInternal() Locked row in database for key ba18f90ee2e844468b08e90ad96dff2c_05967b71a21948d39b7d4d3ada9b27c9 for 4 seconds
    SharePoint Server
    State Service
    bm0t
    Unexpected
    StateManager.GetState() Locked data (05967b71-a219-48d3-9b7d-4d3ada9b27c9)
    InfoPath Forms Services
    Runtime - State Service
    b5st
    Medium
    MOSS StateService threw an exception: A Microsoft SharePoint Server State Service error occurred while processing your request. For more information, contact your server farm administrator.
    I deleted the State Service and recreated it twice, once with PowerShell and then with the Farm Configuration wizard. Restarted the server. Problem might come from InfoPath Forms Services tho but I don't what else I can do.
    Does anyone have any clue??
    JP Berube | MCTS SharePoint 2010 Configuration and Application Development

    Hi,
    We had the same problem with InfoPath.
    After analysis of servers,it turns out that
    the anonymous user authentication has been enabled on
    the web application server
    via IIS and not via SharePoint
    (unsupported configuration), causing
    side-effects on some queries which
    calls to forms.
    We disabled anonymous access.This desactivation
    causes the functioning of forms again.
    Rachid.

  • Not able to create sub folder using SharePoint web service in large SharePoint document library (Item count view threshold limit)

    We are trying to create folder & subfolder in a SharePoint document library using SharePoint default(dws) web service. Document library has unique permission as well as item level permission. It was working as expected. Once item count crosses
    view threshold limit ( 5000) , create folder web method completes with an error and it creates a folder in SharePoint.
    Request:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dws="http://schemas.microsoft.com/sharepoint/soap/dws/">
       <soapenv:Header/>
       <soapenv:Body>
          <dws:CreateFolder>
             <!--Optional:-->
             <dws:url>Shared Documents/VenTest02092015v1</dws:url>
          </dws:CreateFolder>
       </soapenv:Body>
    </soapenv:Envelope>
     Response:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
       <soap:Body>
          <CreateFolderResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/dws/">
             <CreateFolderResult>&lt;Error ID="2">Failed&lt;/Error></CreateFolderResult>
          </CreateFolderResponse>
       </soap:Body>
    </soap:Envelope>
     While trying to create subfolder under the above created folder service throws an exception saying
    FolderNotFound.
    Though we are able to create subfolder from SharePoint UI successfully. 
    Request
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dws="http://schemas.microsoft.com/sharepoint/soap/dws/">
       <soapenv:Header/>
       <soapenv:Body>
          <dws:CreateFolder>
             <!--Optional:-->
             <dws:url>Shared Documents/VenTest02092015v1/REQ-1</dws:url>
          </dws:CreateFolder>
       </soapenv:Body>
    </soapenv:Envelope>
    Response:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
       <soap:Body>
          <CreateFolderResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/dws/">
             <CreateFolderResult>&lt;Error ID="10">FolderNotFound&lt;/Error></CreateFolderResult>
          </CreateFolderResponse>
       </soap:Body>
    </soap:Envelope>

    Yes, you're probably hitting the 5000 list item threshold (
    http://sharepoint.stackexchange.com/questions/105937/overcoming-5000-file-document-library-limits ). I assume you can do it via the UI because you're probably logged in as an admin in which case, out of memory, the threshold is 20.000 items. You can extend
    this limit, but you probably shouldn't.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Calling web service in Oracle Applications using Forms....

    Can I call a web service in Oracle Appications 11.5.10?
    I created a simple form on my local machine and invoked the webservice in that form and it works perfectly. I used Oracle forms 9i and 6i for this purpose and both are working perfectly.
    But when I created the same form on the UNIX server and imported the Java Class and placed that form in Oracle Applications and tried to invoke the web service it is not working.
    I am using Forms 6i for creating the form in Oracle Applications.
    Are there any other factors that I am neglecting?
    Any help is highly appreciated.
    Thanks.........

    Hi,
    could you please explain here the detailed steps (with code example if it's possible) to invoke a webservice from Oracle Applications?.. how did yo do it...?
    I've read differents posts here and the 33097.1 metalink note (by the way, the first recommended link in this note is broken...), but there are lots of theorical concepts and no real examples to see how/from where invoke the WS
    I'll have to call one webservice (I suppose the customer will give me the interface implementation)...but I've never did it with Applications so that's why I ask you for all the detailed steps...
    I work with Forms 6i, Apps 11.5.10.2 and DB 9.2.0.7.
    Thanks a lot.
    Jose.

  • 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>

  • Calling Web Service passing xml from Oracle Forms

    Hello,
    I need to call a .net web service from Oracle Forms that passes in xml data and returns xml data.
    I have seen several examples of how to create a wrapper in jdev and then to import the code
    into forms. I just have not seen any examples that are passing parmameters especially not xml
    as a parameter and that have an active wsdl that I can see how it relates to the code created.
    I have a wrapper but cannot figure out where and what notation to use to include passing in
    an xml object.
    Does anyone have an example passing in xml where the wsdl is still available to see?'
    Forms version 10.1.2.0.2. Jdev 10.1.3.4
    Thanks,
    Linda
    Edited by: lboyce on Jan 5, 2009 2:30 PM

    Also here you have several options...
    1. you can make a PJC (bean) which include a webservice stub generated with axis (you can make a stub and also test a webservice with this tool: www.soapui.org)..
    2. you can make a database webservice with JPublisher and then just call a pl/sql wrapper for this webservice
    4. you can call a webservice with java api (HttpsURLConnection, HttpURLConnection or with apache HTTPClient api) from your PJC for example:
    the code below is used as java stored procedure to call a .net webservice on https
    ====================================
    public static int getPStopnja(String polica, String reg_oznaka,
    String ime_osiguranika,
    String naziv_osiguranika,
    String leasing,
    String[] doc) {
    String l_polica="";
    String l_reg_oznaka="";
    String l_ime_osiguranika="";
    String l_naziv_osiguranika="";
    String l_leasing ="";
    URL url = null;
    HttpsURLConnection conn = null;
    BufferedReader br = null;
    String lineIn = null;
    StringBuffer sb = new StringBuffer();
    OutputStream os = null;
    int rc = 0;
    //kontrole
    l_polica = polica==null ? "":polica;
    l_reg_oznaka = reg_oznaka==null ? "": reg_oznaka;
    l_ime_osiguranika = ime_osiguranika==null ? "": ime_osiguranika;
    l_naziv_osiguranika = naziv_osiguranika==null ? "": naziv_osiguranika;
    l_leasing = leasing==null ? "": leasing;
    String body = "&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;";
    body += "&lt;soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:web=\"https://services.huo.hr/web_ao/\"&gt;";
    body += "&lt;soapenv:Header/&gt;";
    body += "&lt;soapenv:Body&gt;";
    body += "&lt;web:get_pstupanj&gt;";
    body += "&lt;web:param_in&gt;";
    body += "&lt;web:polica&gt;"+l_polica+"&lt;/web:polica&gt;";
    body += "&lt;web:reg_oznaka&gt;"+l_reg_oznaka+"&lt;/web:reg_oznaka&gt;";
    body += "&lt;web:ime_osiguranika&gt;"+l_ime_osiguranika+"&lt;/web:ime_osiguranika&gt;";
    body += "&lt;web:naziv_osiguranika&gt;"+l_naziv_osiguranika+"&lt;/web:naziv_osiguranika&gt;";
    body += "&lt;web:leasing&gt;"+l_leasing+"&lt;/web:leasing&gt;";
    body += "&lt;/web:param_in&gt;";
    body += "&lt;/web:get_pstupanj&gt;";
    body += "&lt;/soapenv:Body&gt;";
    body += "&lt;/soapenv:Envelope&gt;";
    SSLContext sslContext = null;
    try {
    sslContext = SSLContext.getInstance("TLS");
    X509TrustManager[] xtmArray = new X509TrustManager[|http://forums.oracle.com/forums/] { xtm };
    sslContext.init(null, xtmArray, new java.security.SecureRandom());
    } catch (GeneralSecurityException gse) {
    doc[0] = gse.toString();
    return -1;
    if (sslContext != null) {
    conn.setDefaultSSLSocketFactory(sslContext.getSocketFactory());
    try {
    conn.setDefaultHostnameVerifier(hnv);
    } catch (Exception ex) {
    doc[0] = ex.toString();
    return -1;
    try {
    URL st = new URL("https://services.huo.hr/web_ao/web_ao.asmx");
    conn = (HttpsURLConnection)st.openConnection();
    conn.setRequestMethod("POST");
    conn.setRequestProperty("Host", "services.huo.hr");
    conn.setRequestProperty("Content-Length", "" + body.length());
    conn.setRequestProperty("SOAPAction",
    "\"https://services.huo.hr/web_ao/get_pstupanj\"");
    conn.setRequestProperty("Content-Type", "text/xml;charset=UTF-8");
    conn.setDoOutput(true);
    OutputStreamWriter wr =
    new OutputStreamWriter(conn.getOutputStream());
    wr.write(body);
    wr.flush();
    BufferedReader in =
    new BufferedReader(new InputStreamReader(conn.getInputStream()));
    String inputLine;
    while ((inputLine = in.readLine()) != null) {
    sb.append(new String(inputLine.getBytes(),"UTF-8"));
    in.close();
    //System.out.println(new String(sb.toString().getBytes(),"ISO8559_2"));
    doc[0] = sb.toString();
    return 0;
    } catch (Exception e) {
    doc[0] = e.toString() + " ===&gt; " + body + " ==&gt;length= " + body.length();
    return -1;
    ====================================
    best regards
    Edited by: Peterv6i on Jan 6, 2009 8:34 AM
    Edited by: Peterv6i on Jan 6, 2009 8:40 AM

  • Modifying properties with a file for Web Service Stub used for Oracle Forms

    I have created a stubbed-out web service in JDeveloper (10.1.3.4) and imported into Oracle Forms.
    However, I would like to use a properties file to call the appropriate endpoint based on if the environment is dev, test, UAT or prod. I see that a properties file is referenced in the _Stub class. Here is a snippet of code from that class file:
    public CriticalChangeWS_Soap11_Stub(HandlerChain handlerChain) {
    super(handlerChain);
    setProperty(ENDPOINTADDRESS_PROPERTY, "http://epw-01.gds.graebel.com:8087/CriticalChange.svc/Soap11");
    setSoapVersion(SOAPVersion.SOAP_11);
    setServiceName( new QName("http://tempuri.org/","CriticalChangeService"));
    setPortName( new QName("http://tempuri.org/","CriticalChangeWS_Soap11"));
    setupConfig("wsquery/proxy/runtime/CriticalChangeWS_Soap11_Stub.xml");
    How can I use the XML file to set the ENDPOINT_ADDRESS_PROPERTY?
    Thanks.
    Jim O

    Hi Frank,
    I got the following two lines of code just to check if WebServiceConnection was able to read the connections file alright.
                String urlString = wsc.getWsdlUrlStr();
                System.out.println("WSDL URL: "+urlString);
    I am not using urlString for further processing.
    The output is
    WSDL URL: http://<host>/PSIGW/PeopleSoftServiceListeningConnector/MyService.1.wsdl
    java.lang.NullPointerException
            at java.lang.Class.isAssignableFrom(Native Method)
            at oracle.j2ee.ws.common.jaxws.runtime.GenericJavaType.create(GenericJavaType.java:97)
            at oracle.j2ee.ws.common.jaxws.runtime.GenericJavaType.create(GenericJavaType.java:118)
    The WSDL Url pointed to is the one that I configure in the connection while deploying the App.
    Ran a test and WSDL Url is accessible by the app.

  • Unable to see web service listed  while  creating the form on webservice

    Hi All,
    i created a web service reference and tested it and i m even getting the response of it .
    but i m unable to see the webservice being listed ...while creating a form on webservice .
    whereas if i create a process on webservice .. i can find webservices in the webservice list .(.the webservice which i created in the shared component)
    can anyone help me ...
    Thanks & Regards,
    Nandini Thakur.

    that should be an easy one. you might not have the GP roles needed. give to your user the caf roles in the UME

  • How to use HTTP Web Service action of SharePoint 2013 Designer to get UserProfiles?

    Dear all,
    I've tried several methods to get the user profile, but still in vain.
    I do search the solutions from the forums and Google.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/52ceba69-5019-4175-9b34-b9e06c3472bf/rest-query-from-workflow-return-unauthorized
    Because the above link is still not work for me, I arise a question here.
    Actually, I would like to get a user's manager, thus I use the rest api:
    [%workflow content:current site URL%]_api/SP.UserProfiles.PeopleManager/GetMyProperties/extendedmanagers
    However, I always get unauthorized error.
    {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"zh-TW","value":"拒 絕存取。您沒有執行此動作或存取此資源的權限。"}}}
    Below screenshots are my web service settings.
    1. Build a dictionary and set Authorization, Acception, Content-Type.
    2. Call web service and set the RequestHeaders.
    And, I can use the rest api in the browser to see my manager (logged in).
    <d:ExtendedManagers>
    <d:element>i:0#.f|membership|[email protected]</d:element>
    <d:element>i:0#.f|membership|[email protected]</d:element>
    </d:ExtendedManagers>
    Could anybody help me to clarify this issue?
    Thank you!

    Stuck in the same problem with visual studio, here is the uls error
    Exception occured in scope Microsoft.Office.Server.UserProfiles.PeopleManager.ctor. Exception=System.UnauthorizedAccessException: Access Denied: This application does not have the required permissions to access profile information.   
    at Microsoft.Office.Server.UserProfiles.UserProfileManager..ctor(UserProfileApplicationProxy userProfileApplicationProxy, Guid partitionID, Boolean IgnoreUserPrivacy, Boolean isWithinProfileSync, Boolean assumeProfileAdmin)   
    at Microsoft.Office.Server.UserProfiles.UserProfileManager..ctor(UserProfileApplicationProxy userProfileApplicationProxy, Guid partitionID, Boolean IgnoreUserPrivacy, Boolean isWithinProfileSync)   
    at Microsoft.Office.Server.UserProfiles.UserProfileManager..ctor(UserProfileApplicationProxy userProfileApplicationProxy, Guid partitionID, Boolean IgnoreUserPrivacy)   
    at Microsoft.Office.Server.UserProfiles.ProfileLoader.get_UserProfileManager()   
    at Microsoft.Office.Server.UserProfiles.ProfileLoader.EnsureUserProfile(Boolean bCreateIfNotExist)   
    at Microsoft.Office.Server.UserProfiles.PeopleManager..ctor()   
    at Microsoft.Office.Server.UserProfiles.PeopleManagerServerStub.InvokeConstructor(ClientValueCollection xmlargs, ProxyContext proxyContext)   
    at Microsoft.SharePoint.Client.ServerStub.InvokeConstructorWithMonitoredScope(ClientValueCollection args, ProxyContext proxyContext)
    I can see this issue posted like year ago so if any one solved it please help me , I appreciate this much.

  • 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

  • How to create Web services to communicate InfoPath forms to Share Point lists ?

    How to create Web services to communicate InfoPath forms to Share Point lists ?

    Hi,  
     As per your posting and my understanding, you wanted to communicate your infopath with SharePoint list/library. Please refer the below link(s) which may help you to solve your issue.
    http://blogs.msdn.com/b/russmax/archive/2012/08/17/want-to-call-sharepoint-2010-web-services-within-browser-based-infopath-2010-forms.aspx
    http://jaliyaudagedara.blogspot.in/2011/03/submitting-data-to-sharepoint-2010-list.html
    or 
    http://blogs.msdn.com/b/infopath/archive/2007/03/26/submitting-to-a-sharepoint-list.aspx
    If you need more help please let usknow
    Sekar - Our life is short, so help others to grow
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever you
    see a reply being an answer to the question of the thread, click "Mark As Answer

  • Infopath 2007 and SharePoint 2007 error with Web Service Submit and Recieve

    I have an InfoPath form with code. The code submits the form to SharePoint and to SQL DB through Web Service. The form has some workflow. When form is in a "New" state if submits to SharePoint and Database through custom web service. Works fine
    from both Client and SharePoint browser form. The database ID is returned to the form and then stored in a field. In second stage of workflow additional fields are shown for Supervisor to fill out. I then have an "update" web service to update the
    database. I set all the field values in the Web service then execute both the update Web Service and the SharePoint submit. I get an error (both if running from desktop or SharePoint) Error is
    "The string '' is not a valid AllXsd value"     
    I know sometimes this happens with dates. But I've got all the dates set. The funny thing is in the first submit there are 2 dates in the second submit there is one date. All are set the same and on the first submit no problem submits correct dates to SQL
    database through web Service. Second submit has 2 Boolean fields that I also default to a value of false. I've debugged and looked at all the values and everything has a value. I use delete NIL to make sure value in Web Service is set. I can save the data
    in the form but not submit it because I get the web service error. If I save the data in form and download it and copy all the values in the XML to my Web Service and invoke the web service works fine. So there is no error in the web service. The first
    submit submits both dates and some integer values. The only difference in second is the Boolean value but it is set to default of false for all checkboxes.  I'm going out of mind trying to see what could be wrong.   Also difference with second
    is it sends in the ID of the record that was set in form by result of first submit query sending back the DB value. That value is an integer but I also set correctly.
    Susan J. Swanger

    Hi Somatco,
    According to your description, my understanding is that you got an error when you ran report with xml type datasource.
    Please set the xml datasource credential to Use Windows Authentication (integrated security). More information, please refer to the link:
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/530c29ab-7ed5-4c36-816a-910c0b51f4bd/xml-data-source-unable-to-authenticate-using-windows-authentication?forum=sqlreportingservices
    Here are some similar posts for you to take a look at:
    http://www.symantec.com/business/support/index?page=content&id=TECH190935
    http://social.msdn.microsoft.com/Forums/en-US/285e4e8c-d05c-48f8-b4f3-9d87988d823e/an-error-has-occurred-during-report-processing-rsprocessingaborted-query-execution-failed-for?forum=sqlreportingservices
    In addition, as this issue is related to SQL Server Reporting, I commend you create a new thread in SQL Server Reporting forum, more experts will assist you with SQL Server Reporting.
    SQL Server Report forum:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlreportingservices
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • SharePoint 2013 Infopath Web Service Get File within list permissions

    Hello,
    I am looking for a web service to pull a form within a form libraries permissions.  So a user creates a form and requests access for him/herself and whomever he/she wants to have access to the form, I then go to file share with and grant only these
    people access.  lets say I now have 2000 forms and and I want a column that says these people have been granted access to this file instead of clicking each file going to properties and checking share with permissions.  What web call would I use
    for this, been searching and keep finding how to share with people instructions and now how to use a web service to pull the names.

    Hi Ahmed,
    Please go to task list page and click customize form, then publish it in the InfoPath form designer.
    Now add a new page in SharePoint site, insert task list web part, then insert an InfoPath form web part. Click the triangle on the top right corner > Edit web part > Connections > Get form from, see if you could select task now.
    Regards,
    Rebecca Tu
    TechNet Community Support

Maybe you are looking for

  • Initial load of product categories - Middleware issue

    Hello all, I need fresh idea regarding middleware problem that I am facing. My setup of middleware is done by note 720819, sites (CRM and R/3) are defined, report for product settings is run (service set to inactive), RFC connections set, filters for

  • User-Exit/Badi for F-47/F-58

    Hi All, I have a developed a custom workflow for f-47 (vendor down payment request). Now whenever the document is approved/rejected the status is stored in a custom ztable. This document is posted in f-58. My requirement is whenver the document is re

  • Refresh Problem

    My programm writen in Java have to show the tree of directories in application window. And I want to update this tree when user has done something in other applications ( for example in Far Manager ) that changed the structure of directories on the d

  • Centering a container

    Dreamweaver CS3. New/blank/html/2 column elastic/left sidebar/header/footer. what do I need to put in CSS properties to center this whole container? It's at the left of the page. I've put left margin "auto" and right margin "auto" and it just lines o

  • Photoshop Trial not installing - Windows 8

    Hi All, I've tried downloading the Photoshop CS6 Trial using the Adobe downloader as suggested.  The download completes but does not install.  I downloaded Adobe Support Advisor and it quotes, "cpsid_82829s1: "A restart is pending," bootstrapper erro