Passing parameters for a query throught XML and capturing response in the same

Hi All,
I have defined a RequestParameters object and i am passing paramerts for a query through XML and trying to capture the result in the same and send back to the source. In this case i am send XML from excel.
Below is my XML format.
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Insert xmlns="http://tempuri.org/">
<dataContractValue>
<dsRequest>
<dsRequest>
<SOURCE></SOURCE>
<ACTION>Insert</ACTION>
<RequestParams>
<RequestParams>
<ACC_NO>52451</ACC_NO>
<EMP_CITY>HYD</EMP_CITY>
<EMP_NAME>RAKESH</EMP_NAME>
<EMP_CONTACT>99664</EMP_CONTACT>
<EMP_JOM>NOV</EMP_JOM>
<EMP_SALARY>12345</EMP_SALARY>
</RequestParams>
<RequestParams>
<ACC_NO>52452</ACC_NO>
<EMP_CITY>HYD</EMP_CITY>
<EMP_NAME>RAKESH</EMP_NAME>
<EMP_CONTACT>99664</EMP_CONTACT>
<EMP_JOM>NOV</EMP_JOM>
<EMP_SALARY>12345</EMP_SALARY>
</RequestParams>
</RequestParams>
</dsRequest>
<dsRequest>
<SOURCE></SOURCE>
<ACTION>Update</ACTION>
<RequestParams>
<RequestParams>
<ACC_NO>52449</ACC_NO>
<EMP_CITY>HYD1</EMP_CITY>
<EMP_NAME>RAKESH1</EMP_NAME>
<EMP_SALARY>1345</EMP_SALARY>
</RequestParams>
<RequestParams>
<ACC_NO>52450</ACC_NO>
<EMP_CITY>HYDer</EMP_CITY>
<EMP_NAME>RAKEH</EMP_NAME>
<EMP_SALARY>1235</EMP_SALARY>
</RequestParams>
</RequestParams>
</dsRequest>
</dsRequest>
</dataContractValue>
</Insert>
</s:Body>
</s:Envelope>
 Where i have a List of dsRequest and RequestParams, where i can send any number of requests for Insert,Update. I have two a XML element defined in RequestParams "RowsEffected","error" where the result will be caputred and is updated
to the response XML.
I have 6 defined in RequestParams
EMP_SALARY(int),ACC_NO(int),EMP_CITY(string),EMP_NAME(string),EMP_CONTACT(string),EMP_JOM(string)
My Question is:
When i am trying to build response XML with the following code, the parameters which are not given in the Request XML are also appearing in the Response.
                ResponseParams.Add(
newdsResponse()
                    ACTION = OriginalParams[a].ACTION,
                    SOURCE = OriginalParams[a].SOURCE,
                    Manager = OriginalParams[a].Manager,
                    RequestParams = OriginalParams[a].RequestParams
Where the OriginalParams is dsRequest
Ex: In my update query i will only send three parameters, but in my response building with ablove code, i am getting all the variables defined as INT in the RequestParameters.
Is there any way i can avoid this and build response with only the parameters given in the Request ??
Appreciate ur help..Thanks
Cronsey.

Hi Kristin,
My project is, User will be giving the parameters in the excel, and using VBA, the values are captured and an XML is created in the above mentioned format and is send to web service for the Insert/Update.
I created a webservice which reads the values from <datacontract> and it consist of list of <dsRequests> where any number of Insert/Upate commands can be executed, with in which it contains a list of <RequestParams> for multiple insertion/Updation.
//function call
OriginalParams = generator.Function(query, OriginalParams);
where OriginalParams is List<dsRequest>
//inside function
command.Parameters.Add()// parameters adding
int
val = command.ExecuteNonQuery();
after the execution,an XML element is added for the response part.and it is looped for all the RequestParams.
OriginalParams[i].Result.Add(
newResult()
{ ERROR = "No Error",
ROWS_EFFECTEFD = 1 });
//once all the execution is done the response building part
for(inta
= 0; a < OriginalParams.Count; a++)
                ResponseParams.Add(
newdsResponse()
                  Result = OriginalParams[a].Result
QUEST: When i am trying to build response XML with the following code, the parameters which are not given in the Request XML are also appearing in the Response.
Ex: In my update query i will only send three parameters, but in my response building with ablove code, i am getting all the variables defined as INT in the RequestParameters.
Is there any way i can avoid this and build response with only the parameters given in the Request ??
Appreciate ur help..Thanks
Cronsey.

Similar Messages

  • I used my apple ID for my daughters new iPod and now we have the same number! Please help

    I just started up my daughters new iPod and use my apple id and now we have the same number! How do I change this on my daughters iPod? I want her to be able to use my apple ID but I'd like her to have her own number... Is this possible?

    Create a new ID for her:
    On the iPod go to
    - Settings>Messages>Send and receive and sign out your ID and sign into hers. Make sure that only her ID email address is listed.
    - Settings>FaceTime sign out of your ID and sign into hers. Make sure that under You can be reached at only her ID email address is listed
    - Settings>iCloud and sign out and sign in with hers
    Continue to use the common ID for Settings>iTunes and App stores.

  • Using join and batch reading in the same query

    Hi,
    I wonder if it is possible to use "Joining" and "batch reading" in the same query.
    For example I Have
    A -> 1-1 B
    A -> 1-1 B
    B -> 1-M C
    This is the case where I have two separate 1-1 relationships to the same class B from A. Toplink 10.0.3 can manage it nicely through joining.
    Now, I would like to read a set of As (with its 2 Bs) and all Cs for each B.
    It seems that the following configuration does not work:
    A -> 1-1 B (use joining)
    A -> 1-1 B (use joining)
    B -> 1-M C (Batch read)
    Any help would be greatly appreciated
    Tony.

    James,
    Would you be so kind to look at the following code?
    Am I formulating it correctly to achieve my desired behavior?
    Trip.class -> 1-1 PickupStop
    Trip.class -> 1-1 DropoffStop
    PickupStop and DropoffStop extend Stop and use same table (STOP)
    Stop -> 1-M StopEvents
    I would like to fetch all Trips, with their Stops and all StopEvents in 2 queries:
    1. Trip joined with Stop
    2. Batchread StopEvents
    Code:
    ReadAllQuery raq = new ReadAllQuery(Trip.class);
    Expression qexp1 = new ExpressionBuilder();
    Expression qexp2 = new ExpressionBuilder();
    raq.addJoinedAttribute("pickupStop");
    raq.addJoinedAttribute("dropoffStop");
    raq.addBatchReadAttribute(qexp1.get("pickupStop").get("vStopEvents"));
    raq.addBatchReadAttribute(qexp2.get("dropoffStop").get("vStopEvents"));

  • I am new in indesign scripting, please tell me how to write a script to get  content of a element in xml and then sort all the content

    I am new in indesign scripting, please tell me how to write a script to get  content of a element in xml and then sort all the content

    Hi,
    May the below code is useful for you, but I dont know how to sort.
    Edit the tag as per your job request.
    alert(app.activeDocument.xmlElements[0].contents)
    //Second alert
    var xe = app.activeDocument.xmlElements[0].evaluateXPathExpression("//marginalnote");
    alert(xe.length)
    for(i=0; i<xe.length; i++)
        alert(xe[i].texts[0].contents)
    Regards
    Siraj

  • Reporting running for more than 30 min and still says retrieving the data

    Hi,
    I created a report using a view, and in RPD for a measure column I put the aggregation AVG.
    In front end when I pull the column , if the column is placed in measure or column the report is displaying in 30 sec. But I want the report in rows section, when I place the column in row , the report is running for longer time and not displaying the data, Please help, any help is highly appreciated.
    Thanks & Regards,
    SR
    Edited by: user9255588 on Apr 14, 2013 5:22 PM

    Kindly chk the physical query and execute it in DB and chk its taking the same time
    If not chk the join conditions any circular joins present
    Hope it helps
    Regards,
    Nandha

  • If you registrate one Apple ID for each iPhone/iPad, you'll get 5GB on iCloud for each Apple ID, right? I have two iPhones and one iPad  with the same Apple ID, why can't I get 5 GB fo each of them?

    If you registrate one Apple ID for each iPhone/iPad, you'll get 5GB on iCloud for each Apple ID, right? I have two iPhones and one iPad  with the same Apple ID, why can't I get 5 GB fo each of them?

    Actually, everyone missed one point, when a device is priced, the cost of icloud storage space for that device is also included in it that is why they are able to give you 5gb each for each user ID, in nutshell there is nothing free coming with apple device purchase, it is paid for.  What they are trying by giving only 5gb per user ID irrespective of the number of devices used is pure broadlight looting, they take money from you when you buy each device and give you nothing, This is a case of goods and services bought but not fully deliverd ie apple can be suied for discreminatory treatment towards it's users. I wonder why no one tried this yet in America where everyone sue everyone for petty things..... there is no one to take up this issue? . if tim got any love for the guys who shell out money for the devices his company makes, he should be implimenting this as priority before someone wake up from sleep and sue him.

  • Iv downloaded the 0845 wizard from the App Store. Registered my details and it has been working. But for some reason it won't let me log in and keep saying failed every time I try to use it. Iv deleted and re-downloaded the app and it still says the same?

    Iv downloaded the 0845 wizard from the App Store. Registered my details and it has been working. But for some reason it won't let me log in and keep saying failed every time I try to use it. Iv deleted and re-downloaded the app and it still says the same?

    I would say to start by looking on their web site... unfortunately, that appears to be dead.
    Based on the horrible ratings on the App Store (1 star for the current version), I'm not surprised it doesn't work well.

  • How come every time i try to download a app  it says Your apple id has been disabled. I already reset my pass word and it keeps saying the same message?

    How come every time i try to download a app  it says Your apple id has been disabled. I already reset my pass word and it keeps saying the same message?

    Apple - Support - iTunes - Contact Us

  • Hi, I need help and advice. Basically me and my ex partner both had iphones and synced it with the same computer under the same ID. We split i have a new laptop and now it keeps asking for the old ID or it'll erase my apps bought on theold account.

    Hi, I need help and advice. Basically me and my ex partner both had iphones and synced it with the same computer under the same ID. We split up and now im trying to get all my apps and info onto my new laptop with a new account but it keeps asking me for the old apple ID which she is still using and she changed the password. i tried backing it up but still nohing. When i try to back up purchased items being apps etc its keeps asking for the old one. help

    See Recover your iTunes library from your iPod or iOS device. But you'll still need the password.
    Once you have the computer authorized to use the account she could change the password again to stop you buying apps on her card (assuming it's not on yours!). It would lock you out of upgrading them too but they should work unless she uses the deathorize all feature.
    It depends on how amicable the split is...
    tt2

  • I've had my iPod 5th gen for a few months now and out of nowhere the microphone has stopped working.

    I've had my iPod 5th gen for a few months now and out of nowhere the microphone has stopped working. It won't pick up anything, I can't use it for recording, face time, siri or anything else. Every time I try and record and play it back its just all fuzzy, is there anyway of fixing it without having to send it off for repair?

    - Make sure the mic hole is clear and unobstructed. It is the little hole on the back by the camera lens(if has back camera). For the 16 GB one without the back camera the mic hole is on the tope edge near the center.
    - Open the Voice Memos app and see if you see movement on the VU meter needle with changes in noise level trying to be recorded.
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                 
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                       
    You can also send it to Apple.

  • I have 3 iphones, an ipod touch and an Ipad on the same itunes account.  should I have a different account for each device?  If so how do I get all my purchases, like music on all the devices?

    I have 3 iphones, an ipod touch and an Ipad on the same itunes account.  should I have a different account for each device?  If so how do I get all my purchases, like music on all the devices?

    You can sync as many devices as you want to the same iTunes account, there is no limit. You can have the same content on each device or different content, the choice is yours. iTunes will keep everything straight, by device, including separate backups. I'd suggest giving each device a unique name, to make things easier.

  • HT204053 My wife and I are using the same apple ID. since last week, i am required to pay twice for the same app on our 2 devices (even though we are using the same ID). what can I do to fix this?

    My wife and I are using the same apple ID. Up until last week we used to buy an app and pay for it only once, but use it on both devices.
    since last week, the app store asks me to pay again for an app i already paid for on one device. On both devices automatic downloads (in settings) is and was always turned off.
    what can I do to fix this?

    Actually no. After installing an app on one device, I used to see an "install" button on the second device (since it's already been paid for). Now i get the full price button on the second device. I didn't want to proceed with the purchase because i didn't want to be billed twice.

  • If i have an iPhone and an iPad on the same apple id, what do i do to NOT have my iPad get the imessages for my phone?

    If i have an iPhone and an iPad on the same apple id, what do i do to NOT have my iPad get the imessages for my phone?

    On the iPad:
    Settings > Messages > Send & Receive > Uncheck your phone number from both sections
    To turn it off completely:
    Settings > Messages > turn off iMessage

  • I have an ipod touch but i don't have enough memory and 0I get an upgrade soon for my phone and i want the iphone but the thing is, can i have an ipod touch and an iphone on the same itunes account like can i use my money on my ipod account for my iphone

    I have an ipod touch but i don't have enough memory and 0I get an upgrade soon for my phone and i want the iphone but the thing is, can i have an ipod touch and an iphone on the same itunes account like can i use my money on my ipod account for my iphone

    Your iPhone and iPod can share the same iTunes account.  Apps can be freely shared and used by one or both devices.  You can't use money in your iTunes account to pay for your phone, but purchased apps can be used by both the iPod and iPhone.

  • HT4437 hi even when i connect my macbook and apple tv to the same wifi network i cant put on the air play mirroring option.my airplay mirroring option does not detect any device.what can i do for this?

    hi even when i connect my macbook and apple tv to the same wifi network i cant put on the air play mirroring option.my airplay mirroring option does not detect any device.what can i do for this?

    See
    http://support.apple.com/kb/TS4215

Maybe you are looking for

  • How can I keep notes when using a new icloud account?

    Hello I want to use one apple id for purchases and another apple id with my icloud account! when I delete the actual icloud account it deletes the notes and the photo stream. How can I do to keep my notes with my new apple id? I have hundreds of note

  • Adobe Bridge Not Showing Preview

    I have opened PS and launched Bridge but it doesn't show like it normally does.  I see Bridge icon in the tray across the bottom of my screen and have tried clicking, dbl clicking, control clicking and nothing happens. I've rebooted, undocked my lapt

  • Unable to install Dreamweaver CS 5.5 in Windows 7

    When trying to install Dreamweaver CS 5.5 on my WIndows 7 computer, the system hangs indefinitely in the "Initialing Installation" screen.  According to the help forums, "If you're troubleshooting install errors for Creative Suite 5 or CS5.5 and the

  • Graphics Gone in Acrobat 8.1.2

    Hello. Acrobat Pro is a killer app. However, I might have flipped the wrong switch and killed it. None of the graphics in any of my Adobe Acrobat documents will show up. I get a blank grey slate instead. I use a MacBook Pro 2.33 GHz Intel Core 2 Duo

  • Batch export as jpg 300 dpi

    I've 2,000 fla files published as swf and jpg (72 dpi). I now want 2,000 high quality jpg 300 dpi files. Instead of exporting each file individually, is it possible to batch export all fla files in a directory? I found an actionscript plus php file o