Problem with &amp while sending xml as string to webservice

Hi I am also facing a problem I want to send a string to my sap webservice into the following format
<DATA><STRUCTURE VAL="FLASH"><VALUEPART VAL="40100"></VALUEPART></STRUCTURE><STRUCTURE VAL="FLEX"><VALUEPART VAL="2000"></VALUEPART></STRUCTURE></DATA>
But whenever I am sending this string to my webservice in webservice it is reading this data like
&amp;lt;DATA&gt;&amp;lt;STRUCTURE VAL="FLASH"&gt;&amp;lt;VALUEPART VAL="40100"&gt;&amp;lt;/VALUEPART&gt;&amp;lt;/STRUCTURE&gt;&amp;lt;STRUCTURE VAL="FLEX"&gt;&amp;lt;VALUEPART VAL="2000"&gt;&amp;lt;/VALUEPART&gt;&amp;lt;/STRUCTURE&gt;&amp;lt;/DATA&gt;
Please help me to solve the problem .

Thanks for your reply but now I am using escape(srting) and server side script reading it as
%3CDATA%3E%3CSTRUCTURE%20VAL%3D%22FLASH%22%3E%3CVALUEPART%20VAL%3D%2240100%22%3E%3C/VALUEP ART%3E%3C/STRUCTURE%3E%3CSTRUCTURE%20VAL%3D%22FLEX%22%3E%3CVALUEPART%20VAL%3D%222000%22%3E %3C/VALUEPART%3E%3C/STRUCTURE%3E%3C/DATA%3E
I have to send this as
<DATA><STRUCTURE VAL="FLASH"><VALUEPART VAL="40100"></VALUEPART></STRUCTURE><STRUCTURE VAL="FLEX"><VALUEPART VAL="2000"></VALUEPART></STRUCTURE></DATA>
any other option ?

