Any one could help me with this soap client program?

Any one could help me with this soap client program?
Below is the request format my partner is expecting to see:
POST /Service.asmx HTTP/1.1
Host: 192.168.1.1
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://api.abcdefg.com/GetList"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
          xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body>
          <GetList xmlns="https://api.abcdefg.com/">
               <username>string</username>
               <password>string</password>
          </GetList>
     </soap:Body>
</soap:Envelope>The java client I wrote is blow:
import javax.xml.soap.*;
import java.util.Iterator;
import java.net.URL;
import java.io.*;
public class Client {
    public static void main(String [] args) {
        try {
            SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance();
            SOAPConnection connection = soapConnectionFactory.createConnection();
            SOAPFactory soapFactory = SOAPFactory.newInstance();
            MessageFactory factory = MessageFactory.newInstance();
            SOAPMessage message = factory.createMessage();
         // addd SOAPAction;
         MimeHeaders hd = message.getMimeHeaders();
         hd.addHeader("SOAPAction", "https://api.abcdefg.com/GetList");
            // get env and body;
            SOAPPart soapPart = message.getSOAPPart();
            SOAPEnvelope envelope = soapPart.getEnvelope();
         SOAPBody body = envelope.getBody();
            Name bodyName = soapFactory.createName("GetList", "", "https://api.abcdefg.com/");
            SOAPBodyElement bodyElement = body.addBodyElement(bodyName);
            //Constructing the body for the request;
         SOAPElement username = bodyElement.addChildElement("username");
         username.addTextNode("1234567");
         SOAPElement password = bodyElement.addChildElement("password");
         password.addTextNode("7654321");
            System.out.print("\nPrinting the message that is being sent: \n\n");
            message.writeTo(System.out);
            System.out.println("\n\n");
            URL endpoint = new URL ("https://api.abcdefg.com/Service.asmx");
            SOAPMessage response = connection.call(message, endpoint);
            connection.close();
            response.writeTo(System.out);
        }catch (Exception e) {
             System.err.println("ERROR: ******* " + e.toString());
}The response my partner's server returned is:
<faultstring>Server did not recognize the value of HTTP Header SOAPAction:. </faultstring>I used similar code to access the web services provides via tomcat, it works fine...however, for this .NET services it does not work.
By the way, I also have another version of the clirnt, using JDOM to construct a XML request and wrap with axis message. I got the same error message as above.
Can anyone point out something for me?
Any kind of comments will be appreciated!!
Edited by: Nickolas.Chen on May 6, 2008 7:20 PM

You will need to Contact iTunes Customer Service and request assistance
Use this Link  >  Apple  Support  iTunes Store  Contact

Similar Messages

  • Hii, i got an iTunes card for $15 and only used $6 in it, but it say I only have $0.37 left. If any one could help me with this, I will be forever grateful.

    Hii, i got an iTunes card for $15 and only used $6 in it, but it say I only have $0.37 left. If any one could help me with this, I will be forever grateful.

    You will need to Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • I have buy 4s it's unlocked and its working with different carriers in Bahrain but in Pakistan I try to use different carriers's sims but its showing sim is not valid , not compatible? any one please help me out this

    I have buy 4s it's unlocked and its working ok with different carriers in Bahrain, but in Pakistan I try to use different carriers's sims but its showing sim is not valid , not compatible? any one please help me out this?

    Try restoring the iPhone to factory settings. If you are having difficult restoring, put the iPhone into Recovery Mode and see if that then works:
    http://support.apple.com/kb/ht1808
    If not, or if a restore to factory settings does not fix the problem, then your iPhone may have a hardware problem. You can only get the iPhone serviced by Apple in Canada, so you will have to take the iPhone there or send it to someone you know in Canada who can get the iPhone serviced and send it back to you. The only option for getting service in Pakistan would be to pay some unauthorized repair shop to attempt a repair, after which Apple will no longer provide any service even in Canada.
    Regards.

  • Anyone could help me with this report. ?

    Hi to all, anyone could help me with this report ?
    I have this one:
    SELECT 'Factura',T0.ItemCode, T0.Dscription, SUM(Quantity) as Cantidad, Sum(LineTotal)  as Total
    FROM INV1 T0 INNER JOIN OINV T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OCRD T2 ON T1.CardCode = T2.CardCode
    INNER JOIN OSLP T3 ON T1.SlpCode = T3.SlpCode
    WHERE ((T1.CardCode >= '[%1]' AND  T1.CardCode <= '[%2]'))
    AND T1.DocDueDate >= '[%4]' AND T1.DocDueDate <= '[%5]'
    AND T3.SlpName >= '[%6]' AND T3.SlpName <= '[%7]'
    GROUP BY T0.ItemCode, T0.Dscription
    UNION
    SELECT 'Abono',T0.ItemCode, T0.Dscription, SUM(Quantity * -1 ) as Cantidad, Sum(LineTotal * - 1) as Total
    FROM RIN1 T0 INNER JOIN ORiN T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OCRD T2 ON T1.CardCode = T2.CardCode
    INNER JOIN OSLP T3 ON T1.SlpCode = T3.SlpCode
    WHERE ((T1.CardCode >= '[%1]' AND  T1.CardCode <= '[%2]') )
    AND T1.DocDueDate >= '[%4]' AND T1.DocDueDate <= '[%5]'
    AND T3.SlpName >= '[%6]' AND T3.SlpName <= '[%7]'
    GROUP BY T0.ItemCode, T0.Dscription
    But now I want to introduce this sentence in:
    Select I.ItemCode,I.ItemName,
    (select price from ITM1 where ItemCode=I.ItemCode and PriceList=1),
    (select price from ITM1 where ItemCode=I.ItemCode and PriceList=2),
    (select price from ITM1 where ItemCode=I.ItemCode and PriceList=3),
    (select price from ITM1 where ItemCode=I.ItemCode and PriceList=4)
    From OITM I
    Could you help me ?
    Many thanks.

    Please try this one:
    SELECT 'Factura',T0.ItemCode, T0.Dscription, SUM(Quantity) as Cantidad, Sum(LineTotal) as Total,
    (select price from ITM1 where ItemCode=T0.ItemCode and PriceList=1) 'Price List 1',
    (select price from ITM1 where ItemCode=T0.ItemCode and PriceList=2) 'Price List 2',
    (select price from ITM1 where ItemCode=T0.ItemCode and PriceList=3) 'Price List 3',
    (select price from ITM1 where ItemCode=T0.ItemCode and PriceList=4) 'Price List 4'
    FROM INV1 T0 INNER JOIN OINV T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OCRD T2 ON T1.CardCode = T2.CardCode
    INNER JOIN OSLP T3 ON T1.SlpCode = T3.SlpCode
    WHERE ((T1.CardCode >= '[%1]' AND T1.CardCode <= '[%2]'))
    AND T1.DocDueDate >= '[%4]' AND T1.DocDueDate <= '[%5]'
    AND T3.SlpName >= '[%6]' AND T3.SlpName <= '[%7]'
    GROUP BY T0.ItemCode, T0.Dscription
    UNION
    SELECT 'Abono',T0.ItemCode, T0.Dscription, SUM(Quantity * -1 ) as Cantidad, Sum(LineTotal * - 1) as Total,
    (select price from ITM1 where ItemCode=T0.ItemCode and PriceList=1) 'Price List 1',
    (select price from ITM1 where ItemCode=T0.ItemCode and PriceList=2) 'Price List 2',
    (select price from ITM1 where ItemCode=T0.ItemCode and PriceList=3) 'Price List 3',
    (select price from ITM1 where ItemCode=T0.ItemCode and PriceList=4) 'Price List 4'
    FROM RIN1 T0 INNER JOIN ORiN T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OCRD T2 ON T1.CardCode = T2.CardCode
    INNER JOIN OSLP T3 ON T1.SlpCode = T3.SlpCode
    WHERE ((T1.CardCode >= '[%1]' AND T1.CardCode <= '[%2]') )
    AND T1.DocDueDate >= '[%4]' AND T1.DocDueDate <= '[%5]'
    AND T3.SlpName >= '[%6]' AND T3.SlpName <= '[%7]'
    GROUP BY T0.ItemCode, T0.Dscription
    Thanks,
    Gordon

  • HT201263 I Have an iPhone 5 runnig ios 7.0.4. It wont start as the apple logo keeps on blinking when i connect to wall charger or itunes. I even tried to restore it but an error 21 is being displayed. Any one can help me in this situation

    I Have an iPhone 5 runnig ios 7.0.4. It wont start as the apple logo keeps on blinking when i connect to wall charger or itunes. I even tried to restore it but an error 21 is being displayed. Any one can help me in this situation

    Read http://support.apple.com/kb/ts3694#

  • TS1702 I can't install and update any application, even for the free app the system ask me to sign in to the billing payment. Even though that I did sign, it still declined. Any one could help, please

    I can't install and update any application, even for the free app the system ask me to sign in to the billing payment. Even though that I did sign, it still declined. Any one could help, please

    All Apple iTunes Store accounts must have a valid form of payment set up. Even for free apps and updates. The Payment Declined message comes from your card issuer or payment source; Apple is just a pass-through for the message. You need to find out why your issuer is declining your card.

  • Any one could help me out in writing a code in VB for drawing an arc.

    Any one could help me out in writing a code in VB for drawing an arc.

    Here's the link to the scripting guides. http://www.adobe.com/devnet/illustrator/scripting.html

  • PLEASE, ANYONE COULD HELP ME WITH THIS !!!

    PLEASE, ANYONE COULD HELP ME WITH THIS !!!

    hi, i was facing this problem from past few days...solution... WE JUST HAVE TO USE A USB 2.0 HUB... this solved my problem....E1713 is not able to connect to usb 3.0 as it does with 2.0.

  • Good morning any one can help me with his experience???????

    I'm a beginer in java programing and i wanted to see for my future. that means in future of my plans in programming. I'd like to be a good programmer by using Java language. but i want from you to suggest me which steps should I take to do that.
    waiting for your suggestions.................
    bye
    Message was edited by:
    Programers

    ok, step 1. invest massive amounts of time in learning. write code. a lot. if it doesn't work, which it won't, find out why
    step 2. work out at least a vague career plan. do you really want to be a programmer? I mean really? you might be enjoying yourself cutting a bit of code at home, but it's an entirely different game programming commercially. chances are you'll be working on and maintaining other peoples code a lot of the time, and unlike coding at home, you'll have actual real deadlines that actually really matter, and you'll actually really not enjoy missing a deadline very much at all. you won't be just writing code you want to write, more often than not somebody else will give you a set of requirements to implement, and if you're lucky you'll get a say in what they are. of course, you won't be working alone, so you'll have other people waiting for you to finish what you're working on, or you'll be held up waiting for somebody else to finish what they're working on, neither are attractive prospects. and the damn thing has to work, so you'll have hours of endless fun testing it, being told you got it wrong, having to re-do stuff and suchlike. you'll estimate that something will take you, say, 16 hours to write, and then halfway through those 16 hours you'll realize you're miles from the finish because sockets don't quite behave as you first thought they did, or actually, that widget isn't particularly reliable after all. so you've got 8 hours left to do 15 hours work, plus undoing all the wasted effort so far. if you're really unlucky, you'll have just tons of ceremony to follow, especially if you land a "cushy" public sector job, only to be told that, yes, they still use and follow SSADM, so goodbye getting any work done, hello tons of paperwork and rigmarole
    then you find that, oops, I did quite well at coding back at uni, but now it's the real world, and, well, all those OO skills I thought I'd gained are actually pretty much valueless, so it's down to the bookstore to spend a fortune, and lots of late night catch-up sessions, because the world doesn't stand still, and in particular software development doesn't stand still, so it's either a constant struggle to keep up with the tide of new information - you want to be marketable, don't you? - or you find some dead-end job nailing new functionality onto the sides of ancient legacy systems written on an Atari ST 15 years ago, only they were only ever designed to do one thing well, and with every new module shoehorned into it you can actually hear it groan and creak and you just know you're doing a terrible job, professionally speaking, and nothing to be proud of at all but it pays the bills. until you get bored and want to leave, only to find that - yep, you've guessed it - your skills are murderously out of date, knowing Java isn't enough any more, there's J2EE to contend with, and you don't want to learn about EJB cos they're so horrible, but everyone still wants you to have the skill, or they think they do, as well as JSP and Servlets, and oh have you ever deployed this on Linux or HP-UX? and the frameworks. oh! the frameworks! every damn company you look at working for has a totally different set of tools they use, and although it's technically all just SQL they'd prefer if you'd used Oracle, or SQL Server, or DB2. what? what's object-relational-mapping, you cry! so it's back to the bookstore again, more late night sessions. or maybe you choose a professionally run training course, only that turns out to be run by some other guy who didn't really know what he was doing, and decided "yes! training! that's where the money is!" and is basically re-hashing some exercises out of Connolly-Begg or something, and is basically a months salary down the drain. by this time you might be thinking "well, this isn't at all what I thought it would be", but it's too late now, you're a coder and there's no denying it. you think about looking at other areas, but that means either a huge pay cut, or more re-training. and all you wanted to do was write code for a living - it can't be that hard, you enjoy it at home right?
    liking coding for fun and doing it for a living are a world apart. the absolute minimum requirement before even considering it is to have the ability to solve problems without other peoples help. well? what are you waiting for??

  • I had put a greek keybooard up on my Ipod 5th gen, then changed my password to a greek word, yesterday I took the greek keyboard off and didn't change my password, so I now can't get into my Ipod. If any one could help me that would be grea

    I have an Ipod 5th gen, I added a keyboard which was greek, I had changed my password to a greek short sentence. But the decided to take the greek keyboard off as I didn't use it often, so there was no point in having it. But I forgot to change my password, so I can't enter my Ipod. I've tried to enter the password in English and its not working! I don't really want to restart it all because I will loose everything! If anyone could help that would be great thank you.

    Connect the iOS device to your computer and try to make a backup. Yo shld be able to make a backup if you previously syncing to this computer.
    iOS: How to back up
    Then restore via iTunes. The iOS device will be erased. Place the iOS device in Recovery Mode if necessary to allow the restore.
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store   
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

  • Any One Could Help , Send An Array Throw rmi

    any one help me i have a null Exception whenever i call a method that has the return type String [ ]
    and i can't send a vector as well how can i send a group of elements specially String type
    a method that arise this error when ever i try to access it
    it doesn't even enter it
    public String[] readProviders() throws RemoteException
         return Obj.readProviders();
    i'm are like Modules and i'm sure the problem is in this module
    thnx

    You shouldn't have to do that to fix the bug. In fact changing the type can't fix the bug by itself, it must be some side-effect. You need to find that and implement it directly. Otherwise you have code that works but you don't know why, which is not satisfactory.

  • Hi to everybody, I'm new of the community and I'd like to know if anybody could help me with this issue. I have differente itunes libraries stored in differente hard disks, and I' d like to merge them all in one unique library

    Hi, I' m new of the community and I hope I'm not asking something that has been already discussed. I have different iTunes libraries on different hard disks and I would like to merge them in an unique library - mantaining all the metadata - so that I can use this new one with iTunes Match. Could anybody help me?

    PowerTunes - http://www.fatcatsoftware.com/powertunes/ (commercial software)
    syncOtunes - http://homepage.mac.com/oligrob/syncOtunes/syncOtunes.html
    Alison 1231, your question is not identical to the original poster's so perhaps you could start a new topic with the question since the answers will be different and not apply to the OP's post.

  • Any one can help me in this question i am stuck

    import java.util.Scanner;
    public class JPetWorld
    public static void main (String[] args){
    Pet p = new Pet( "Meow meow", 'F' );
    Scanner sc = new Scanner (System.in);
    System.out.print("Press enter to proceed") ;
    sc.nextLine() ;
    System.out.println("Name: " + p.getName() );
    System.out.println("Gender: " + p.getGender() );
    p.buyAccomodation( "Basket" );
    System.out.println( "Accomodation: " + p.getAccomodation() );
    You are given the Pet class with the following class diagram.
    Pet
    name: String
    gender: char
    hunger: String
    mood: String
    cleanliness: String

    Pet(name: String, gender: char)
    buyAccomodation(accom: String)
    buyFood(num: int): int
    feed()
    playFetch()
    playHideAndSeek()
    bath()
    advanceDay()
    bidFarewell()
    Using the Pet class given, you are required to write the JPetWorld program according to the following requirements.
    a. Declare one integer called foodQuantity presenting the quantity of pet food the owner has. Initialise it to zero.
    b. Choose Pet
    Prompt and read from the user
    - the pet name
    - the pet gender ( a char)
    and create a Pet object using the information entered.
    c. Choose Pet Accomodation
    Prompt and read from the user
    - the type of pet accomodation (sofa or basket)
    Then call the buyAccommodation method of the pet object to buy an accommodation using the information entered.
    d. Buy Pet Food
    Prompt and read from the user
    - the quantity of pet food to buy
    Call the buyFood method of the pet object using the information entered. The buyfood method will return an integer representing the actual quantity of food bought. This is because the shop may not have enough quantity of pet food that the owner wants to buy. Thus the actual quantity may be lesser than the quantity the user intended to buy. Set the foodQuantity variable to the actual quantity of food bought.
    e. Menu
    Write a loop that will loop 10 times. In the loop, do the following:
    - display a menu and prompt as follows:
    Menu
    1. Check pet food quantity
    2. Feed Pet
    3. Play with pet
    4. Bath pet
    5. Advance to next day
    6. Bid farewell and Exit
    Enter choice
    - Read the user input.
    - Choice 1 (Check pet food quantity)
    If the user selects choice 1, display the value of the variable foodQuantity in the following format:
    - Choice 2 (Feed pet)
    If the user selects choice 2, test if the value of the variable foodQuantity is greater than zero. If it is,
    � Call the feed method of the pet object
    � Decrease the foodQuantity variable by 1
    � Display the message �Pet is eating food�slurp, slurp�
    Else,
    � Only display �Not enough food to feed pet!�
    - Choice 3 (Play with pet)
    If the user selects choice 3, display the following submenu and prompt:
    1. Play fetch
    2. Play hide and seek
    Enter choice:
    Read the user input.
    If the owner selects choice 1, call the playFetch method of the pet object.
    If the owner selects choice 2, call the playHideAndSeek method of the pet object.
    - Choice 4 (Bath pet)
    If the user selects choice 4, prompt and read from the owner for the temperature of the bath water.
    If the temperature of the bath water is below 20oC, display �Cannot bath. Too cold!�.
    If the temperature of the bath water is above 40oC, display �Cannot bath. Too hot!�.
    Else, call the bath method of the pet object and display �Pet is bathing�splash, splash!�
    - Choice 5 (Advance day)
    If the user selects choice 5, call the advanceDay method of the pet object.
    - Choice 6 (Bid farewell and Exit)
    If the user selects choice 6, call the bidFarewell method of the pet and then terminate the loop.
    - Other input
    If the user enters any other input, display the message �Invalid choice.�
    thanks.............

    here's a bone to get you started. now that i've done the hard part,
    you should be able to finish the rest.
    public class Pet {     
         private String name;
         private char gender;
         private String hunger;
         private String mood;
         private String cleanliness;
         public Pet(String _name, char _gender){
              name = _name;
              gender = _gender;
         public void buyAccomodation(String accom) {}
         public int buyFood(int num){return 1;}
         public void feed() {}
         public void playFetch() {}
         public void playHideAndSeek() {}
         public void bath() {}
         public void advanceDay() {}
         public void bidFarewell() {}     
    }

  • Hi there, hope somebody could help me with this little issue I am having

    Hi there,
    First of all I want to say that I am very pleased to be part of this community, my name is Juan and I got the following problem:
    When my father tries to dial a mobile phone number (from his blackberry) starting with 32, phone adds a plus sign like if he was actually dialing an international number.
    I mean, if he dials 321 815 5634, we get the following result: +321 815 5634
    Hope someone could give me a clue on how to solve this.
    Thanks in advance,
    Juan

    Hi Juan,
    Welcome to BlackBerry Support Community Forum.
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

  • The query is performing very very slow, can any one please help me tue this

    SELECT h.ROWID row_id, e.preparer_user_id
    FROM arsarc.ars_sv_reconciliation e,
    arsarc.ars_sv_reconciliation_accts a,
    arsarc.ars_sv_acct_status_history h
    WHERE e.rec_id = :b1
    AND e.rec_id = a.rec_id
    AND e.ledger_id = h.ledger_id
    AND a.ccid = h.ccid
    AND e.preparer_user_id <> h.preparer_user_id
    AND h.fiscal_year + h.fiscal_period >= e.fiscal_year + e.fiscal_period
    PLAN_TABLE_OUTPUT
    Plan hash value: 2851427911
    | Id  | Operation                     | Name                           | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT              |                                |    60 |  7740 |  6282  (11)| 00:00:08 |
    |*  1 |  HASH JOIN                    |                                |    60 |  7740 |  6282  (11)| 00:00:08 |
    |*  2 |   INDEX RANGE SCAN            | PK_RECONCILIATION_ACCTS        |   104 |  4160 |     3   (0)| 00:00:01 |
    |   3 |   NESTED LOOPS                |                                |   178K|    15M|  6243  (10)| 00:00:08 |
    |   4 |    TABLE ACCESS BY INDEX ROWID| ARS_SV_RECONCILIATION          |     1 |    23 |     2   (0)| 00:00:01 |
    |*  5 |     INDEX UNIQUE SCAN         | PK_ARS_SV_RECONCILIATION       |     1 |       |     1   (0)| 00:00:01 |
    PLAN_TABLE_OUTPUT
    |*  6 |    TABLE ACCESS BY INDEX ROWID| ARS_SV_ACCT_STATUS_HISTORY     |   178K|    11M|  6241  (10)| 00:00:08 |
    |*  7 |     INDEX RANGE SCAN          | ARS_SV_ACCT_STATUS_HISTORY$LPY | 62094 |       |  5243  (11)| 00:00:07 |
    Predicate Information (identified by operation id):
       1 - access("A"."CCID"="H"."CCID")
       2 - access("A"."REC_ID"=TO_NUMBER(:B1))
       5 - access("E"."REC_ID"=TO_NUMBER(:B1))
       6 - filter("E"."PREPARER_USER_ID"<>"H"."PREPARER_USER_ID")
    PLAN_TABLE_OUTPUT
       7 - access("E"."LEDGER_ID"="H"."LEDGER_ID")
           filter("H"."FISCAL_YEAR"+"H"."FISCAL_PERIOD">="E"."FISCAL_YEAR"+"E"."FISCAL_PERIOD")

    Hi,
    the plan isn't showing any problem (the cost isn't high) so it's not possible to use it to troublehshoot the query. Please provide more information: 4-digit Oracle version, and depending on the version, either SQL real-time monitor report or dbms_xplan output with rowsource stats (option "iostats last" after running your sql with ALTER SESSION SET STATISTICS_LEVEL = ALL).
    Also, when reporting a performance problem it would be wise to avoid expressions like "very, very slow" replacing them with something more useful like "my query is taking 2.5 hours to retrieve 30k rows".
    Best regards,
    Nikolay

Maybe you are looking for