Sending Multiple response for a request

Hi,
I have a HTML form and have used a post method to send the details in the form to my web service. Inside my web service, I perform a validation with the data received and send back a error message if the data received is not proper.
Suppose if the data is proper, I am querying a database and after all the processing is done,I am invoking a URL.
I just want to know a couple of things.
1.) In case the input data to my web service is fine, can I send back a response saying that the data receieved is proper and then continue with the other processing like querying the DB for the same request? I need to do the actual process also and then invoke a url in the end.
2.) If not, in case the input data is proper and after all the processing is done, can I inovke the url by using sendRedirect func of the response object and also finally return the status for that particular request?
Eg: public String FuncA(){
//Some processing with input data
try{
servletResponse.sendRedirect(URL);
return "Successfull"
Will the above one work? Like am invoking a URl using redirect and then finally am returning a message back. Will both the things together work? Both the url to which it is returned as well as the url given in the redirectmethod() is different.
Please provide some inputs.
Thanks in advance.

Hi,
I am using REST webservice. Also, currently there is no session being maintained or any request object. Currently, the input to the webservice will be obtained as a string value. After some processing with the input, I have to invoke the URl as well return a message to the one that calls this webservice.

Similar Messages

  • SharePoint 2013 - SPD Custom Workflow keeps sending multiple emails for a single Task

    I have a workflow triggering on List item created only. There are multiple stages in the work flow and in each stage a single task is assigned to a group of people. Currently group is only having one user i.e. my own test user with a valid email address.
    Workflow was running fine for first 5 runs but now it keeps sending multiple emails for each task multiple times and runs very slow. I have only single workflow in development server with 24GB RAM.
    Enabling the Workflow log in Event viewer does not show any error or warnings. The only clue I see is WorkFlowManager Database table "DebugTrace" having multiple entries showing that WF is trying to send same email multiple times with failed attempts,
    but in reality emails are being delivered as well.
    http://server/site/_vti_bin/client.svc/sp.utilities.utility.SendEmail Retry sending email in xx.xx.xx Status: HTTPRetrying
    http://server/site/_vti_bin/client.svc/sp.utilities.utility.SendEmail Retry sending email in xx.xx.xx  Status: HTTPFailed
    I could not get the exact phrase as I don't have direct access to development machine at work.
    Any help or guidance will be highly appreciated.

    Yes, I have on-premise SP site, and here is the actual log I see in DebugTraces table.
    Message              Level     Name    Category
    Attempt 1 of the HTTP request to 'http://site/collection/_vti_bin/client.svc/sp.utilities.utility.SendEmail' failed with response '<Exception.
    No Status Code>'.              2              HttpRequestFailed          Http
    Attempt 2 of the HTTP request to 'http://site/collection/_vti_bin/client.svc/sp.utilities.utility.SendEmail' will be made in 00:00:06.            
    2              HttpRequestRetrying     Http
    Attempt 2 of the HTTP request to 'http://site/collection/_vti_bin/client.svc/sp.utilities.utility.SendEmail' failed with response '<Exception.
    No Status Code>'.              2              HttpRequestFailed          Http
    Attempt 3 of the HTTP request to 'http://site/collection/_vti_bin/client.svc/sp.utilities.utility.SendEmail' will be made in 00:00:07.            
    2              HttpRequestRetrying     Http
    Attempt 3 of the HTTP request to 'http://site/collection/_vti_bin/client.svc/sp.utilities.utility.SendEmail' failed with response '<Exception.
    No Status Code>'.              2              HttpRequestFailed          Http
    Attempt 4 of the HTTP request to 'http://site/collection/_vti_bin/client.svc/sp.utilities.utility.SendEmail' will be made in 00:00:09.            
    2              HttpRequestRetrying     Http
    Attempt 4 of the HTTP request to 'http://site/collection/_vti_bin/client.svc/sp.utilities.utility.SendEmail' failed with response '<Exception.
    No Status Code>'.              2              HttpRequestFailed          Http
    Attempt 5 of the HTTP request to 'http://site/collection/_vti_bin/client.svc/sp.utilities.utility.SendEmail' will be made in 00:00:13.            
    2              HttpRequestRetrying     Http

  • How to send multiple data for a single element

    Hi All,
    I have a requirement where I have to send multiple data for single element per single transaction. For example
    Id details
    1 abcd
    1 efgh
    1 def
    Now, when I am selecting this ID from database, I have to get all the details in a single xsd like
    <id>1</id>
    ---><details>abcd</details>
    <details>efgh</details>
    <details>def</details>
    Thanks

    Hi,
    The following XSLT...
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="/">
    <xsl:variable name="root" select="/"/>
    <root>
    <xsl:for-each select="distinct-values(/root/entry/id)">
    <xsl:variable name="id" select="."/>
    <entry>
    <id><xsl:value-of select="$id"/></id>
    <xsl:for-each select="$root/root/entry[id = $id]">
    <details><xsl:value-of select="details"/></details>
    </xsl:for-each>
    </entry>
    </xsl:for-each>
    </root>
    </xsl:template>
    </xsl:stylesheet>Will work for a document like this...
    <root>
    <entry>
    <id>1</id>
    <details>detail1</details>
    </entry>
    <entry>
    <id>1</id>
    <details>detail2</details>
    </entry>
    <entry>
    <id>2</id>
    <details>detail3</details>
    </entry>
    </root>Hope this helps...
    Cheers,
    Vlad

  • PO 7.4: NW BPM: HTTP Error response for SOAP request or invalid content-type.HTTP 200 OK

    Hi Experts
    I am trying to call NW BPM scenario(File to BPM) from PI, and using below adapter config.
    I am getting below error.
    Failed to call the endpoint: Error in call over HTTP: HTTP 200 OK
    SOAP: Call failed: java.io.IOException: HTTP Error response for SOAP request or invalid content-type.; HTTP 200 OK
    SOAP: Error occurred: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: HTTP Error response for SOAP request or invalid content-type.; HTTP 200 OK
    MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: HTTP Error response for SOAP request or invalid content-type.; HTTP 200 OK
    Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: HTTP Error response for SOAP request or invalid content-type.; HTTP 200 OK
    Any idea how to fix this issue?
    Thanks,
    Sandeep Maurya.

    Hi Sandeep,
    Test the URL from your browser and check the proxy settings as well.
    Refer the below links
    SOAP: call failed: java.io.IOException: invalid content type for SOAP: TEXT
    SOAP: Call failed: java.io.IOException: Failed to get the input stream from socket: java.net.SocketException: Connection…
    Regards
    Bhargava Krishna

  • SOAP Receiver Error: HTTP Error response for SOAP Request

    Hi gurus,
    I'm facing a weird error in File --> PI 7.31 java only --> soap receiver proxy.
    The other interfaces runs well. just one get the the following error:
    Exception caught by adapter framework: java.io.IOException: Error receiving or parsing request message: java.io.IOException: HTTP Error response for SOAP request or invalid content-type.
    I check the payload and test in the inbound proxy. on error.
    Any hints?
    Thanks a lot!
    regards
    Christine

    Hello Christine,
    I faced the same issue,
    You can use the beans below to overcome the error.
    And charset should be utf-8

  • Pls help me in sending sequential responses for the different commands.

    Hi all
    pls help me in  sending sequential responses for the different commands. For example,i have to send the response1 for command1 then again host wll send the some other command ,say command 2  after receiving response 1,then again i have to respond to the corresponding command.i m using the pci-6221 card not tradition DAQcard.
    regards,
    nitin

    Hi,
    you need to be more specific. What is your setup?
    Obviously, what you need is a command parser. Look this article for the basics. I know it is meant for RT but the concept is there.
    Not sure it will help with so few infos: http://zone.ni.com/devzone/conceptd.nsf/webmain/CD63FD0F746B17A686256F090065F572
    Dai
    Dai
    LV 7.1 - WIN XP - RT - FP

  • How do I send multiple credentials for a user when he/she connects to iTune

    I want to be able to send multiple credentials when a user connects. For example, all students will get a generic student credential and may have one or more more specific credentials for access in certain sections or course pages. I presume I can send multiple credentials but haven't found a how-to. Since the credentials are strings, I presume all I need do is concatenate them to send them all at once. What is the delimiter character so that iTunes can parse it?
    Thanks,
    Rob

    Yes, you can send multiple credentials in an iTunes U URL request. The delimiter is the semi-colon.
    So, let's say you want to send two credentials ...
    Student@urn:mace:itunesu.com:sites:hogwarts.ac.uk
    Student@urn:mace:itunesu.com:sites:hogwarts.ac.uk:potions3yr
    your token string would have the following "credentials" token ...
    credentials=Student@urn:mace:itunesu.com:sites:hogwarts.ac.uk;Student@urn:mace:i tunesu.com:sites:hogwarts.ac.uk:potions3yr

  • Users sends multiple emails for one email to be received

    I have a user who states that she has to send multiple emails to a customer before she one is able to get through.  She doesn't receive a bounce back from them.  I recently suggested she remove an images from the emails, we have a corporate logo
    that can be used in our signatures, as many of her customers are government and I figured they may be blocking the emails for this reason.  Nothing seems to have helped and she still seems to be having the issue.  This also occurs sometimes for some
    of her customers and other times with others, so it doesn't seem specific to the customer.  I have repaired Office and run a virus scan, the scan came up with minimal malware and removed it.

    Hi,
    Please follow these steps to create a test email in Outlook and send out:
    1. Open Outlook, click New Email.
    2. In the new window, edit To and Subject fields.
    3. Click OPTION, check Request a Delivery Receipt.
    4. Then click Send to send the test message.
    Please check whether the test message is listed in the Sent Items folder or not. Also waiting for the Delivery Report of this message.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • Sending multiple email for free goods item category??

    Hi,
    we have requirement to send email (Z report in smartforms) automatically when sale order save in tcode VA01/VA02.
    we made reqd config in tcode NACE and we set access sequence on ORDER TYPE and it's working fine. but the problem is that when order booked for item category free goods it sends multiple emails. (i.e. no. of line items = no. of email) for one order no. All other item category is working fine. only problem with the free goods.
    I am an abaper. all config are made with the consent of SD consultant.
    pls help.
    thanks
    Radhashyam Sahoo.

    If you are an ABAPer, then it sounds like you simply need to debug the processing to identify where/why the fault occurs.  As for the NACE settings, you should understand the config as well as your functional counterpart.  It will make you a better developer and help you understand the processing code.

  • ICal sends multiple emails for invites and updates to event attendees - HELP!

    Every time I create or send an event in iCal, it sends multiple emails to each attendee (2-3 duplicate emails) with the same event.  So if I have 3 event invitees, they get 3 emails each.  All the emails are sent from the correct account in Apple Mail, and the calendar itself shows only one email address for each attendee, but for some reason the sent folder shows that each person was emailed 2-3 times.  This is causing quite a problem for work, as any invite I send is clogging up inboxes with duplicate and triplicates for each attendee. 
    When I send a meeting acceptance, it only sends one reply, so I have no idea why it's duplicating or triplicating events when new ones are sent out or udpated by me.  I can't delete my calendar without losing important events from clients or what not, so I'm not sure what to do.
    Also notable:
    I am NOT using iCloud calendars as I needed to create a calendar group and iCloud didn't support that.
    My calendar is syncing to an FTP so that people in my main office can view and download my calendar as needed.
    I am on a brand new (not even 2 mos old) MacBook Pro Retina 2013 model, with OS X 10.8.3
    I am on Calendar 6.0
    I can't change/update events on my calendar from one sub-calendar to another once they are created (though I can edit on my iPhone and resync). This is really annoying and I've posted about this before to no avail (thread here: https://discussions.apple.com/message/21646850#21646850 and here: https://discussions.apple.com/thread/3920017?start=0&tstart=0).
    For now (for this thread) I'd like any help possible in getting my calendar to send just ONE email to meeting attendees when I create and/or update an event.
    Thanks!

    I have the same issue.  Did you get a resolution to this?  Whenever I add a new person to the meeting invite iCal always resends the entire invite...it should just send the invite to newly added participants.

  • HttpURLConnection returns overlaping responses for concurrent requests

    Hi,
    we are facing an issue in making HttpURLConnection requests. Our servlet has to make HttpURLConnection to another server (Both request and response body to be passed is xml, that is the contract with server which we are firing requests to). User can fire 2 concurrent requests one after another with out waiting for first request to be completed. When two requests are fired, two threads are executing the below block of code with no time. And the problem is first response is empty second response contains data for both responses
               URL url = new URL(urlStr);
                HttpURLConnection c = (HttpURLConnection) (url.openConnection());
                c.setRequestMethod("POST");
                c.setRequestProperty("Content-Type", "text/xml; charset=\"utf-8\"");
                c.setDoOutput(true);
                out = new BufferedOutputStream(c.getOutputStream());
                out.write(requestData.getBytes("UTF-8"));
                out.close();
                String inputLine = null;
                StringBuffer sBuffer = new StringBuffer();          
                in2 = new BufferedReader(new InputStreamReader(c.getInputStream(), "UTF-8"));
                while ((inputLine = in2.readLine()) != null) {
                    sBuffer.append(inputLine);
                    sBuffer.append("\n");
                String responseXML = sBuffer.toString();and the above code is in separate static class. we tried using third party implementations for HttpURLConnection instead of sun implementation. NO LUCK.
    Any help in resolving this issue would be of great help
    Thanks,
    JKChaitanya

    JKChaitanya wrote:
    "in2" is also local variable to the method, only "requestData" comes from servlet's doPost method, all other variables are local to the method in which HttpURLConnection code is availableIt seems to me that the implication is that the server you are chaining to is not thread safe and can only handle one request at a time. This means that you will have to process the requests sequentially. Two obvious approaches - use synchronisation or use a request queue. To test the hypothesis it would be very easy to use synchronisation on your servlet class object. Note - you cannot reliably synchronise on the servlet instance since your server may be configured to use more than one instance.

  • Meeting Requests - sending multiple options for a meeting time / or / group voting option

    Good day,
    As a manager of three divisions in my company, and with frequent external meetings with suppliers, I often face a challenge when proposing meeting times - with busy shedules, I like to always propose 2 or 3 availabilities in my schedule for the invitees
    to select from.
    However, I find that often, this is a slow process that seems like it could be improved - is there a way to send a meeting invite with a 'multiple choice' option for meeting time?
    As a linked question to this, is there a way to use the voting option for a group to select from a list of options their preferred meeting times?
    Many thanks for any ideas or guidance,
    Derek Robson
    Senior Manager,
    Procurement, Facilities, and Security
    Network International, Dubai, UAE

    Hi,
    Outlook doesn't have the exactly same build-in feature as your request. However, there's a workaround which can create a Pick-a-Meeting Request.
    Please refer to this link by our MVP, Diane Poremsky:
    http://www.slipstick.com/outlook/calendar/create-a-pick-a-meeting-request/
    I hope this helps.
    Regards,
    Melon Chen
    TechNet Community Support

  • ICal sending multiple invites for one event

    I have an mixed environment where my Mac users running OSX 10.6.4 sync with our MS Exchange 07 using Mail 4.3 and iCal 4.0.3 . Everything is syncing correctly between the two environments, but we have run in to an annoying snag.
    We have multiple users that have Read/Write Access to multiple calendars. Whenever somebody creates an event on one these calendars, even if the user is not an invitee they receive an email notification. The notification is on behalf of the calendar that the event was created for. If the user is an invitee they then receive 2 invites for the same event. This only happens with users who have Read/Write access to these calendars
    I have searched high and low and can not find anybody that has the same issue as I do. Any assistance or advice in how to make so that users with Read/Write access only receive notifications to events they are invited to would be greatly appreciated. Thank you all for your time!
    Cheers,
    Nic Young

    I think I know what can help. I also support Mac users in a mixed environment, and find that being able to access a Windows machine to test settings for my iCal users is very very helpful. If you do not have one, I could also fix this one by adding the user's account to my one Mac that runs Entourage.
    On a PC: set up one of the problem accounts in Outlook, then go to Tools->Options & click on the Delegates tab. Click on a Delegate name (if they all have the same permission level, you can select all), then click the Permissions button. If the delegate have "Editor" permissions, there will be a little checked box that sends the delegate copies of all those meetings. De-select it.
    Lemme know if you want Entourage instructions or if that does it for you.
    The real question, of course, is why are there so many Exchange functions that iCal can't touch. Grrrr....

  • Client server null response for some requests!

    Hi, I have a client server application. When run on my local machine it runs fine. However when is put on the unix server some requests come back with null responses. I have logging implemented and the response in the logs is fine but it doesnt get sent back to the client. There is no timeout set either! any ideas?

    If you get an empty reponse (note that you cannot get a null response) then your server is probably encountering an error that is subsequently being caught before any response is written. Check your server code for "catch" staments that throw away the exception.
    If the server does not suffer this problem then your client does.
    matfud

  • Std Msg Type and Idoc Type to send multiple characteristics for equipment

    Hello Experts,
    I have the requirement to send all the assigned characteristics linked to an Equipment or linked to a Material, along with the all possible values BUT require only standard Message Type and Idoc Basic Type.
    I found Message Type = CHRMAS and Idoc Type = CHRMAS04, BUT it contain information of ONLY one characteristic, not solve my objective (multiple characteristics in one Idoc)
    Will you please provide me any standard Message Type and Idoc Basic Type that solve my above requirement?
    Thanks in advance,
    akg

    Hello Experts,
    Can you at least tell me, is there anything standrad that can fulfill my above requirement?
    If not then I will proceed with custom developments; and in this case is there any complexity to transmit the custom Idoc?
    Thanks in advance,
    Thanks & Regards
    akg

Maybe you are looking for

  • How to populate data from table into datagrid in form

    hi there. may i know how to populate data from a table into a datagrid? i have created a datagrid in a form using OLE's microsoft datagrid. i'm having problem to populate data from table into the grid. can i know how to do that? thanks

  • Show currency unit in extra column

    Hi Gurus, i got a key figure in query with different currency units loaded. After drill down to company i can see different currency units in data fields. For example Keyfigure 100 USD 200 EUR 400 YTL i want to split this key figure. What i want is t

  • RF Scanner / Implementation

    Hi Please explain the procedure invloved in a RF scanner implementation in a Warehouse. I assume the areas involved are. 1) IMG Mobile config 2) SAP Console setting 3) RF Device to SAP Console communication. Plse give as much information as possible.

  • I need a replacement ipod

    I need a replacement ipod again and this time there saying that I have to pay $32 for shipping but it is still well under warranty for I purchased it on Jun 24 06. Does anyone know what I should do? Does anyone know what do I have to bring to the app

  • LIBTUX_CAT:305 error

    Hi , The BBL is not getting executed and gives a failure . I am getting the follwing error in the ULOG 061148.babbage!BBL.774.1.0: LIBTUX_CAT:350: ERROR: Configuration file parameters do not match existing bulletin board. 061148.babbage!BBL.774.1.0: