Could I get result in xml from webservice (my client is java application)?

Hi,
I have a client which is a java application to call to my existed webservice and webservice return object result is okie. But I would like to get the result which is wrapped in xml file, not object? Can webservice do that? (If not, I have to wrap the result in xml by hand).
Anyone who know please help me. Very urgent, I have to have answer in 1 day.
Thank in advance.

The result when we call to my webservice is an object which contain data, I don't want to get this object, I would like to gain an equivalent xml instead of object ( I don't know if webservice support this).
Yes, the last way is convert result java object to xml. But I think web service should support get xml results because client call to webservice is whatever, right?

Similar Messages

  • How to get result of Select from stored function.

    I need to get result of select from a stored function.
    In the end of my stored function I makes final select (four columns).
    How it can be retrived from function?

    Hi,
    A function can only return one value, but it sounds like you want to return 4 values.
    The one value that you return can be a record, with many columns, such as a ROWTYPE, or a TYPE that you define.
    You can return an XMLTYPE that has whatever elements you want.
    You can write a procedure that has several OUT parameters. (You can have OUT parameters in a function, but a lot of people find that confusing.)
    In very special circumstance, you might consider returning a string that is a delimited list of values, such as '7639,SMITH,,17-DEC-1980'.
    Someoneelse has a good point.
    We could give a better answer if you ask a specific question, like:
    "I have this table ...
    I want a function such that, if I call it with these parameters ... I get ...
    but if I call it like this ... then I get ..."

  • Decode an XML from WebServices

    Hello ! :
    I need to do an application in Java. This application will receive and XML from WebServices.
    But, I never did anything like that. So,I have some questions about this :
    1- The webservice will return the execution of an RFC, so, how get Java this XML Code that contains the information of the parameters and tables? With tags?.
    2- How i can traduce this xml code / tags, for example, to print a grid with the information received of the table parameter?
    3- Will you have an example of xml that comes from a webservice or rfc?
    As you can see.. i really need your help.
    Sorry about my english and  thanks for reading.
    Bye!

    Hi,
    For instance, here I have used BAPI_BANK_GETLIST. I generated a WSDL, then I did a "loopback" by generating a client proxy so that to know how to call it, started the ICF recording (SICF), tested the proxy, and I obtain that:
    Request:
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
      <soap-env:Header>
        <n0:Trace xmlns:n0="http://www.sap.com/webas/630/soap/features/runtime/tracing/">
          <TraceLevel xmlns="http://www.sap.com/webas/630/soap/features/runtime/tracing/">Error</TraceLevel>
        </n0:Trace>
      </soap-env:Header>
      <soap-env:Body>
        <nr1:BankGetlist xmlns:nr1="urn:sap-com:document:sap:soap:functions:mc-style">
          <BankCtry>FR</BankCtry>
          <BankList></BankList>
          <MaxRows>0</MaxRows>
        </nr1:BankGetlist>
      </soap-env:Body>
    </soap-env:Envelope>
    Response:
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Body>
      <n0:BankGetlistResponse xmlns:n0="urn:sap-com:document:sap:soap:functions:mc-style">
        <BankList>
          <item>
            <BankCtry>FR</BankCtry>
            <BankKey>1234567890</BankKey>
            <BankName>AAAAAAAAAAAAA</BankName>
          </item>
        </BankList>
        <Return>
          <Type></Type>
        </Return>
      </n0:BankGetlistResponse>
    </soap-env:Body>
    </soap-env:Envelope>
    Sandra

  • Decode XML from WebServices

    Hello ! :
    I need to do an application in Java. This application will receive and XML from WebServices.
    But, I never did anything like that. So,I have some questions about this :
    1- The webservice will return the execution of an RFC, so, how get Java this XML Code that contains the information of the parameters and tables? With tags?.
    2- How i can traduce this xml code / tags, for example, to print a grid with the information received of the table parameter?
    3- Will you have an example of xml that comes from a webservice or rfc?
    4- Where do I get the information that is contained in the tables and parameters?
    As you can see.. i really need your help.
    Sorry about my english and thanks for reading.
    Bye!

    Your questions are confusing. Can you simply say what  needs to be done ?
    Edited by: Hussain Sehorewala on Sep 4, 2011 1:26 PM

  • Security Agent: Could not get the user record from OpenDirectory

    Hi,
    Two months ago I had to change my SSD due to a damage at the old one. In the Apple shop they installed OS X Lion with a image from their image-server.
    After that the Mac was quite slow in booting. With the old SSD (128 GB) booting takes 25 sec now it takes 75 sec.
    I tried different things to solve the problem without result. First I asked in the shop, then I googled the problem all with no real solution.
    Today now I searched in the log files. I found the following:
    09.02.12 11:03:07.861 SecurityAgent: Could not get the user record from OpenDirectory.
    09.02.12 11:03:07.861 SecurityAgent: Will sleep 3 seconds and try again (retryCount = 10)
    09.02.12 11:03:34.907 SecurityAgent: Could not get the user record from OpenDirectory.
    09.02.12 11:03:34.907 SecurityAgent: Will sleep 3 seconds and try again (retryCount = 1)
    09.02.12 11:03:34.907 SecurityAgent: Will sleep 3 seconds and try again (retryCount = 1)
    09.02.12 11:03:38.653 WindowServer: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    09.02.12 11:03:58.245 SecurityAgent: User info context values set for andi
    09.02.12 11:03:58.246 SecurityAgent: User info context values set for andi
    09.02.12 11:03:58.356 SecurityAgent: Login Window login proceeding
    09.02.12 11:03:58.356 SecurityAgent: Login Window login proceeding
    This operation takes 30 secs during the boot process. Can somebody help me, to solve this problem?
    Regards
    Andreas
    MacBook Pro, Mid 2009
    2.66 GHz Intel Core 2 Duo
    8GB 1067 MHz DDR3
    SAMSUNG SSD 830 Series , 256 GB
    OS X 10.7.3

    cece2bali wrote: "it seems that your mac tries to connect to a server while booting. This action will erase all your network configuration..."
    Where can I go to learn more about this 'erasure' of network configuration if the mac tries to connect to a server while booting?
    I get the same error message as the OP. My account is an Admin on the machine. It's configured to automatically log in on boot -- except sometimes it fails. It has a login-item which runs a bash script that makes an https request to a nearby machine. Maybe I should make this script sleep a while so the https action happens after the boot sequence is done? (unlike SmashHuevo, my user needs to be an Admin)

  • My cable doesn't work after two months I bought my iphone 6. Whether could I get a new one from apple free charge?

    my cable doesn't work after two months I bought my iphone 6. Whether could I get a new one from apple free charge?

    It's covered under the same warranty as the phone. So long as it's not physically damaged, they should replace it for you.

  • How the client machine could to get the combo update from SUS?

    Hi everybody!
    How the client machine could to get the combo update from SUS? My SUS working for clients comp and showing the Mac OS X 10.6.5 Update - not Combo Update (Combo Update downloaded also and I can see it in Server Admin)! But I would like to install the Combo Update - is it possible? How I can get the Combo Update if it is not shown in the list?
    Thank you in advance!

    You can download the Combo manually from Apple.
    http://support.apple.com/kb/DL1324
    http://support.apple.com/downloads/DL1324/en_US/MacOSXUpdCombo10.6.5.dmg

  • "Could not get the audio data from the file" error

    Hi
    I get a lot of "Could not get the audio data from the file" errors when opening a project. Sometimes they crash Premiere Pro CC 7.01 (Mac). But if not Premiere works as usual, with the audio.
    I tried to convert the audio files (coming from Audition) from 32 to 16 bit. It worked while opening a project once, but not the following times.
    Where can it come from ?
    Edit: I also get this error when importing audio: "Error: Premiere Pro version 7.0 is not compatible with the Premiere Pro Plug-in version 5.7.4". Maybe it is connected.

    Got it! It was the Smartsound plugin making trouble. Got rid of it and no more errors.

  • Installing BDB XML and including it into a java application

    Hi there :)
    I'm new to BDB XML and I've got some questions about it :
    1/ The documentation says about BDB XML that it is based on BDB. Does it mean that I need to install the standard BDB first to use BDB XML ? (I'm pretty sure I don't have to but I would like a confirmation =))
    2/ I want to developp a web application which will use BDB XML. The documentation says I need to add some jars into my project to use it but do I need to install it on my computer (Windows XP) first ? (with the .msi file ?)
    3/ Where will the xml files be physically stored after I add them into the database ? (what is the default database folder on the hard disk ?)
    Thank you for you help :)
    Regards,
    Gary

    Hi Gary,
    1) You need to install only DB XML. BDB is bundled with DB XML, so you don't have to worry.
    2) Yes, you need to add two jars: db.jar and dbxml.jar. But these jars depend on native DB XML libraries, so you will have to install DB XML anyway: only jars wouldn't be sufficient. Moreover, I would recommend to install DB XML from sources providing the --enable-java+ flag to the buildall.sh script
    3) All XML files will be stored in a container or containers (depending on how many of those you will decide to utilize in your application). It is up to you where you are going to reside DB XML environment/containers -- DB XML is quite low-level XML-database.
    Hope this helps,
    Vyacheslav

  • Extracting XML from webservice result with Namespaces using E4X

    Hi,
    I need to extract some data from proprietary Web Service (to be fed to HierarchicalData for dataProvider of ADG).
    So I made service.returnType=’e4x’;
    In that case it returns data as XML.
    I need to get useful data from it after Snapshot:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header xmlns:msdwHdr="http://xml.msdw.com/ns/appmw/soap/1.0/header">
    <msdw:RequestID xmlns:msdw="http://xml.msdw.com/ns/appmw/soap/1.0/header">restsoap#1390182244050#197728273958044232</msdw:RequestID>
    <msdwHdr:FinalMessage>true</msdwHdr:FinalMessage>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <ADSSnapshotResponse xmlns="http://xml.ms.com/ns/appmw/dataserver/1.0">
    <Snapshot seqNo="0">
    <BASE_ELEMENT_NAME BASE_ELEMENT_NAME="4.11.2.0">
    Using E4X, like:
    var root:XML = event.result as XML; //good!
    var xmlRoot1:XMLList = root['SOAP-ENV:Body'].ADSSnapshotResponse.Snapshot.BASE_ELEMENT_NAME;
    it does return XMLList (tried different variants), but debugger shows nothing at all inside that XMLList.
    var root1:XMLList = root.children();  // that returns valid XMLList with 2 XML elements inside
    But all other data I could not get if I use any E4X:
    Can I skip Envelope, going to Body as one of its children?  suppose I can...
    a) root.SOAP-ENV:Body would give compilation errors because of ‘-‘, ‘:’
    b) root.Body gives blank XMLList
    c) root.Body[0] returns NULL  
    Any idea how to extract the load from ADS Response (envelope)?
    What can I do regarding XML Namespaces in E4X ?
    If I set service.returnType="xml" it returns data as XMLNode's.
    But I prefer to use E4X if possible.
    Please help!
    TIA,
    Oleg.
    P.S.: using Flex 4.5.1 with Flex3 ADG.

    not an implementable option for us and cost prohibitive.

  • GET, Modify, POST XML from Web Service Requests (Webtests)

    I'm using load testing to exercise an API, so I'm creating many small webtests which mimic typical user operations.  One of my operations will be a GET of transaction data and a PUT of that same data, slightly modified.
    I'm able to capture the response from the GET in an extraction rule and resubmit to the API, the question is how to manipulate the XML so that there's a small typical edit.   What's the best way to do this?  
    I understand the nature of the web test plug-ins, as the "cartilage" around the bones of the webservice requests.  I would much rather angle towards a plugin than convert to a coded test and modify that way.  I like the normal non-coded
    test interface but I dont know that the webtest plugin nor webtest request gives me the granularity the coded webtest does.  Unfortunately, I dont like the fact I can't easily debug through the coded webtest.
    This seems like a straightforward operation. Do I understand all my options? How would you do this?

    On further review, I might have figured this out.  I misunderstood something I read online.  The web test request plug-ins can be associated with an individual service call and aren't automatically applied to all service calls in a web performance
    test collection.
    .. I can do something like this to access my captured context information and manipulate the XML via XDocument/XElement.   - This demonstrates how to get my captured {{ResponseDocument}} from the extraction rule.
        public class XmlModification : WebTestRequestPlugin
            public override void PreRequest(object sender, PreRequestEventArgs e)
                MessageBox.Show(e.WebTest.Context["ResponseDocument"].ToString());
    Difficile est tenere quae acceperis nisi exerceas

  • How could I get the Finish10 value from MS Project2010 Server_Reporting database

    I am trying to get the finish10 data from project server using SQL.
    But it seems the finish10 column is not in MSP_EpmAssignment_Userview or MSP_EpmTask_Userview.
    So could you please help me to find it?
    Thanks.

    Hi,
    try to extract information from MSP_EpmTaskBaseline.
    This is Sql query
    SELECT MSP_EpmTask_UserView.TaskName, MSP_EpmTaskBaseline.TaskBaselineFinishDate, MSP_EpmTaskBaseline.TaskBaselineStartDate,
    MSP_EpmTaskBaseline.BaselineNumber
    FROM MSP_EpmTaskBaseline INNER JOIN
    MSP_EpmTask_UserView ON MSP_EpmTaskBaseline.TaskUID = MSP_EpmTask_UserView.TaskUID
    WHERE (MSP_EpmTaskBaseline.BaselineNumber = 10)
    if doesn't work try to rebuild your reporting database.
    Hope this help you.
    Jalal Blali MCTS, MCITP
    Thanks for the help, but I'm trying to extract columns named [finish10], not [baseline1 ~10 finish].

  • Displaying a Message from PL/SQL block to Java Application

    Hi
    How can One display or populate a message in Java Application, that is generated from a PL/SQL block?

    Well, the easiest option would be to have a "message" parameter that gets passed back from the PL/SQL block to the calling Java application.
    I'm guessing, though, that you wouldn't be asking the question if the easy solution was a viable option... If that's the case, you're going to have to describe the problem in a bit more detail...
    Justin

  • SSO from SAPJ2EE to Non-SAP Java Applications

    Hello,
    does anybody know, if there is a newer version of MySapSsoSupport-0.5.tar.gz
    This enables Single Sign-On from SAP J2EE Engine/EP to Non-SAP Java Applications.
    Thanks in advance.
    Guenter

    Hi Guenther
    I am not aware of this MySapSsoSupport package. As far as I am aware the only supported scenarios for SSO to non-SAP Systems are listed here:
    http://help.sap.com/saphelp_nwpi71/helpdata/de/12/9f244183bb8639e10000000a1550b0/content.htm

  • Oracle ADF Mobile getting array of objects from webservice

    hi,
    i am trying to fetch a certain number of records using a webservice call and then storing in the SQLLite DB in the mobile.
    i understand i can create a data control using the webservice > then?
    my webservice returns an array of objects.
    how can i do that?
    regards,
    ad

    It's fairly easy.
    What I have done is created a WebService Controller (plain java class) which calls the methods (from the WS) programmaticly.
    Example :
    public class WSController {
        private final String WSDataControllerName = "ThisIsTheNameOfMyWebserviceDataControl";
        private List pnames ,ptypes ,params;
        public WSController() {
            super();
        public List getAllActioncodesFromWS()
           //start - WS empty params
            pnames = new ArrayList();
            params = new ArrayList();
            ptypes = new ArrayList();
            pnames.add("findCriteria");
            params.add(null);
            ptypes.add(Object.class);
            pnames.add("findControl");
            params.add(null);
            ptypes.add(Object.class);
            //end - WS empty params
            List actionCodes = new ArrayList();
            try
                GenericType result = (GenericType)AdfmfJavaUtilities.invokeDataControlMethod(WSDataControllerName, null, "findActioncodesView1",pnames, params, ptypes);
                if(result!=null)
                    for (int i = 0; i < result.getAttributeCount(); i++)
                        GenericType row = (GenericType)result.getAttribute(i);
                        Actioncode wd = (Actioncode)GenericTypeBeanSerializationHelper.fromGenericType(Actioncode.class, row);
                        actionCodes.add(wd);
            catch (AdfInvocationException e)
                e.getMessage();
            catch (Exception e)
                e.getMessage();
         return actionCodes;
        }I also defined a Pojo named Actioncode :
    Note that the attribute names are completly the same as the VO from the web service.
    public class Actioncode {
        String Actioncode,Descript1;
        public Actioncode() {
            super();
        public Actioncode(String Actioncode, String Descript1) {
            super();
            this.Actioncode = Actioncode;
            this.Descript1 = Descript1;
        public void setActioncode(String Actioncode) {
            this.Actioncode = Actioncode;
        public String getActioncode() {
            return Actioncode;
        public void setDescript1(String Descript1) {
            this.Descript1 = Descript1;
        public String getDescript1() {
            return Descript1;
    }Since the WS method returns a GenericType, you can 'convert' that object to an POJO.
    Read more about it here :
    http://adf4beginners.blogspot.be/2013/01/adf-mobile-how-to-iterate-over-all-rows.html
    I know the blog post is about iterating over rows in an iterator, but it's just to illustrate how you can work with the GenericType

Maybe you are looking for

  • Network Cable Unplugged when chaning power outlet

    Im on a T60 running XP version 2.10.  When I connect to AC power when switching from one power outlet to another power outlet I get "Network Cable Unplugged." It disconnects and connects back to the network.  This wouldnt be a big deal but when it ha

  • IPhone not removing played podcasts during sync(using the unplayed feature)

    Hi folks, I listen to a lot of podcasts. When I used an iPod the sync unplayed option. Once I listened to a podcast it was removed (saving space for more podcasts). With my iPhone I've got the options set up correctly (i.e. set at Sync Unplayed) but

  • Date filter not reading dates correctly

    I've noticed that since Bridge CS5 came out, the filter on date is not working correctly. For example,I'm looking at a series of images that I captured today (Sept 7th), and the date shown in the metadata panel of Bridge ays "Today". Yet, the Filter

  • Mac mini server, Snow Leopard, Linksys E4200, 802.11n

    Hi, I have mac mini server and wifi router linksys e4200. Something goes wrong after software update on mac mini. For clarify I updated a firmware on E4200 too but I think that is not a problem. Now I can't get full speed from 802.11n mode. My downlo

  • CSa and MS Exchange

    In the CSA Whitepaper the list there being a Pre Canned Policy for Exchange, however I don't see this listed in my lists of policies. Does anyone have any recommendations for what policy elements should be included for a Exchange 2003 installation Th