Calling a service via url when it has result set INPUT

So i am trying to call this service via a javascript
# Add users
@Properties LocalData
IdcService=ADD_USER
dName=jsmith
dUserAuthType=Local
dFullName=Jennifer Smith
dPassword=password
dEmail=[email protected]
@end
@ResultSet UserAttribInfo
2
dUserName
AttributeInfo
jsmith
role,contributor,15
@end
<<EOD>>
so i make a call using
/idc/?IdcService=ADD_USER&dName=jsmith&dUserAuthType=Local&dFullName=Jennifer Smith&dPassword=password&dEmail=[email protected]
but how to get the result set UserAttribInfo added to the end of this

Jason,
Thanks for the good info. Based on your technique I was able to figure out how to do a pure json post of a result set. You just need to send a Content-Type of text/json, set IsJson=1 and send the data encoded in the request body in the following format:
    LocalData: {
        dName: 'user',
        dUserAuthType: 'Local'
    ResultSets: {
        UserAttribInfo: {
            fields: ['dName', 'AttributeInfo'],
            rows: [['user', 'role, guest, 15']]
}

Similar Messages

  • Calling ITS Service via abap program

    We have made an ITS Service (SAP GUI for HTML) for one of the R/3 programs (Customized).
    If the URL is linked directly to the service, it shows correctly.
    But if we call the service via transaction code as in: Call tcode Zabc..., it does not work.
    How can we call the service directly from the abap program on the click of a button?
    Thanks in advance.

    Hi,
    You can do something like this:
    CALL FUNCTION 'CALL_BROWSER'
             EXPORTING
               url                          = path
               new_window                   = 'X'
             EXCEPTIONS
               frontend_not_supported       = 1
               frontend_error               = 2
               prog_not_found               = 3
               no_batch                     = 4
               unspecified_error            = 5
               OTHERS                       = 6
    where PATH variable is ITS service url:
        CONCATENATE 'http://server:port/sap/bc/gui/sap/its/webgui?transaction=xxxxxx&okcode=xxxx INTO path.
    Hope this helps,
    Iván.

  • HTTP Error 411 "Length Required" when I try to call a service via POST

    Hi All,
    I've got a service I want to call from within Flex, and I used the Data/Services tab to setup the new service call.  It's called "CommitChanges" and it's supposed to cause the server to commit the changes that were submitted, incrementally, during this session.  You can think of it as being like a "save" command.  It takes no arguments.
    In keeping with the suggested use of POST for operations that causes changes to data on the server, I setup this request to use POST.  However, when I try to call the service I get the following error:
    Response Received:
    Length Required
    HTTP Error 411. The request must be chunked or have a content  length.
    If I change the request type to GET it works, but I'd like to get it working with POST.
      -Josh

    Right after Skype crash open Windows Event Viewer -> Custom Views -> Administrative Events. Look for the most recent error messages. Copy and paste here the text from the General tab.

  • Calling web service via utl_dbws with unbounded return values

    Hello, everyone.
    I'm trying to use utl_dbws to call web service from Oracle DB 10 g.
    WS has unbounded return value:
    <xs:element maxOccurs='unbounded' minOccurs='0' name='return' type='xs:string'/>
    I'm setting return paramter in web service call handler like this:
    sys.UTL_DBWS.set_return_type(l_h_service_call, cs_qname_type_string);
    and when I'm trying to call it from PL/SQL function I'm getting an error:
    ORA-29532: Java call terminated by uncaught Java exception:
    deserialization error: XML reader error: unexpected character content: "s2"
    ORA-06512: at "SYS.UTL_DBWS", line 388
    ORA-06512: at "SYS.UTL_DBWS", line 385
    ORA-06512: at line 38
    I've tried to return values by out parameters and got the same exception.
    It looks like utl_dbws needs to know parameters count before calling.
    Have anyone succeded in getting arrays from Web Service call?
    This is a part of wsdl:
    <xs:complexType name='getProcessList'>
    <xs:sequence>
    <xs:element minOccurs='0' name='nameMask' type='xs:string'/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name='getProcessListResponse'>
    <xs:sequence>
    <xs:element maxOccurs='unbounded' minOccurs='0' name='return' type='xs:string'/>
    </xs:sequence>
    </xs:complexType>
    Throught SoapUI I can produce such kind of request:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:proc="http://processmanager.argustelecom.ru/">
    <soapenv:Header/>
    <soapenv:Body>
    <proc:getProcessList>
    <processNameMask>*</processNameMask>
    </proc:getProcessList>
    </soapenv:Body>
    </soapenv:Envelope>
    and get a response:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <ns2:getProcessListResponse xmlns:ns2="http://processmanager.argustelecom.ru/">
    <return>s1</return>
    <return>s2</return>
    <return>s3</return>
    <return>s4</return>
    </ns2:getProcessListResponse>
    </env:Body>
    </env:Envelope>
    PL/SQL function:
    DECLARE
    cs_qname_type_string CONSTANT sys.UTL_DBWS.qname
    := sys.UTL_DBWS.to_qname('http://www.w3.org/2001/XMLSchema', 'string') ;
    cs_qname_type_int CONSTANT sys.UTL_DBWS.qname := sys.UTL_DBWS.to_qname('http://www.w3.org/2001/XMLSchema', 'int');
    cs_qname_type_any CONSTANT sys.UTL_DBWS.qname
    := sys.UTL_DBWS.to_qname('http://www.w3.org/2001/XMLSchema', 'anyType') ;
    cs_endpoint CONSTANT VARCHAR2(256) := 'http://server:8080/process-manager/ProcessManager';
    l_service sys.UTL_DBWS.service;
    l_service_qname sys.UTL_DBWS.qname;
    l_port_qname sys.UTL_DBWS.qname;
    l_operation_qname sys.UTL_DBWS.qname;
    l_h_service_call sys.UTL_DBWS.call;
    l_params sys.UTL_DBWS.anydata_list;
    l_ret_val SYS.ANYDATA;
    BEGIN
    l_service_qname := sys.UTL_DBWS.to_qname(NULL, 'ProcessManagerService');
    l_service := sys.UTL_DBWS.create_service(l_service_qname);
    l_port_qname := sys.UTL_DBWS.to_qname(NULL, 'ProcessListServiceBinding');
    l_operation_qname := sys.UTL_DBWS.to_qname('http://processmanager.argustelecom.ru/', 'getProcessList');
    l_h_service_call := sys.UTL_DBWS.create_call(l_service, l_port_qname, l_operation_qname);
    sys.UTL_DBWS.set_target_endpoint_address(l_h_service_call, cs_endpoint);
    -- return type
    sys.UTL_DBWS.set_return_type(l_h_service_call, cs_qname_type_any);
    -- param type
    sys.UTL_DBWS.ADD_PARAMETER(l_h_service_call, 'processNameMask', cs_qname_type_string, 'ParameterMode.IN');
    l_params(1) := anydata.convertvarchar2('*');
    l_ret_val := sys.UTL_DBWS.invoke(l_h_service_call, l_params);
    IF l_ret_val IS NULL THEN
    DBMS_OUTPUT.put_line('l_ret_val is null');
    ELSE
    DBMS_OUTPUT.put_line('l_ret_val is not null');
    END IF;
    sys.UTL_DBWS.release_call(l_h_service_call);
    END;
    Edited by: Ilya on 03.12.2008 3:50

    Hi Tony
    I'm not sure if you would have solved your problem by now, but with my recent experience with the utl_dbws package, for doc lits with complex data types, you have to call the service with an XML request, as opposed to passing the param array.
    If you still need details, reply accordingly.
    Ta
    cT

  • Call WoC View via URL with parameters

    Hi,
    I'm already able to call a particular WoC view via URL by passing the app.component and app.inport parameters.
    Is there also any way to pass specific filter values, e.g. a customer id?
    Thank You!

    Hi Dennis,
    yes, you can pass the parameter of the Inport as well.
    An example is the Sales order QAF for 'New Sales Order' which has an inport ContactIDWriteBackIn. This inport allows passing an parameter called ID which is then mapped to the Contact ID of the UI.
    The corresponding call is:
    https://....?app.component=/SAP_BYD_APPLICATION_UI/crm/soc/salesorderqafeco.QA.uicomponent&rootWindow=X&redirectUrl=%2fsap%2fbyd%2fruntime&&sap-client=004&sap-language=EN&app.inport=ContactIDWriteBackIn&param.ID=1000450
    I hope this helps,
    Thomas

  • Issue with calling restful services via HTTP in an Orchestration

    The company I work for is using RESTful services for our I/O. We are processing EDI files using Biztalk, and are calling the REST services via HTTP from a c# code called within the orchestration. At lower volumes, the service performs fine, but at higher
    transaction volumes, the HTTP calls never return. Is there a resource that needs to be tuned somewhere on the biztalk node to allow higher volumes of HTTP calls? Its not the REST service side - it has no problems handling loads generated by non biztalk nodes.
    For further clarification, the EDI message is a multi batched, so there are many simultaneous orchestrations running at once.  I have started to look at ways to throttle how many instances can run at once, but I still suspect some resource in the HTTP
    sequence that we dont have enough of.
    Ideas?

    I think you were not  enough free threads in the ThreadPool to complete the operation.
    So you can work out with Max connection setting in your BTSNTSvc file first
    <system.net>
    <connectionManagement>
    <add address="http://name.of.server.here" maxconnection="1oo" />
    </connectionManagement>
    </system.net>
    and try increasing number of threads allocated to the specific send Host instance and your Orchestration instance  ,you can try twinkling Response timeout in minutes as well  on host instance
    Thanks
    Abhishek

  • Calling web service via SSL

    Hi,
    I do not succeed in calling a web service via SSL from within a Web Dynpro application.
    Current settings of my logical port:
    Target Address: https://...
    Authentication: HTTP authentication, basic (username/password)
    I do call methods _setUser and _setPassword to set userid and password before calling method execute() of my modelclass.
    On calling method execute(), I get message "Connection closed by remote host".
    Any suggestions ?
    Many thanks.
    Jorgen

    Can you check the following?
    1) Did you install the SAP Cryptographic toolkit for Java available from service.sap.com?
    2) Did you install the "Java Cryptography Extension (JCE)
    Unlimited Strength Jurisdiction Policy Files 1.4.2". For Sun they are available here: http://java.sun.com/j2se/1.4.2/download.html (last item on page)
    3) How is the SSL server configured? Does it require client authentication? In this case you must send a client certificate.

  • How to save memory when processing large result set

    I need to dump multi millions of rows of data into excel files
    I query the tables and open excel to write in
    The problem is even I chopped the result into hundred files, close excel completely after 65536 rows, the memory usage keeps going up as the result set is looped and at one point hit the heap size
    How can I release the memory has been used in the result set?
    Thank you

    mycoffee wrote:
    936517 wrote:
    I think resultSet.close() will do what you want (you shouldn't have to set resultSet=null when you're done with it).
    You can't force the garbage collector to run and reclaim memory. It uses an intelligent algorithm to do so .
    I question why your project is sending millions of records to excel. Who is going to read a 10,000 page excel document(s)?
    Instead, I suggest you provide a (intelligent) filter mechanism to allow users to get a subset of data to send to an excel document rather than all data. For example: instead of sending him the entire telephone book, have him search for results based on lastName and/or firstName. That will cut down on the number of records returned. Next, does the user really need all the columns of data in each record? That will cut it down further.
    You can search Google for 'java heap size' to increase the memory for your program. However, your 65536 limit is probably due to Excel's limitation and not your Java program.Sorry I could not explain the need,
    No. That is not issue here. I already use max heap size I can
    but I can handle it now. Open files, write directly to the file instead of holding the data and dumping all at once. I save all the overhead and it works fine even the result set still consumes almost all the memory.is it possible you are using mysql? the mysql jdbc driver has a terrible default setup in that it keeps all results for the result set in memory ! i think some of the latest drivers finally allow you to stream results sensibly, but you have to use the correct options.

  • Problem with special characters when calling web services via ISG

    Hi all,
    I have a problem when trying to send or retrieve strings containing some special characters via Integrated SOA Gateway.
    For example, when I call a PL/SQL function via ISG that returns a string containing curling single and double quote characters, these are not represented by valid XML character entity references. So when trying to open the response XML (returned by ISG) in a browser, I get a parser error...
    Has anybody had a similar experience with ISG? How can I resolve that - is it an ISG bug?
    Thanks
    Carolin

    XML Parsing Error: not well-formed
    Location: file:///C:/Users/sanders/Desktop/Text3.xml
    Line Number 4734, Column 54: <DESCRIPTION>Overhead Track Lighting 4?</DESCRIPTION>Do you get the same error if you change the description from "Overhead Track Lighting 4?" to "Overhead Track Lighting 4"?
    Do you have any invalid characters?
    BI Publisher Reports End With Error When There Is An Ampersand Character ( & ) On The Xml Data File [ID 1081175.1]
    Journal Entries Report Doesn'T Yield Output: Java Heap Error [ID 1115663.1]
    Thanks,
    Hussein

  • Users able to see documents via URL when they cannot see the folder containing them?

    I took an AD group out of the permissions list for a folder in a document library. Then I ran an incremental search.
    Now, users in that group cannot see the folder (correct behavior!).
    Users in that group do not find documents in that folder when performing a site search (correct behavior!).
    BUT, users in that group CAN open a document in that folder by using the full URL to a document there, the full link.
    This seems like a security violation - how can the members of that removed group open a document in a library that they cannot even see?
    SP2010 Enterprise, SP1, Feb 2014 CU on Windows Server 2008 R2
    Win7 clients with IE10
    I have reviewed the groups in use and the permissions lists where they are used and don't see any source of "leakage".
    Any ideas why this might be happening and how to fix it?

    Hi,
    Based on your description, my understanding is that the user without permission can see a document in a folder by using the full URL to a document.
    I have followed your description to do a test, but I can’t reproduce your problem.
    My 
    suggestion is that:
    Sign in your site with a user who has full control 
    permission to the site, and go to  the documents in the folder and check whether the users in that group without permission to the folder have permissions to the documents.
    When users in that group use the full URL to a document , please check whether the current user is the user in that group without permission to a
    document in the folder. You can try a test in another computer.
    Please clear your browser Cache and then test again.
    If the issue still exists
     , please don’t hesitate to let me know.
    Best Regards
    Wendy Li
    TechNet Community Support

  • How to access an url when interface has down for 5 minutes and will send an email if it has up before 5 mins (will not access url)

    I've tried this one before and it works, but the problem is, I would like to use full tcl, do I need 3 tcl script to do that? And is there another way to implement that 5 minutes problem? Because it looks a bit brute force to cancel the trigger occurs...
    #event manager directory user policy "flash:/Test"
    #event manager policy test.tcl
    #test.tcl already contain the http::get
    event manager environment _email_from [email protected]
    event manager environment _email_to [email protected]
    event manager environment _email_server [email protected]
    event manager environment _email_cc [email protected]
    event manager applet one
    event syslog pattern "Line protocol on Interface GigabitEthernet0/0, changed state to down"
    action 1.0 cli command "enable"
    action 1.1 cli command "show clock"
    action 2.0 mail server "$_email_server" to "$_email_to" from "$_email_from" cc "$_email_cc" subject "Test" body "$_cli_result"
    event manager applet two
    event tag e1 syslog pattern "Line protocol on Interface GigabitEthernet0/0, changed state to down"
    trigger occurs 1 delay 60
     correlate event e1
    action 1.0 cli command "enable"
    action 1.6 cli command "tclsh flash:/Test/test.tcl"
    event manager applet three
    event syslog pattern "Line protocol on Interface GigabitEthernet0/0, changed state to up"
    action 1.0 cli command "enable"
    action 1.1 cli command "configure term"
    action 1.2 cli command "event manager applet two"
    action 1.3 cli command "no trigger occurs 1 delay 60"
    action 1.4 cli command "trigger occurs 1 delay 60"
    action 1.5 cli command "correlate event e1"
    action 2.0 mail server "$_email_server" to "$_email_to" from "$_email_from" cc "$_email_cc" subject "Test" body "$_cli_result"

    Okay, that clarifies things.  You will want multiple policies for this.  You can take that previous Tcl policy I posted in my last reply and change the event detector line to:
    ::cisco::eem::event_register_timer countdown time 300
    Call this Tcl policy tm_access_url.tcl.
    Then, your other policies will be:
    event manager applet intf-down
     event syslog pattern "Line protocol on Interface GigabitEthernet0/0, changed state to down"
     action 1.0 cli command "enable"
     action 1.1 cli command "show clock"
     action 2.0 mail server "$_email_server" to "$_email_to" from "$_email_from" cc "$_email_cc" subject "Test" body "$_cli_result"
     action 3.0 cli command "config t"
     action 4.0 cli command "event manager policy tm_access_url.tcl"
     action 5.0 cli command "end"
    Your other applet will be:
    event manager applet intf-up
     event syslog pattern "Line protocol on Interface GigabitEthernet0/0, changed state to up"
     action 1.0 cli command "enable"
     action 1.1 cli command "show clock"
     action 2.0 mail server "$_email_server" to "$_email_to" from "$_email_from" cc "$_email_cc" subject "Test" body "$_cli_result"
     action 3.0 cli command "config t"
     action 4.0 cli command "no event manager policy tm_access_url.tcl"
     action 5.0 cli command "end"

  • HT1766 hi, how to call back the back up when its has been overwrite with the new one?

    hi, i was tried to back up and restore my iphone 5 and then update to the latest version with my mac itunes, unfortunately my iphone 5 hang in the middle and it reback-up and overwrite the previous one and i didnt know how com it will overwrite the old one with the new back up, which means all my datas gone, how am i going to call back them?

    You don't unless you keep regular backups of your computer in which case you can restore previous backup files.

  • I am unable to get 3G on my Ipad 3 with a 3G microsim installed as it keeps switching to Edge. My service provider says that one has to set the option 'CDMA only'. But on Ipad 3  no such setting option is available as it selects automatically.

    How to setup cellular data on ipad 3 for CDMA only as otherwise it keeps switching to Edge

    I have a BSNL 3G microsim. But it switches to Edge even when 3G is available, When I use the same SIM on a dongle on my Notebook I can set the 'CDMA only' or 'CDMA preferred' option and I get 3G perfectly without falling back to Edge' My question is how come Apple has not provided this option in the Cellular Data settings.

  • Segmentation Wizard seems to have a glitch when updating the result set

    Hi,
    has anyone noticed some inconsistency when you create a new segment, retrieve the results then you manually go and remove some of them then upload them to a planned campaign.
    i queried for all contacts for a company and it resulted in 100 contacts, i manually reduced the list to 29 (i am included in the list) as there is no way to use the filter to get these 20. i upload them to my planned campaign. i schedule the campaign to go out at noon. I receive the campaign email. i open the email. I have one person who replied to the campaign email (to me). The next day, i gather the results and only 4 people shows that they did a MESSAGE OPEN. and i am not one of them nor the person who forwarded his email to me.
    I am baffled. This has happened to me a lot when using the segmentation wizard tool. I wonder now how accurate the responses are?
    jang

    thanks for the reply. i think its an unacceptable explanation (from Oracle) though that a recipient gets the email, can see and read the email but since he did not click on the CLICK HERE TO DOWNLOAD PICTURES, it does not get registered. It seems like an application restriction more than a logical reason cause logically if person gets the email and is able to read the email, it should be considered as MESSAGE OPENED, otherwise it should be RECIPIENT CLICK ON DOWNLOAD :)
    for a marketing company where you are tracking how many people were able to view your email, this count is very important and since a lot of people are now using view panes in their outlook and dont click on the CLICK HERE TO DOWNLOAD PICTURES especially if the email just has text in them and no apparent pictures, the MESSAGE VIEWED count is very unreliable.
    i sent an email to 20 people in my company and i know that they all opened and saw them but the status shows only 40% viewed so the numbers are really undependable.

  • Report calling via URL is it secure?

    Hi. Calling a report via URL exposes the uid/pwd. Is this a good way for secure communications?

    Hi Binoy,
    This is just one of the ways & is definitely not secure. There are other ways too - you could supply just the '@dbname' or 'username@dbname' in place of userid - the database authentication page will be brought up where you could provide the password. You could also make use of the keys that can be specified in ORACLE_HOME\reports\conf\cgicmd.dat. For specifying authid, you could use SSO.
    Please have a look at the Publishing Reports guide on OTN for a more detailed description of all available options.
    http://otn.oracle.com/products/reports/htdocs/getstart/docs/A92102_01/toc.htm.
    Regards,
    Oracle Reports Team.

