How to access a nested child tag values in  XML Object(getting error:No Such variable)

Hi,
I could see the XML object data and while accessing a perticular attribute let say "SlotA"  it is showing "No such variable Error".
I appreciate any of your  inputs or suggestions to solve this error.
You can find the screen snapshot of the problem as part of the attachment here.
Thanks in advance
CSNPrasad.

Dear Natasha,
Thanks for your mails & cooperation as well.
This time i  have added the trace() and can see the value.Now the problem is "can't access a property or method of a null object reference"
Noe: This code mxml file is called at Runtime based on the data defined in the XMLSocket data.
I need to display Remote devices like davice1,device2 device3 etc. these are added/delete at any time ,so we need to show same changes in UI at Runtime.
I implemented Polymorphism concept to construct the device object at runtime like follows
var device:Object;
for each (var deviceData:XML indeviceListXML..Device)
                    device = getBatteryBay(deviceData.deviceId)
                    // If device already exists with the deviceId, update the details
                    // Else create a newdevice and add it to the container for displaying it.
                                                                                if (device == null)
                        if (device.Type == "DEVICE1")
                            device = new Device1();
                        else if (device.Type == "DEVICE2")
                        device = new Device2();
                        else
                            device = new DefaultDevice();
                        device.id = deviceData.deviceId;
                      device.name = deviceData.devicename;
                     device.setData(deviceData);
Here new Device1(); and new Device2() are the UIComponents and created at Runtime, upto here no problem to display, when i try to setData to the devices it is throwing error
"can't access a property or method of a null object reference". because Device1 and Device2 has Child components like "DataIndicator" and need to set properties to these components which are not created yet.
I appreciate any of your Input or suggestions at the earliest
Thanks in Advance
Regards