Similar Messages

  • Problem with session while sending a multipart-form (a file via post)

    I have a problem with the communication between my applet and my server. I use a method to post an xml to my server with the Content-Type "application/x-www-form-urlencoded" and with it I'm not having any problem to preserve the session.
    However I use another method I found in the forums to post files and try to adapt it, but I'm being send from the server to the login page because it's not recognizing my session
    Can anybody help me? This is my method
    public String uploadFile(String adr, BufferedImage img) {
            String res = "";
            String CONTENT_BOUNDARY = "--abvx98734732";
            String s;
            File f = null;
            URL url;
            URLConnection conn;
            try {
                url = new URL(adr);
                conn = url.openConnection();
                conn.setDoOutput(true);
                conn.setRequestProperty("Content-Type",
                        "multipart/form-data; boundary=" + CONTENT_BOUNDARY);
                conn.setRequestProperty("file-Name", "process_image.jpg");
                DataOutputStream wr = new DataOutputStream(conn.getOutputStream());
                wr
                        .write(("--"
                                + CONTENT_BOUNDARY
                                + "\r\n"
                                + "Content-Disposition: form-data; name=\"fileData\"; filename=\""
                                + "process_image.jpg" + "\"\r\nContent-Type: image/jpg\r\n\r\n")
                                .getBytes());
                ImageIO.write(img, "jpg", wr);
                wr.write(("\r\n--" + CONTENT_BOUNDARY + "--\r\n").getBytes());
                wr.flush();
                BufferedReader in = new BufferedReader(new InputStreamReader(conn
                        .getInputStream()));
                while ((s = in.readLine()) != null) {
                    res += s;
                in.close();
            catch (MalformedURLException muo) {
                muo.printStackTrace();
            catch (IOException io) {
                io.printStackTrace();
            return res;
        }This is how I preserve session in my other method:
    private static final String SESSION_KEY = "_session_id";
    URLEncoder.encode(SESSION_KEY, "UTF-8") + "=" +
    URLEncoder.encode(sessionId, "UTF-8");
    wr.writeBytes(content);
    ....

    Yes, the only way is to pass the value u want in the query string. But make sure that the value is not too large.
    In case you have too much info i guess the only way is to circumvent multipart and handle the process in your own custom class, which wont be worth the effort if u need pass only 2-3 small parameters.
    Always,
    Leo.
    Hi,
    Before I upload a file, I want to get a few parameter
    values (getParameter) on the form first. I've tried
    using com.oreilly.servlet MultipartRequest and a few
    other free servlets but they require that the file
    must to be uploaded first. For example:
    MultipartRequest multi = new
    MultipartRequest(request,filepath, 10*1024*1024);
    //this will instantiate the object and upload the
    file
    String command = multi.getParameter("command"); //get
    the form parameter
    Is there any way I can get the parameter first before
    uploading the file? I truly appreciate any helps you
    can provide me.
    Regards,
    Lily

  • TS3276 I receive a pop up from ICal saying the server does not recognize me user name and password.  This started yesterday.  I have no problems with receiving or sending emails through Mail

    I receive a pop-up from ICal saying the server does not recognize my user name and password for my me.com email address.  This started yesterday and occurs about every 5 minutes or so.  There are no problems with receiving or sending email through Mail.  I did change me email password several days ago but have no problems sending/receiving since then.

    I fixed the problem.  I opened Preferences in ICal and entered my new password.  No more pop-ups

  • Compilation problem with templates while using option -m64

    Hi,
    I have compilation problem with template while using option -m64.
    No problem while using option -m32.
    @ uname -a
    SunOS snt5010 5.10 Generic_127111-11 sun4v sparc SUNW,SPARC-Enterprise-T5220
    $ CC -V
    CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
    Here is some C++ program
    ############# foo5.cpp #############
    template <typename T, T N, unsigned long S = sizeof(T) * 8>
    struct static_number_of_ones
    static const T m_value = static_number_of_ones<T, N, S - 1>::m_value >> 1;
    static const unsigned long m_count = static_number_of_ones<T, N, S - 1>::m_count + (static_number_of_ones<T, N, S - 1>::m_value & 0x1);
    template <typename T, T N>
    struct static_number_of_ones<T, N, 0>
    static const T m_value = N;
    static const unsigned long m_count = 0;
    template <typename T, T N>
    struct static_is_power_of_2
    static const bool m_result = (static_number_of_ones<T,N>::m_count == 1);
    template <unsigned long N>
    struct static_number_is_power_of_2
    static const bool m_result = (static_number_of_ones<unsigned long, N>::m_count == 1);
    int main(int argc)
    int ret = 0;
    if (argc > 1)
    ret += static_is_power_of_2<unsigned short, 16>::m_result;
    ret += static_is_power_of_2<unsigned int, 16>::m_result;
    ret += static_is_power_of_2<unsigned long, 16>::m_result;
    ret += static_number_is_power_of_2<16>::m_result;
    else
    ret += static_is_power_of_2<unsigned short, 17>::m_result;
    ret += static_is_power_of_2<unsigned int, 17>::m_result;
    ret += static_is_power_of_2<unsigned long, 17>::m_result;
    ret += static_number_is_power_of_2<17>::m_result;
    return ret;
    Compiation:
    @ CC -m32 foo5.cpp
    // No problem
    @ CC -m64 foo5.cpp
    "foo5.cpp", line 20: Error: An integer constant expression is required here.
    "foo5.cpp", line 36: Where: While specializing "static_is_power_of_2<unsigned long, 16>".
    "foo5.cpp", line 36: Where: Specialized in non-template code.
    "foo5.cpp", line 26: Error: An integer constant expression is required here.
    "foo5.cpp", line 37: Where: While specializing "static_number_is_power_of_2<16>".
    "foo5.cpp", line 37: Where: Specialized in non-template code.
    "foo5.cpp", line 20: Error: An integer constant expression is required here.
    "foo5.cpp", line 43: Where: While specializing "static_is_power_of_2<unsigned long, 17>".
    "foo5.cpp", line 43: Where: Specialized in non-template code.
    "foo5.cpp", line 26: Error: An integer constant expression is required here.
    "foo5.cpp", line 44: Where: While specializing "static_number_is_power_of_2<17>".
    "foo5.cpp", line 44: Where: Specialized in non-template code.
    4 Error(s) detected.
    Predefined macro:
    @ CC -m32 -xdumpmacros=defs foo5.cpp | & tee log32
    @ CC -m64 -xdumpmacros=defs foo5.cpp | & tee log64
    @ diff log32 log64
    7c7
    < #define __TIME__ "09:24:58"
    #define __TIME__ "09:25:38"20c20
    < #define __sparcv8plus 1
    #define __sparcv9 1[snipped]
    =========================
    What is wrong?
    Thanks,
    Alex Vinokur

    Bug 6749491 has been filed for this problem. It will be visible at [http://bugs.sun.com] in a day or two.
    If you have a service contract with Sun, you can ask to have this bug's priority raised, and get a pre-release version of a compiler patch that fixes the problem.
    Otherwise, you can check for new patches from time to time at
    [http://developers.sun.com/sunstudio/downloads/patches/]
    and see whether this bug is listed as fixed.

  • Problem with user-defined functions in XQuery String

    hello
    i've a problem with user-defined functions in XQuery String
    details are here (the code is not Human-readable via forum's embedded editor ?? strange)
    http://docs.google.com/Doc?id=ddqwddsr_21c96d9x
    thanks !!

    See
    michaels>  select xmlquery('declare function local:test_function($namecmp as xs:string?, $inputtype as xs:string?) as xs:string?      
                        return {$inputtype}
                     local:test_function("1","2")' returning content) o from dual
    Error at line 5
    ORA-19114: error during parsing the XQuery expression:
    LPX-00801: XQuery syntax error at '{'
    3                       return {$inputtype}
    -                              ^
    michaels>  select xmlquery('declare function local:test_function($namecmp as xs:string?, $inputtype as xs:string?) as xs:string?      
                        $inputtype
                     local:test_function("1","2")' returning content) o from dual
    O   
    2   
    1 row selected.

  • Hello. I have problem here can someone plz help. I have usb of 32 gb but i have problem with it while i was trying to partition of it and it fails and my usb disappear from finder and desktop i have tried every possible thing but nothing  works .

    Hello. I have problem here can someone plz help. I have usb of 32 gb but i have problem with it while i was trying to partition of it and it fails and my usb disappear from finder and desktop i have tried every possible thing but nothing  works .

    Yea i tried in disk utility and its got faiiled and the partitation has deleted and when i tried  to replug the  usb  msg show up by saying  usb not compaitnle. With this mac  and  take me to disk utility  and thanks for replying

  • Can anyone please help me, I'm having problems with sound while watching video clips using flash player using Internet Explorer\

    Can anyone please help me, I'm having problems with sound while watching video clips using flash player & Internet Explorer

    There's a good chance that this is a known issue.  We'll have a Flash Player 18 beta later this week that should resolve this at http://www.adobe.com/go/flashplayerbeta/

  • I am facing lots of problems with security while using Mozilla. How can I send you a detailed report for this?

    I am getting redirected to unknown sites whenever I open any site while using mozilla. Initially I thought that there is a problem with my device, but then I realized that this happens only when using mozilla, not with other browsers like chrome, IE, or opera.
    These sites are mainly having the message 'Ad by ShopDrop'..
    I am pasting below links to few sites to which I get redirected to
    http://offers.bycontext<i></i>.com/scjs/tb/ctxjs/index<i></i>.php?kw2=www.espncricinfo<i></i>.com&affid=1151&subaff_id=725_724&intformat=roll&nextpage=http%3A%2F%2Fwww.espncricinfo<i></i>.com%2F&ch=421&sbrand=ShopDrop&folder=v4.19&typrd=ctx&cu=32929&country=IN&original_country=IN
    http://add0n<i></i>.com/fastest-gmail.html?v=0.1.6&p=0.1.5&type=upgrade

    hello, you have various malicious addons present. please perform all these steps:
    # [[Reset Firefox – easily fix most problems|reset firefox]] (this will keep your bookmarks and passwords)
    # afterwards go to the firefox menu ≡ > addons > extensions and in case there are still extensions listed there, disable them.
    # finally run a full scan of your system with different security tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] and [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner] to make sure that adware isn't present in other places of your system as well.
    [[Troubleshoot Firefox issues caused by malware]]

  • Mapping: Problem with Namespaces while testing

    Hello,
    can anyone tell me what's the thing with the namespace in xml-messages for testing?
    My problem is the following: I have exported a test-xml-file from a mapping in another namespace (where everything is correct) and now i want to import this xml-file in my new mapping (another namespace).
    I found out that i have to change the given "xmlns:ns" attribute from the original namespace to the software component version (!!!), in which my new mapping is. Otherwise the file can't be imported correctly in my new mapping.
    Can you tell me the cause for this curious case, so that i don't have to search for my problem the next time...?
    Thanks in advance,
    best regards, Leo

    Hi Suraj,
    Your answer is not quite plain to me, sorry.
    Perhaps you can tell my with an example. My original xml looks like the following:
    <?xml version="1.0" encoding="utf-8"?>
    <ns:VDA490500 xmlns:ns="http://mynamespace.com/basis">
    <S511>
      <SATZART>511</SATZART>
      <VNR>02</VNR>
      <KNDNR>1234</KNDNR>
    </S511>
    <S519>
      <SATZART>519</SATZART>
    </S519>
    </ns:VDA490500>
    Now the namespace of my new mapping is another, and i only accomplished my problem by changing it to
    <?xml version="1.0" encoding="utf-8"?>
    <ns:VDA490500 xmlns:ns="<b>NewSoftwareComponentVersion</b>">
    <S511>
    All other trials didn't work.
    Can you show me what you meant, and perhaps can you tell me why?
    Thank you,
    Leo

  • Problem with interface - when send the data for PA0002

    Hi Gurus,
        I am interfacing employees data from one system to another system  with all the PA infotypes.
    we are using the fuction module " HR_MAINTAIN_MASTERDATA " to upload the master data. Here the problem is, when we send the data - in destination system all the segments have the data correctly . But middle name is not loaded in to the system. Problem with only middle name.
    But, here strange thing is, when i resend the idocs it is laoded correctly all the fields with middle name also.
    I am unable to figure out the problem .. Please let me know if you have any advise on this ..
    Thanking you.
    Regards,
    Giridhar Pujari

    Hi Sikindar,
       Technical name is corrent .. and once you resend the idoc, you can't see the problem again.
    Regards,
    Giridhar Pujari.

  • Im having problems with Photobucket..sending my customized photos to friends on myspace. They claim it works for them But the albums freeze and i cannot send HELP...

    problem with photobucket..When i get ready to send out comments to myspace from my customized albums..it freezes and im not able to send. They say it works for them and gave me a long line of things to do..I have attempted that..it still doesnt work..Im aggravaded beyond belief..

    THANK YOU SO MUCH stussaar!
    My Mother did what you said for the Spam and my number was in there about 100 times. She deleted all them. Deleted me as a contact and then rebooted, then she text me and I text her back and I went right into the Spam again. I told her to tell TMobile this so then can maybe help and remove my number from Spam on their end.\
    Thanks you so much! you got us 99.999 % the way there!!
    I appreciate your help!!!!  I hope this worked also for your problem!!
    Thanks again!!!
    Mike

  • Facing problem with SOAMANAGER while working on ABAP Client Proxy

    Dear Community Friends & Experts,
                 I am facing a problem with the SOAMANAGER, I think so. Let me explain you a scenario what I am into:
    The scenario is like I need to Push data from BI table to SAP PI. We decided to go using ABAP client proxy as Sender and then will
    receive it using FTP adapter to FTP address.
    I have created Integration repository design object Data types, Message types, interfaces and mapping. Now I am into SAP BI and running SPROXY and generated proxy for my outbound interface. fine.
    Till now its okay.Now I wanna my generated proxy to be available within the SOAMANAGER T-code I am not able to find my proxy in the list.
    Can anybody send me detailed steps for outbound proxy to SOAMANAGER for creating local port for proxy. I wanna use proxy with WS adapter.
    Second Query:
    I need to using RSPC in SAP BI to trigger the proxy what code to write with SAP PI 7.0 version.
    Can anybody bring some light to this problem...
    <h5>Regards,
    Gaurav Patwari </h5>

    Dear Experts,
    Problem solved, cannot say solved but yes its not required now as I am having Client Proxy call so it will be a native call to XI and which does not need SOAMANAGER things.
    Thank you all for taking your time and writing answers.
    Regards,
    [Gaurav Patwari|http://gauravpatwari.wordpress.com]
    Edited by: GauravPa on Apr 17, 2010 11:32 AM

  • Problems with masks after sending sequence back from SpeedGrade to Premiere (CC)

    Hello,
    I'm colour grading a clip in SpeedGrade  CC using the new direct link function. For the colour grading I used  different layers and also masks. Once I'm done I sent my sequence back  to Premiere Pro CC.
    I see, Premiere shows me exactly the colour correction I did in SpeedGrade except of one thing:
    The places where I used masks in SpeedGrade to light them for instance a bit up are now full of pixeled lines...
    I thought it's just a problem with the Preview, so I exported it. The pixeled lines stayed.
    Again: In SpeedGrade is everything fine, but when I'm sending the sequence back to Premiere there are these pixels.
    It's  really irritating because one day before it worked very good without  any problems and I was practically doing the same as now.
    Please help me, if you can! Thank You!

    Thank you but my masks are not animated. Premiere just can't reflect the colour correction I did for these masks. Here's an example...on the right edge I created a mask in SpeedGrade. And that's what Premiere is showing me when I send the sequence back from SpeedGrade to it:
    Does anybody know the solution?

  • HT4623 is anyone else having problems with receiving and sending text messages. most people in my contacts are not getting messages that i send to them.

    is anyone else experiencing problems with (SMS) text messaging. Most all of my daily contacts dont receive my messages.

    Make sure you have checked off iCloud contacts in your Contacts app under Groups in upper left corner.

  • Problems with flash photo-gallery xml

    Hello,
    I need help. I have bought your photogallery template and i
    am having problems with it.
    When i test the gallery on my portfolio website (html) all it
    comes up is the background, the pictures and thumbnail pictures
    wont load. I am putting the files in the right folder and using the
    swf in an html (dreamweaver cs3). what is it happening?
    I dont know xlm. Plz give me a hand??
    Thanks

    Hi DZ,
    I am testing it locally. I didn't even upload anything yet.
    And yes, i put the swf into my html portfolios page (dreamweaver
    cs3) and tested locally. the pictures wont show up, only the bg for
    the photo-gallery. I bought this template here at the
    exchange

Maybe you are looking for

  • Blackberry World thinks I need to update Apps that are already up-to-date. (Infinite Update Loop)

    Hello,  I have been having trouble with Blackberry World.  It states that I have apps that need updating, but I already have the most recent update of these apps.  In addition, BBW states that I need updates for apps that I no longer have installed o

  • Why do some .mp3 files not appear in iTunes yet play in other players?

    I am running iTunes 6.0.4.2 and use it as my default player in Windows. I have noticed that sometimes I cannot add some .mp3s to my library (they don't appear at all), yet I can play them without problem in Windows Media Player. This is true of both

  • Combobox Renderer in JTable

    Can someone please post code showing me how to make a renderer that would indicate a combobox in a JTable? I already have the combobox editor there, but I want the renderer to show a small down arrow, indicating to the user that the cell is a combobo

  • Setting up the development environment

    hi, can anybody suggest the best way to set up the weblogic server development environment. we are a group of 5 EJB developers working on weblogic 7.0. (evaluation version) each one is developing ejbs which has to interact with other developer's bean

  • Vendor compliance codes fail to write off - can any please reply ASAP

    Hi All, Vendor compliance reason codes are failing to write off. Changes were made to the GL's and material. Codes involved in change-VCA,VCB,VCP, WVC. Does anyone know why this is happening and if you do let me know what has to be done about it. Tha