Maybe you are looking for

  • Acrobat 10 not Scanning all Pages from ADF (Automatic Document Feeder)

    Acrobat 10 does not scan all of the pages from the Automatic Document Feeder from an attached scanner, and only scans some of the pages. The ADF works fine with the built-in Windows 7 Scan and Fax, as well as with HP's software, but it just won't wor

  • Dual/Triple Displays on MacBook Pro 9,1 (Matrox?)

    I just picked up a MacBook Pro (Model MD103LL/A) last night and I'd like to hook up two to three 23" LG DVI displays. I'm told the Matrox Dual or Triple Head2Go adapters will work, but there are mixed reviews from Mac owners on newegg and amazon. I'd

  • Installed iDVD and now I have lost iPhoto

    I have an iMac 27" late 2013. I was wanting to burn some dvd's and installed iDVD, while working with iDVD I received a notice that iPhoto could not be opened because it may be damaged or incomplete...Can I get it back???

  • ITunes Error 7, (windows error 1114) runtime library error R6034

    Need help, update failed, iTunes Error 7, (Windows error 1114) runtime library error R6034, lost iTune library.

  • MSS: Launch Pad with projects and orders

    Hi! We'd implemented a scenario in our MDT for reporting projects and orders which are assigned to employees in OrgManagement. This works fine. We are now implementing MSS (ERP2005 and EP7). We have implemented data and object provider, new column gr