Similar Messages

  • How to set the selectedIndex when dataProvider is an XML object in DropDownList?

    dataProvider was an XML object
    How to set the selectedIndex when dataProvider is an XML object in DropDownList?
    I do this:
    <s:DropDownList id="dropDownList" requireSelection="true" selectedIndex="2"
                    labelField="lastName" dataProvider="{employeeService.lastResult.employees.employee}"/>
    But always the first item is selected whatever the value of selectedIndex equals to.

    if i understand correctly, you want the selectedindex to be 2 when the DropDownList  displays.
    It might be the case that the dataprovider is being sought after it's already selected its index (as the dataprovider isn't already determined to begin with), so currently it's
         - setting the selected index to default
         - setting the selected index to 2 (your command)
         - getting the dataprovider
         - setting the selected index to default
    try writing a function to set the DropDownList's selected index after it's received the information, or even just attach it to the employeeService result handler.
    for quick testing sake you could just add
    <s:DropDownList id="dropDownList" requireSelection="true" updateComplete="dropDownList.selectedIndex = 2"
                    labelField="lastName" dataProvider="{employeeService.lastResult.employees.employee}"/>
    to see if my theory is correct.

  • HT201210 How do I download iOS 6 on my iPhone? Keep getting error message saying "unable to download an error occurred while downloading iOS 6?

    How do I download iOS 6 on my iPhone? Keep getting error message saying "unable to download an error occurred while downloading iOS 6?

    How do I download iOS 6 on my iPhone? Keep getting error message saying "unable to download an error occurred while downloading iOS 6?

  • TS3694 how can I update my Ipod touche 2nd generation when I get error(-1)

    how can I update my Ipod touche 2nd generation when I get error(-1)
    I can't update my Ipod touch 2nd generation I always get the message error -1

    Error 1 or -1
    This may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.

  • How do you export your movie using idvd? I keep getting error messages and notices that I do not have enough space to transfer to a dvd.

    How do you export your movie using idvd? I keep getting error messages and notices that I do not have enough space to transfer to a dvd.

    Can you give us the steps to re-create the problem, and the exact wording of the error message you are getting please.

  • XML access to atributes and tag values at the same time

    Hi to everyone,
    I'm making some experiences with Flex, but I already have some experience with Flash and AS3.
    What I'm trying to accomplish, is to make a small application that uses webservices from the Weather Channel. The first part of the application is to ask the user his location. Then the location is sent to the webservice and the system return an XML with the possible matches. The user chooses one, and the weather information is shown.
    I have no problem with the navigation, or passing the results from one stage to another, but I'm having a problem, that I think it has an easy fix, but I can't get a light or answer from what I've seen from these forums or webasites... I suspect it's because the format of the XML that is return.
    For example, my request is this one: http://xoap.weather.com/search/search?where=aveiro
    wich return two possible locations, in this way:
    <search ver="3.0">
         <loc id="BRXX1094" type="1">Aveiro, Brazil</loc>
         <loc id="POXX0006" type="1">Aveiro, Portugal</loc>
    </search>
    Well, I want to display in a Datagrid the "id" attribute, and the "loc" tag value, i.e, "Aveiro, Brazil" and "Aveiro, Portugal".
    I defined the DataGrid like this:
    <mx:DataGrid x="10" y="53" width="365" id="dgLocation" dataProvider="{wSearch.lastResult.loc}" itemClick="callService(event);">
          <mx:columns>
                 <mx:DataGridColumn headerText="Localidade" dataField="loc"/>
                 <mx:DataGridColumn headerText="Referência" dataField="@id"/>
          </mx:columns>
    </mx:DataGrid>
    In the "loc" dataField, doesn't show anything, and the "@id" does display the correct information. Since I only have "loc" tag inside the main root tag, how can I get teir values? With labelFunction? How would you write it to get the information?
    This is my last try:
    private function getLocationName(item:Object, column:DataGridColumn):String{
           var xmlitem:XML=XML(item);
           trace(xmlitem.loc.toXMLString());
           return item.loc;
    Any ideias are welcome. Thanks.

    This seems to work:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="wSearch.send();">
      <mx:Script>
        <![CDATA[
          import mx.controls.dataGridClasses.DataGridColumn;
          private function getData(item:Object, column:DataGridColumn):String{
            return XML(item).valueOf();
        ]]>
      </mx:Script>
      <mx:HTTPService id="wSearch" url="http://xoap.weather.com/search/search?where=aveiro"
        resultFormat="e4x"/>
      <mx:DataGrid x="10" y="53" width="365" id="dgLocation"
        dataProvider="{wSearch.lastResult.loc}">
        <mx:columns>
          <mx:DataGridColumn headerText="Localidade" labelFunction="getData"/>
          <mx:DataGridColumn headerText="Referência" dataField="@id"/>
        </mx:columns>
      </mx:DataGrid>
    </mx:Application>
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • How to access sort direction and filter value of columns?  Can I catch the 'filtered' or 'sorted' event?

    We have some columns being added to a table.  We have set the sortProperty and the filterProperty on each of our columns.
    This allows us to both filter and sort.
    We want to be able to access the columns filter value and sort value after the fact.  Can we access the table and then the columns and then a columns properties to find these two items?  How can I access the sort direction and filter value of columns?
    We would also like to store the filter value and the sort direction, and re-apply them to the grid if they have been set in the past.  How can we dynamically set the filter value and sort direction of a column?
    Can I catch or view the 'filtered' or 'sorted' event?  We would like to look at the event that occurs when someone sorts or filters a column.  Where can I see this event or where can i tie into it, without overwriting the base function?

    Hey everyone,
    Just wanted to share how I implemented this:
    Attach a sort event handler to table - statusReportTable.attachSort(SortEventHandler);
    In this event handler, grab the sort order and sorted column name then set cookies with this info
    function SortEventHandler(eventData)
        var sortOrder = eventData.mParameters.sortOrder;
        var columnName = eventData.mParameters.column.mProperties.sortProperty;
        SetCookie(sortDirectionCookieName, sortOrder, tenYears);
        SetCookie(sortedColumnCookieName, columnName, tenYears);
    Added sortProperty and filterProperty to each column definition:
    sortProperty: "ColName", filterProperty: "ColName",
    When i fill the grid with data, i check my cookies to see if a value exists, and if so we apply this sort:
    function FindAndSortColumnByName(columnName, sortDirection (true or false))
        var columns = sap.ui.getCore().byId('statusReportTable').getColumns();
        var columnCount = columns.length;
        for(var i = 0; i < columnCount; i ++)
            if(columns[i].mProperties.sortProperty == columnName)
                columns[i].sort(sortDirection);

  • How to access/display custom pricing condition values in the webshop (eg. o

    Hello,
    we are using B2B with IPC-pricing, using our own pricing conditions. Calculation of the prices works fine (can be verified when enabling the price analysis link).
    Now we need to show some of these own pricing condition's values (not the ones available in the salesdocument header/item like getNetValue, getTaxValue,..) in the shopping basket (order.jsp).
    How can we achieve this (eg. get the IPC to transfer these values back to the shop or read them somewhere)?
    Thanks for any hint
    Kind regards,
    Manuel

    Hi all,
    We've found the solution according to the post from Rajinikanth G and Sateesh Chandra (http://scn.sap.com/thread/2046477). That will work (return any pricing information/details like custom pricing conditions, subtotal1 - 6 etc. as in pricing analysis) for order.jsp (display shopping basket), order_change.jsp and orderstatusdetail.jsp (display order), but not for confirm.jsp (order confirmation / print order).
    <%@ page import="com.sap.isa.businessobject.header.HeaderSalesDocument" %>
    <%@ page import="com.sap.isa.businessobject.ipc.IPCBOManager" %>
    <%@ page import="com.sap.isa.core.UserSessionData" %>
    <%@ page import="com.sap.spc.remote.client.object.IPCClient" %>
    <%@ page import="com.sap.spc.remote.client.object.IPCDocument" %>
    <%@ page import="com.sap.spc.remote.client.object.IPCException" %>
    <%@ page import="com.sap.spc.remote.client.object.IPCItem" %>
    <%@ page import="com.sap.spc.remote.client.object.IPCPricingCondition" %>
    <%@ page import="com.sap.spc.remote.client.object.IPCPricingConditionSet" %>
    <%
       String priHdrCondTxt = "";
       String priItmCondTxt = ""; 
       HeaderSalesDocument hsDoc = ui.header;
       UserSessionData usd = UserSessionData.getUserSessionData(request.getSession());
       IPCBOManager ibom = (IPCBOManager) usd.getBOM(IPCBOManager.NAME);      
       IPCClient ipcClient= ibom.getIPCClient();
       if (ipcClient == null)
           ipcClient = ibom.createIPCClientUsingConnection(hsDoc.getIpcConnectionKey());
       ipcClient.getIPCSession().setCacheDirty(); // important to get the correct data
       ipcClient.getIPCSession().syncWithServer(); // important to get the correct data
       IPCDocument ipcDocument = ipcClient.getIPCDocument(hsDoc.getIpcDocumentId().getIdAsString()); //getIpcDocumentId: null without setCacheDirty and syncWithServer
       try{
           // Header
           priHdrCondTxt += "<br>------HEADER--------";
           IPCPricingConditionSet hPriCondSet = ipcDocument.getPricingConditions();
           IPCPricingCondition[] hPriCond = hPriCondSet.getPricingConditions();
           for(int i=0; i<hPriCond.length; i++)
               priHdrCondTxt += hPriCond[i].getConditionTypeName() + "(" + hPriCond[i].getDescription() + ")" + hPriCond[i].getConditionValue() + " //<br>";
           //Item
           IPCItem[] ipcItems = ipcDocument.getItems();
           for(int i=0; i<ipcItems.length; i++)
               priItmCondTxt += "<br>------ITEM--------";
               IPCPricingConditionSet iPriCondSet = ipcItems[i].getPricingConditions();
               IPCPricingCondition[] iPriCond = iPriCondSet.getPricingConditions();
               for(int x=0; x<iPriCond.length; x++)
                   priItmCondTxt += iPriCond[x].getConditionTypeName() + "(" + iPriCond[x].getDescription() + ")" + iPriCond[x].getConditionValue() + " //<br>";
       }catch(IPCException e) {
       %>
       <%=priHdrCondTxt%><br>
       <%=priItmCondTxt%>
    In confirm.jsp there is no IPC-document available (<HeaderSalesDoc>.getIpcDocumentId()/getIpcConnectionKey() are null). Also BOM -> getBasket()/getOrder()/getCustomerOrder()/getQuotation() are empty. Here we've transferred the necessary pricing informations from basket to confirmation through the UserSessionData.
    Set data in order.jsp:
    <%
       String itemId = "Item-" + item.getProductId() + "SomeValue";
       HashMap pricesForConfirm = new HashMap();
       pricesForConfirm.put("Header-SomeValue", "Val1");
       pricesForConfirm.put(itemId, "Val2");
       UserSessionData usd = UserSessionData.getUserSessionData(request.getSession());
       usd.setAttribute("pricesForConfirm", pricesForConfirm);
    %>
    Show data in confirm.jsp:
    <%
    String itemId = "Item-" + item.getProductId() + "SomeValue";
    UserSessionData usd = UserSessionData.getUserSessionData(request.getSession());
    HashMap pricesForConfirm = (HashMap) usd.getAttribute("pricesForConfirm");
    s2 += pricesForConfirm.get("Header-SomeValue");
    s2 += pricesForConfirm.get(itemId);
    %>
    That whole solution does work fine also when pricing analysis is disabled in XCM. (Note that we've enabled "doItemCalls" in backendobject-config.xml according to note https://service.sap.com/sap/support/notes/1004533, but we did not use the ExtensionData-mechanism to transfer data from/to ABAP, because that would need changes on ABAP- (to fetch and fill) and Java-side (to read and display) and because we could not find/access relevant pricing information from IPC at the time the BAdI is called. Also the BAdI CRM_ISA_HDR_PRICING mentioned in the note does apply for the web catalog. We've used that to give IPC more information to calculate the netValue using additional pricing conditions for the catalog.)
    We've also implemented note https://service.sap.com/sap/support/notes/892761 to show a different price (eg. grossValue) in the mini basket (total items and price in basket).
    If there's a need to display a different price in the catalog, there note https://service.sap.com/sap/support/notes/1022962 could be implemented.

  • How to accessing current row report column value in Lov Query?

    Hi,
    which access methods (eg. bind variables, substitutions, ...) for getting the current row report column value can be used in the "Lov Query" property of a report column?
    As what I know of and what I have read on the forum there are no bind variables for the report columns. For the "Link Text" property it seems that the column values exist as substitution strings (#COLUMN_NAME#). But they don't work in the Lov Query. => And would be good because of a hard parse each time the Lov query is executed.
    The following post (Re: Simulating a correlated sub query in lov
    is showing a solution to use package variables for temporary storage of the referenced value, but the only problem with that solution is that if a new record is added with the "Add rows to tabular form" process the package variable still contains the value from the last queried row! Is there a way (variable, APEX package, ...) to determine if the lov query is executed for a new record so that the package can return null?
    I know that I could write the package in a way that the value is immediately cleared when lov_pkg.keyval is called (one time read), but then I would have to create several variables if I'm accessing the value multiple times in the query or in another query => I think an one time read solution would be very obscurely.
    Thanks for your help
    Patrick
    http://inside-apex.blogspot.com

    Hi Patrick,
    I agree that it's a waste to continually use Ajax to go back to the server to get the contents of a dynamic select list.
    There are no bind variables for any row item - but what you do have, as per my previous post, is the value of the data entered by the user in the first row. You can pass this into your application process (using get.add("VARIABLENAME", value)), which can use it to retrieve the correct LOV in your Ajax code - this will give you a "bind variable" that your process can use.
    What you could do, however, is generate hidden select lists on your page - one for each possible LOV list and replace the contents of the new row's select list with the contents of the appropriate hidden select list. This is easy to do with javascript (using innerHTML functions). Obviously, though, the usefulness of this depends on the number and size of the select lists.
    Even if you don't generate them to start with, you can keep a copy of any select lists returned by Ajax in the DOM for use on new rows. So, if you have retrieved a select list, you will have a copy of it in DOM which you can then copy into the new row. If you don't have the list in DOM, use Ajax to get it, store a copy of it and copy it into the new row.
    Which method you use will depend on the number/size of select lists needed. If they are few in number and/or size, I would suggest generating hidden lists. If they are large, use Ajax to get them once, store them and then retrieve them from the DOM when needed.
    There is another thread here where Arie recommends going to the server every time to make sure you get the most up-to-date data for the lists. If you want to follow this advice, for this reason, use get.add("VARIABLENAME", value) to pass the value to your process. If this is not an issue, you can use one of the other methods I outlined above.
    Regards
    Andy

  • How can I extract tag value of XML

    I have the xml above and a need to extract value of any tag.
    I think with regular expression I could get the desire result.
    And I could work eoth XMLTYPE with I can identify if if LEAF TAG or not( and then use EXTRACT or EXTRACTVALUE functions correctly )
    declare
       v_xml varchar2(1000); --> with xmltype I can extrac the label of tag with SQL function EXTRACT
    begin
       v_xml:= '<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://iface.cliente.cssoftware.sicredi.com.br/">'||
                   '<env:Body>'||
                      '<ns0:consultaCanalAplicacaoResponse>'||
                         '<ns0:return>'||
                            '<ns0:item>'||
                               '<ns0:codigoReferencial>URA</ns0:codigoReferencial>'||
                               '<ns0:codigoLegado xsi:nil="1"/>'||
                               '<ns0:id>13</ns0:id>'||
                               '<ns0:codigoSIC>URA</ns0:codigoSIC>'||
                            '</ns0:item>'||
                         '</ns0:return>'||
                      '</ns0:consultaCanalAplicacaoResponse>'||
                   '</env:Body>'||
                '</env:Envelope>';
    end;
    /*With tag name is 'ns0:id' the desire result is:  '13' *With tag name is 'ns0:item' the desire result is:
    <ns0:codigoReferencial>URA</ns0:codigoReferencial>
    <ns0:codigoLegado xsi:nil="1"/><ns0:id>13</ns0:id>
    <ns0:codigoSIC>URA</ns0:codigoSIC>*With tag name is 'env:Envelope' the desire result is:
    <env:Body>
       <ns0:consultaCanalAplicacaoResponse>
          <ns0:return>
             <ns0:item>
                <ns0:codigoReferencial>URA</ns0:codigoReferencial>
                <ns0:codigoLegado xsi:nil="1"/>
                <ns0:id>13</ns0:id>
                <ns0:codigoSIC>URA</ns0:codigoSIC>
             </ns0:item>
          </ns0:return>
       </ns0:consultaCanalAplicacaoResponse>
    </env:Body>Edited by: Luciana T. Angeli on Nov 1, 2010 3:46 PM
    Edited by: Luciana T. Angeli on Nov 1, 2010 3:48 PM
    Edited by: Luciana T. Angeli on Nov 1, 2010 3:49 PM

    SQL> with t
         as (select xmltype (
                      '<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://iface.cliente.cssoftware.sicredi.com.br/">'
                      || '<env:Body>'
                      || '<ns0:consultaCanalAplicacaoResponse>'
                      || '<ns0:return>'
                      || '<ns0:item>'
                      || '<ns0:codigoReferencial>URA</ns0:codigoReferencial>'
                      || '<ns0:codigoLegado xsi:nil="1"/>'
                      || '<ns0:id>13</ns0:id>'
                      || '<ns0:codigoSIC>URA</ns0:codigoSIC>'
                      || '</ns0:item>'
                      || '</ns0:return>'
                      || '</ns0:consultaCanalAplicacaoResponse>'
                      || '</env:Body>'
                      || '</env:Envelope>')
                      xml
               from dual)
    select id, xmlserialize(document item indent) item
      from t,
           xmltable (
             xmlnamespaces ('http://iface.cliente.cssoftware.sicredi.com.br/' as "ns0",
                            'http://schemas.xmlsoap.org/soap/envelope/' as "env"
             'env:Envelope/env:Body/ns0:consultaCanalAplicacaoResponse/ns0:return'
             passing xml
             columns id number path 'ns0:item/ns0:id',
                     item xmltype path 'ns0:item')
         ID ITEM                                                                                     
         13 <ns0:item xmlns:ns0="http://iface.cliente.cssoftware.sicredi.com.br/">                   
              <ns0:codigoReferencial>URA</ns0:codigoReferencial>                                     
              <ns0:codigoLegado xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1"/>  
              <ns0:id>13</ns0:id>                                                                    
              <ns0:codigoSIC>URA</ns0:codigoSIC>                                                     
            </ns0:item>                                                                              
    1 row selected.hth.

  • How to access the Name label tag of a layer.

    Hello I need to access the Name Label of the Action layer in a movieClip with AC3.

    movieclips have a currentFrameLabel string property, a currentLabel string property (the current or previous labeled frame) and a currentLabels array property.

  • Extracting Tag Value from XML returned when a web service via PL/SQL

    All,
    Good afternoon.
    I have a PL/SQL that called a web service. The code is as below:
    create or replace procedure soap3 as
    soap_request varchar2(30000);
    soap_respond varchar2(30000);
    http_req utl_http.req;
    http_resp utl_http.resp;
    resp XMLType;
    i integer;
    bra number := 205;
    cus number := 134988;
    cur number := 1;
    led number := 0;
    sub number := 0;
    chq number := 1;
    n number;
    v_raw RAW(32767);
    buff RAW(32767);
    http_res UTL_HTTP.resp;
    blob_length INTEGER;
    chunk_size BINARY_INTEGER := 32767;
    blob_position INTEGER := 1;
    out_file UTL_FILE.FILE_TYPE;
    name VARCHAR2(256);
    value VARCHAR2(1024);
    v_buffer RAW(32767);
    begin
    soap_request := '<?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>
    <Validate_Mandate xmlns="http://tempuri.org/Clearing_Workflow/Service1">
    <Bra_code>205</Bra_code>
    <Cus_num>134988</Cus_num>
    <Cur_code>0</Cur_code>
    <Led_code>0</Led_code>
    <sub_acct_Code>0</sub_acct_Code>
    </Validate_Mandate>
    </soap:Body>
    </soap:Envelope>';
    --DBMS_LOB.CREATETEMPORARY(buff,true);
    http_req := utl_http.begin_request('http://10.99.0.13/clearinginwards/InwardCheques.asmx',
    'POST',
    'HTTP/1.1');
    utl_http.set_header(http_req, 'Content-Type', 'text/xml'); -- since we are dealing with plain text in XML documents
    utl_http.set_header(http_req, 'Content-Length', length(soap_request));
    utl_http.set_header(http_req,
    'SOAPAction',
    'http://tempuri.org/Clearing_Workflow/Service1/Validate_Mandate'); -- required to specify this is a SOAP communication
    utl_http.write_text(http_req, soap_request);
    http_resp := utl_http.get_response(http_req);
    dbms_output.put_line('HTTP response status code: ' || http_resp.status_code);
    dbms_output.put_line('HTTP response reason phrase: ' || http_resp.reason_phrase);
    UTL_HTTP.read_raw(http_resp, buff, 32767);
    end;
    The response gotten from the web service is as below :
    open=F, temp=T, length=13256, chunksize=8132, data=3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D227574662D38223F3E3C736F61703A456E76656C6F706520786D6C6E733A736F61703D22687474703A2F2F736368656D61732E786D6C736F61702E6F72672F736F61702F656E76656C6F70652F2220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E63652220786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D61223E3C736F61703A426F64793E3C56616C69646174655F4D616E64617465526573706F6E736520786D6C6E733D2268747470
    I do not understand what this output actually means as what the webservice returns is meant tio be a XML with a signature tag that contain an image of customers signature.
    Please I need help.

    Thanks for the responses thus far , but I think i need to properly define my problem so will be able to help me better.
    I have a webservice with the definition below :
    POST /NigMailService/nigmailservice.asmx HTTP/1.1
    Host: 10.2.15.157
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "http://tempuri.org/GetImageDataTable_HT"
    <?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>
    <GetImageDataTable_HT xmlns="http://tempuri.org/">
    <BranchCode>int</BranchCode>
    <CustomerNumber>int</CustomerNumber>
    <CurrencyCode>int</CurrencyCode>
    <LedgerCode>int</LedgerCode>
    <SubAccountCode>int</SubAccountCode>
    <ChequeNumber>int</ChequeNumber>
    <ClientCode>string</ClientCode>
    <wantedImageTypes>int</wantedImageTypes>
    <wantedImageSize_InPercent>int</wantedImageSize_InPercent>
    </GetImageDataTable_HT>
    </soap:Body>
    </soap:Envelope>
    and sample response :
    HTTP/1.1 200 OK
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    <?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>
    <GetImageDataTable_HTResponse xmlns="http://tempuri.org/">
    <GetImageDataTable_HTResult>xmlxml</GetImageDataTable_HTResult>
    </GetImageDataTable_HTResponse>
    </soap:Body>
    </soap:Envelope>
    My aim is to write a PL/SQL that will call the webservice and recieve the response which is definately a XML with an image that is meant to be written to a file in PL/SQL.
    Please how can i achieve this ?

  • How to access SharePoint External Data column using Silverlight Client Object Model

    Hi Friends,
    I have one sharepoint list which has column of type External Data type. My need is to access each item and get the values from the External Data Type column field.
    Can anyone help me how to acheive this. I am begineer in Silverlight.
    Thanks, Cool Developer

    Hi Friends,
    I have one sharepoint list which has column of type External Data type. My need is to access each item and get the values from the External Data Type column field.
    Can anyone help me how to acheive this. I am begineer in Silverlight.
    Thanks,
    RajanThanks, Cool Developer

  • Delete parent node based on its child node value in XML

    I have an xml like this:
    <UPLOAD_REQUEST>
         <CUSTOMER_DETAIL>
         <NAME>Smith</NAME>
         <AGE>20</AGE>
         <GENDER>M</GENDER>
         </CUSTOMER_DETAIL>
         <CUSTOMER_DETAIL>
         <NAME>Nikita</NAME>
         <AGE>35</AGE>
         <GENDER>F</GENDER>
         </CUSTOMER_DETAIL>
    </UPLOAD_REQUEST>
    I want to delete CUSTOMER_DETAIL node where name = 'nikita' from xml. Also note that there is no identification number for CUSTOMER_DETAIL node.
    I was trying to do it like this:
    UPDATE request_xml
    SET request= deleteXML(request, '/UPLOAD_REQUEST/CUSTOMER_DETAIL')
    WHERE extractvalue(request, '/UPLOAD_REQUEST/CUSTOMER_DETAIL/NAME') = 'Nikita';
    It gives error "*EXTRACTVALUE returns value of only one node*"
    Final output should be
    <UPLOAD_REQUEST>
         <CUSTOMER_DETAIL>
         <NAME>Smith</NAME>
         <AGE>20</AGE>
         <GENDER>M</GENDER>
         </CUSTOMER_DETAIL>
    </UPLOAD_REQUEST>
    Can anyone please help me how to do this?
    Edited by: user10446917 on May 6, 2011 3:38 AM

    Add a predicate in the XPath expression :
    UPDATE request_xml
    SET request = deleteXML(request, '/UPLOAD_REQUEST/CUSTOMER_DETAIL[NAME="Nikita"]')
    ;

  • How to add namespaces before a tag name in XML??

    Dear friends:
    I have following code, and hope to add namespaces before the tagname such as Company, Location and even any attributes in this xml,
    Can you help throw some lights??
    Thanks in advance.
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Attr;
    import org.w3c.dom.Document;
    import com.sun.org.apache.xml.internal.serialize.OutputFormat;
    import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
    import org.w3c.dom.Element;
    public class DocWriteDOMStart {
        public static void main(String[] av) throws IOException {
            DocWriteDOMStart dw = new DocWriteDOMStart();
            Document doc = dw.makeDoc();
            ((org.apache.crimson.tree.XmlDocument)doc).write(System.out);
        /** Generate the XML document */
        protected Document makeDoc() {
            try {
                DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance();
                DocumentBuilder parser = fact.newDocumentBuilder();
                Document doc = parser.newDocument();
                Element root = doc.createElement("Company");;
                doc.appendChild(root);
                Element loc = doc.createElement("Location");
                root.appendChild(loc);
                Element emp = doc.createElement("Employee");
                loc.appendChild(emp);
                emp.appendChild(doc.createTextNode("Daniel Bush"));
                Element emp2 = doc.createElement("Employee");
                loc.appendChild(emp2);
                emp2.appendChild(doc.createTextNode("Sandy Moore"));  
                Element dept = doc.createElement("Department");
                Element e = (Element)dept;
                e.setAttribute("Nationality", "USA");
                e.setAttributeNS("www.yahoo.com", "dept", "http://www.google.com");
                //e.setAttributeNodeNS(newAttr);
                loc.appendChild(e);
                e.appendChild(doc.createTextNode("IT Depart"));
                return doc;
            } catch (Exception ex) {
                System.err.println(ex.getClass());
                System.err.println(ex.getMessage());
                return null;
    }and I got
    <?xml version="1.0" encoding="UTF-8"?>
    <Company>
      <Location>
        <Employee>Daniel Bush</Employee>
        <Employee>Sandy Moore</Employee>
        <Department Nationality="USA" dept="http://www.google.com">IT Depart</Department>
      </Location>
    </Company>hope to add namespaces before the tagname such as Company, Location and even any attributes such as dept, nationality etc in this xml,
    I try but fail.

    You would have to write code that does that, then. Right now your code writes that part of your XML as elements that aren't in a namespace. I can tell you know there are different methods to write elements that are in a namespace because you used a different method to try to write an attribute that is in a namespace.

Maybe you are looking for

  • ~/.forward problem on Solaris 2.5.1

    I've developed a program that is kicked off by receiving an e-mail from another system and am using the ~/.forward file to start my program. My ~/.forward file looks like: \jtw, "| /apps/tpg/bin/parse_mail" When I received mail from the system that i

  • I want to restore my i phone 5s , please help in here

    i want to restore my i phone 5s , please help in here

  • How to Consume Web Service?

    Hi Experts, I need to call a Function Module in the Exit. In this Function Create to write the code to consume web service created by third party. Then get the Data from there and uodate SAP Can u plz help me with the Steps Involved in this?

  • ODI11g Integration Step:  Insert flow into I$ Table failure: TNS: error

    The project/interfaces have been working successfully for quite sometime. After a server reboot, they are all failing on the Integration step Insert flow into I$ Table failure with: ODI-1228: Task xxxxx(Integration) fails on the target ORACLE connect

  • Non Display Of Flash Gallery In Web Preview

    Using lightroom 2.4 I created a flash gallery. I exported it to my local website. I created a link from the home page in Web Expression 2. When I follow the link I get a blank "design" screen in both Firefox and IE previews. There is no problem with