Parsing SOAP Results into Variables

Can someone assist me in figuring out what way I need to go
to parse SOAP results into an array?
I have setup the <MX:WEBService> correctly, created my
resultEvent(event) handler and faultEvenet(event) handler as
needed. Below is the web service:
<mx:WebService
id="srvGetTagHistory" wsdl="{SOAP_URL}"
result="CreateTagHistory(event)" fault="faultEvenet(event)"
useProxy="false">
<mx:operation name="GetTagHistory" resultFormat="e4x">
<mx:request>
<RSWID>{vRSWID}</RSWID>
</mx:request>
</mx:operation>
</mx:WebService>
This works perfectly. I can return the results of the
webservice to a text area control, and the complete SOAP results
are displayed.
My problem is I cannot and have not figured out how to make
the SOAP results into some type of arraycollection for using in,
lets say, a dataGrid.
Here is an example of a SOAP result for the above webservice:
<NS1:GetTagHistoryResponse
xmlns:NS1="urn:myresaleworldserviceIntf-myresaleworldserver"
xmlns:NS2="urn:myresaleworldserviceIntf" xmlns:SOAP-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:SOAP-ENC="
http://schemas.xmlsoap.org/soap/encoding/">
<NS2:return href="#1"/>
<SOAP-ENC:Array id="1">
<item href="#2"/>
<item href="#9"/>
<item href="#16"/>
<item href="#25"/>
<item href="#29"/>
</SOAP-ENC:Array>
<NS2:rswTagHistory id="2">
<OrderDate>2005-12-08T11:15:24.857-05:00</OrderDate>
<TagType>CB Tags</TagType>
<NS2:ColorDetail href="#3"/>
</NS2:rswTagHistory>
<SOAP-ENC:Array id="3">
<item href="#4"/>
<item href="#5"/>
<item href="#6"/>
<item href="#7"/>
<item href="#8"/>
</SOAP-ENC:Array>
<NS2:rswTagColorDetail id="4">
<TagColor>Lavender</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="5">
<TagColor>Light Blue</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="6">
<TagColor>Green</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="7">
<TagColor>Pink</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="8">
<TagColor>Yellow</TagColor>
<Total>1</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagHistory id="9">
<OrderDate>2005-12-08T11:18:44.233-05:00</OrderDate>
<TagType>CB Tags</TagType>
<NS2:ColorDetail href="#10"/>
</NS2:rswTagHistory>
<SOAP-ENC:Array id="10">
<item href="#11"/>
<item href="#12"/>
<item href="#13"/>
<item href="#14"/>
<item href="#15"/>
</SOAP-ENC:Array>
<NS2:rswTagColorDetail id="11">
<TagColor>Lavender</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="12">
<TagColor>Light Blue</TagColor>
<Total>3</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="13">
<TagColor>Green</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="14">
<TagColor>Pink</TagColor>
<Total>3</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="15">
<TagColor>Yellow</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagHistory id="16">
<OrderDate>2006-08-07T13:56:22.513-05:00</OrderDate>
<TagType>CB Tags</TagType>
<NS2:ColorDetail href="#17"/>
</NS2:rswTagHistory>
<SOAP-ENC:Array id="17">
<item href="#18"/>
<item href="#19"/>
<item href="#20"/>
<item href="#21"/>
<item href="#22"/>
<item href="#23"/>
<item href="#24"/>
</SOAP-ENC:Array>
<NS2:rswTagColorDetail id="18">
<TagColor>Lavender</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="19">
<TagColor>Light Blue</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="20">
<TagColor>Green</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="21">
<TagColor>Orange</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="22">
<TagColor>Pink</TagColor>
<Total>1</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="23">
<TagColor>Red</TagColor>
<Total>2</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="24">
<TagColor>Yellow</TagColor>
<Total>1</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagHistory id="25">
<OrderDate>2007-04-10T12:08:03.950-05:00</OrderDate>
<TagType>CB Tags</TagType>
<NS2:ColorDetail href="#26"/>
</NS2:rswTagHistory>
<SOAP-ENC:Array id="26">
<item href="#27"/>
<item href="#28"/>
</SOAP-ENC:Array>
<NS2:rswTagColorDetail id="27">
<TagColor>Light Blue</TagColor>
<Total>3</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagColorDetail id="28">
<TagColor>Green</TagColor>
<Total>1</Total>
</NS2:rswTagColorDetail>
<NS2:rswTagHistory id="29">
<OrderDate>2007-12-19T12:52:30.883-05:00</OrderDate>
<TagType>Thermal Tags</TagType>
<NS2:ColorDetail href="#30"/>
</NS2:rswTagHistory>
<SOAP-ENC:Array id="30"/>
</NS1:GetTagHistoryResponse>
Any assistance to this issue would be greatly appreciated.

If you have set resultFormat="e4x" than you can handle the
result very easily.
I guess you already find out that your result is in
event.result.
Your example is too hard to parse by human.
You can read:
http://livedocs.adobe.com/labs/flex3/html/help.html?content=13_Working_with_XML_01.html
Especially: Traversing XML structures and Using XML
namespaces
I hope this will help

Similar Messages

  • ForEach Loop - Parsing XML subgroup into Variables

    Hi all,I am designing a new ETL process using SSAS.
    We have a controller package which receives an XML string at run time into a variable called BatchRequest :-
    <Batch>
    <Request>
    <Name>Filemon</Name>
    <Params>
    <filepaths>
    <Sourcepath>d:\temp</Sourcepath>
    <Destpath>D:\temp2</Destpath>
    <Archivename>\Archive</Archivename>
    </filepaths>
    </Params>
    </Request>
    </Batch>
    The Batch can contain a number of Requests and a ForEach Loop is used to parse the text for the Name node and the text for the Params Node into variables RequestName and RequestParams respectively.
    however, what I want to be able to do is to take the text for <name> into Requestname but take the entire XML sub string for <Params> into RequestParams.
    At the moment I get the text only (e.g. d:\tempd:\temp2\Archive).
    The Requestname is used by an XML task within the ForEach loop to retrieve full package path details from an external config file, and hence it only needs to be a keyword.
    I played with the idea of including <Params> as a subnode for <Name>, only populating RequestName in the loop parser and then having an XML task which would parse the related parameter string, but i don't know how to tell the XML task that I
    want the parameter string where the <Name> is Filemon (in this example).
    Can anyone give me some suggestions or pointers?
    Thanks
    Iain
    Iain

    Hi idcowden,
    Glad to hear that you have resolved the issue on your own. Thank you for sharing the solution.
    Regards,
    Mike Yin
    TechNet Community Support

  • Empty query result into variable? what's the result

    It's Null Value or What?
    i write a query like this.
    select name into variable from table where pk is null;
    /*this query return nothing*/
    /*Variable = Null or variable is empty ?*/

    Generally, the contents of the variable do not change if a SELECT..INTO.. returns no rows.
    It is safer to have your NO_DATA_FOUND exception handler set the variable to an appropriate value (eg null).

  • Regular expression result into variable??

    Im dealing with log files here...i use regular expression to detect the values...how can i save these values into variable, for example 25-07-2005 into "date"?
    this is how my output statement look like
    myOutput1.print(matcher1.group(1));
    matcher1.group is the way i use to get the value using regular expression

    thanx...actually i have already match it in groups and it works fine..the problem is im dealing with log files...what im trying to do is reformat back the log files collected...example.."8 Nov" change it to 8-11-2005
    When i match it into the group its actually just finding the pattern, not saving it into variable..if its save in the variable would be easier..
    how can i change "8 Nov" to 8-11-2005?? can anyone help me with a simple code???
    thanks

  • Copy the result of Execute immediate result into a variable.

    Hi All,
    Is there any way to copy the result of execute immediate result into a variable.
    am doing following steps but am getting an error.
    varSQLstmt1:='select count(*) into'||vararch_ct||' from '||vararch_count;
    dbms_output.put_line(varSQLstmt1);
    execute immediate varSQLstmt1;
    But am getting sql statement as select count(*) into from SALES
    the variable(vararch_ct) is missing in select statement .
    please help me to solve this issue. Or is there any way to insert the count of records into any variable.
    Thanks
    Sree

    declare
    varSQLstmt1    varchar2(4000);
    v_count          number;
    begin
    varSQLstmt1:='select count(*) from '||vararch_count;
    dbms_output.put_line(varSQLstmt1);   
    execute immediate varSQLstmt1 into v_count;
    dbms_output.put_line('Coutn :: ' || v_count);
    end;

  • Mapping proc output to vars gets error extracting result into a variable of type (DBTYPE_UI2)

    Hi, we run std 2012.  I have a proc (sets nocount on) whose params r shown in the first block .   My execute ssis sql task mapping is shown in the block following that (same order as shown, the param sizes are all -1).  The variable
    characteristics and initial values are shown in the 3rd block.  The execute sql task command is
    exec usp_fileArrivalStatus ?,?,?,?,?,? output,? output,? output
    when I run the proc in ssms followed by a select on the output fields, I get stat 0, instance id -1 and file name empty string (aka tick tick aka '')
    The error is:
    [Execute SQL Task] Error: Executing the query "exec usp_fileArrivalStatus ?,?,?,?,?,? output,? ou..." failed with the following error:
    "An error occurred while extracting the result into a variable of type (DBTYPE_UI2)".
    Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Does anybody know what is wrong?
    CREATE PROCEDURE [dbo].[usp_fileArrivalStatus] @NewFilePattern varchar(500),
    @PkgName varchar (257),
    @appid int,
    @MsgHistCreateDate date,
    @messageFriendlyName varchar(500),
    @arrivalStatus int output,
    @instanceId bigint output,
    @fileName varchar(500) output
    VariableName Direction DataType ParamName
    User::TranFilePattern Input VARCHAR 0
    System::PackageName Input VARCHAR 1
    User::AppID Input SHORT 2
    User::todaysDate Input DATE 3
    User::TranFileArriveStatus OUTPUT SHORT 5
    User::TranFileInstanceId OUTPUT LARGE_INTEGER 6
    User::TranFileName OUTPUT VARCHAR 7
    User::TranFileFriendlyName Input VARCHAR 4
    User::TranFilePattern,string,tranfile05-Nov-2014
    User::fileDate,string,05-Nov-2014
    System::PackageName,
    User::AppID,int32,12
    User::todaysDate,DateTime, set by select getdate()
    User::TranFileArriveStatus,int32,0
    User::TranFileInstanceId,Int64,0
    User::TranFileName,string
    User::TranFileFriendlyName,string,Tran File

    I may have gotten past this.  The ui showed the first execution of that proc as the aborting component but when I looked at my error code (-1073548784), and component name in the
    message sent with notification email, I noticed the second component name.  It too executes that proc and still had ushort for appid in sql task mapping and long for instance id.  I changed these characteristics to match what I posted and got green
    on the seq container that runs both.
    I think I go thru this kind of adventure every time I try to map proc output to ssis vars.   

  • Problem to store a oracle sql result into a variable

    Hello everyone,
    I'm working on a little project that use c#, Oracle ODT and asp.net, so here is the thing, I need to save the result of a sequence (SECNUM.NEXTVAL ) into a variable, then call that value from many inserts and querys and for last make the commit. My problem is that I don't know how to convert the string result to a number and the call it from the statements. Always brings two errors, one is invalid number because Im sending a string and the another is that if I comment the line cmd.ExecuteNonQuery(); the script runs but no commit happens.
    This is my code, is attached to a button:
    C# Syntax (Toggle Plain Text)
    string oradb = "Data Source=BBDD;User Id=DEMO;Password=DEMO;";
    string cmd1 = "SELECT SECNUM.NEXTVAL FROM DUAL";
    OracleConnection conn = new OracleConnection(oradb);
    conn.Open();
    OracleParameter parm = new OracleParameter();
    parm.OracleDbType = OracleDbType.Decimal;
    OracleCommand cmd = new OracleCommand();
    cmd.Connection = conn;
    cmd.Parameters.Add(parm);
    cmd.CommandText = "INSERT INTO DEMOINCI (CODINCI, CODCLI) VALUES (('" + cmd1 +"'), 'TEST')";
    cmd.CommandText = "INSERT INTO DEMOINCILIN (CODINCI,CODLIN) VALUES (('" + cmd1 +"'),1)";
    cmd.CommandType = CommandType.Text;
    cmd.ExecuteNonQuery();
    So my problem is that the column CODINCI is a column number of (9) and not a VARCHAR and can not be changed because is already have data, so when I use the code of the example, Oracle return an error saying Invalid number (of course).
    With the help of a friend I tried to put with the cast like this cmd.CommandText = "INSERT INTO DEMOINCI (CODINCI, CODCLI) VALUES (" + "CAST(" + cmd1 + "AS NUMBER), 'TEST')"; and it works but only if I comment the line cmd.ExecuteNonQuery();, so the commit never happend and of course there is no insert in the database.
    ¿It is so difficult to store a result of an SQL into a variable and then call it back on a statement?, on Oracle Forms you create a cursor like cursor=CVAL SELECT SECNUM.NEXTVAL VAL FROM DUAL and that it you can then use the VAL result into all other queries of the same form an retrieving with the :VAL option.
    Thanks for all the help.

    I just had to do something similar for my C# class, using SQL Server. The primary key for a "Customers" table was an auto-incrementing integer. After inserting a new customer I had to retrieve and display the primary key:
    string selectStatement = "SELECT IDENT_CURRENT('Customers') from Customers";
    SqlCommand selectCommand = new SqlCommand(selectStatement, connection);
    int customerID = Convert.ToInt32(selectCommand,ExecuteScalar());
    The ExecuteScalar() method of selectCommand returned the first column of the first row of the dataset, which in this case was the key of the new Customers record, as an object. Convert.ToInt32() converted the key to an integer.
    Once you store SECNUM.NEXTVAL as an integer, you can use it to create a Parameter for the Command object.
    HTH.

  • Empty variable/expression result. xpath variable/expression expression

    Hi,
    I am new to BPEL, I have created one Process and trying to Call Procedure with the help of Invoke Process Activity. Database Procedure having one input parameter and one output parameter. When i am trying to execute deployed webservice it gives me error like
    <Faulthttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>env:Server</faultcode>
    <faultstring>com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response has timed out. The conversation id is 94218a8977e86d41:78a12598:12e474197b6:-7f6f. Please check the process instance for detail.</faultstring>
    </Fault>
    Server Trace for this: From Audit Instance
    receiveInput
    [2011/02/21 17:07:04] Received "inputVariable" call from partner "client"More...
    - <inputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
    - <ns1:DBAdaptorParam2ProcessRequest xmlns:ns1="http://xmlns.oracle.com/DBAdaptorParam2">
    <ns1:input>wwww</ns1:input></ns1:DBAdaptorParam2ProcessRequest></part></inputVariable>
    Assign_in
    [2011/02/21 17:07:04] Updated variable "Invoke_DBService_DBAdaptor2_Service_InputVariable" More...
    - <Invoke_DBService_DBAdaptor2_Service_InputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters">
    - <InputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/GETCONCATESTRING/">
    <PARAM1>wwww</PARAM1></InputParameters></part>
    </Invoke_DBService_DBAdaptor2_Service_InputVariable>
    Invoke_DBService
    [2011/02/21 17:07:04] Invoked 2-way operation "DBAdaptor2_Service" on partner "DBAdaptor2_Service".less
    - <messages>
    - <Invoke_DBService_DBAdaptor2_Service_InputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters">
    - <InputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/GETCONCATESTRING/"><PARAM1>wwww</PARAM1>
    </InputParameters></part>
    </Invoke_DBService_DBAdaptor2_Service_InputVariable>
    - <Invoke_DBService_DBAdaptor2_Service_OutputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="OutputParameters">
    - <db:OutputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/GETCONCATESTRING/"><PARAM2>wwww Extra added</PARAM2></db:OutputParameters></part>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="response-headers">[]</part>
    </Invoke_DBService_DBAdaptor2_Service_OutputVariable>
    </messages>
    Assign_out (faulted)
    [2011/02/21 17:07:04] Error in evaluate <from> expression at line "87". The result is empty for the XPath expression : "/ns2:OutputParameters/ns2:PARAM2".less
    oracle.xml.parser.v2.XMLElement@7cc53
    [2011/02/21 17:07:04] "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.less
    - <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    - <part name="summary">
    <summary>
    empty variable/expression result.
    xpath variable/expression expression "/ns2:OutputParameters/ns2:PARAM2" is empty at line 87, when attempting reading/copying it.
    Please make sure the variable/expression result "/ns2:OutputParameters/ns2:PARAM2" is not empty.
    </summary></part></selectionFailure>
    I am not able to fix this issue please help me out.
    Thanks in Advance
    Thanks,Abhijit

    Hi,
    Thanks for reply.
    For the development guideline i had followed "http://www.erpschools.com/apps/oracle-applications/articles/Fusion-Middleware/SOA/BPEL/BPEL-Database-Adapter-Part-2/index.aspx" this document. Instead of using "select" query, here I am using database procedure to get output.
    For this I am giving input as "Abhijit" and database procedure "GETCONCATESTRING" is returning value as "Abhijit Extra added",
    but finally i am getting this error:
    Invoke_DBService
    [2011/02/22 12:55:08]
    Invoked 2-way operation "DBAdaptor2_Service" on partner "DBAdaptor2_Service".
    - <messages>
    - <Invoke_DBService_DBAdaptor2_Service_InputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters">
    - <InputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/GETCONCATESTRING/">
    <PARAM1> Abhijit </PARAM1> </InputParameters> </part> </Invoke_DBService_DBAdaptor2_Service_InputVariable>
    - <Invoke_DBService_DBAdaptor2_Service_OutputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="OutputParameters">
    - <db:OutputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/ *GETCONCATESTRING* /">
    <PARAM2> Abhijit     Extra added </PARAM2></db:OutputParameters></part>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="response-headers">[]</part>
    </Invoke_DBService_DBAdaptor2_Service_OutputVariable></messages>
    Please Guide me to use Receive Activity for output.
    Edited by: 815926 on Feb 21, 2011 11:41 PM
    Edited by: 815926 on Feb 21, 2011 11:42 PM

  • How do I create a 1d array that takes a single calculation and insert the result into the first row and then the next calculation the next time the loop passes that point and puts the results in thsecond row and so on until the loop is exited.

    The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
    The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
    pear to be working or at least I am not getting any indication on the inidcator.
    Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
    Attachments:
    regulation_tester_7_loops.vi ‏244 KB

    I didn't really have time to dig in and understand your program in depth,
    but I have a few tips for you that might things a bit easier:
    - You use local variables excessively which really complicates things. Try
    not to use them and it will make your life easier.
    - If you flowchart the design (very similar to a dataflow diagram, keep in
    mind!) you want to gather data, calculate a value from that data, store the
    calculation in an array, and loop while the time is in a certain range. So
    theres really not much need for a sequence as long as you get rid of the
    local variables (sequences also complicate things)
    - You loop again if timepassed+1 is still less than some constant. Rather
    than messing with locals it seems so much easier to use a shiftregister (if
    absolutely necessary) or in this case base it upon the number of iterations
    of the loop. In this case it looks like "time passed" is the same thing as
    the number of loop iterations, but I didn't check closely. There's an i
    terminal in your whileloop to read for the number of iterations.
    - After having simplified your design by eliminating unnecessary sequence
    and local variables, you should be able to draw out the labview diagram.
    Don't try to use the "insert into array" vis since theres no need. Each
    iteration of your loop calculates a number which goes into the next position
    of the array right? Pass your result outside the loop, and enable indexing
    on the terminal so Labview automatically generates the array for you. If
    your calculation is a function of previous data, then use a shift register
    to keep previous values around.
    I wish you luck. Post again if you have any questions. Without a more
    detailed understanding of your task at hand it's kind of hard to post actual
    code suggestions for you.
    -joey
    "nelsons" wrote in message
    news:[email protected]...
    > how do I create a 1d array that takes a single calculation and insert
    > the result into the first row and then the next calculation the next
    > time the loop passes that point and puts the results in thsecond row
    > and so on until the loop is exited.
    >
    > The attached file is work inprogress, with some dummy data sp that I
    > can test it out without having to connect to equipment.
    > The second tab is the one that I am having the problem with. the
    > output array from the replace element appears to be starting at the
    > index position of 1 rather than 0 but that is ok it is still show that
    > the new data is placed in incrementing element locations. However the
    > main array that I am trying to build that is suppose to take each new
    > calculation and place it in the next index(row) does not appear to be
    > working or at least I am not getting any indication on the inidcator.
    >
    > Basically what I am attempting to do is is gather some pulses from
    > adevice for a minute, place the results for a calculation, so that it
    > displays then do the same again the next minute, but put these result
    > in the next row and so on until the specifiied time has expired and
    > the loop exits. I need to have all results displayed and keep building
    > the array(display until, the end of the test)Eventually I will have to
    > include a min max section that displays the min and max values
    > calculated, but that should be easy with the min max function.Actually
    > I thought this should have been easy but, I gues I can not see the
    > forest through the trees. Can any one help to slear this up for me.

  • "Error while parsing SOAP XML payload: no element found" received when invoking Web Service

    Running PB 12.1 Build 7000.  Using Easysoap.  Error ""Error while parsing SOAP XML payload: no element found" received when invoking Web Service".  This error does not appear to be coming from the application code.  Noticed that there were some erroneous characters showing up within the header portion of the XML ("&Quot;").  Not sure where these are coming from.  When I do a find within the PB code for ""&quot;" it gets located within two objects, whereas they both reference a "temp_xml_letter".  Not sure where or what temp_xml_letter resides???   The developer of this is no longer with us and my exposure to WSDL and Web Services is rather limited.  Need to get this resolved...please.
    This is the result of the search.  Notice the extraneous characters ("&quot;"):
    dar1main.pbl(d_as400_mq_xml)
    darlettr.pbl(d_email_xml)
    ---------- Search: Searching Target darwin for 'temp_xml'    (9:52:41 AM)
    ---------- 2 Matches Found On "temp_xml":
    dar1main.pbl(d_as400_mq_xml).d_as400_mq_xml:  export.xml(usetemplate="temp_xml_letter" headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0  template=(comment="" encoding="UTF-8" name="temp_xml_letter" xml="<?xml version=~"1.0~" encoding=~"UTF-16LE~" standalone=~"yes~"?><EmailServiceTransaction xmlns=~"http://xml.xxnamespace.com/Utility/Email/EmailService" ~" xmlns:imc=~"http://xml.xxnamespace.com/IMC~" xmlns:xsi=~"http://www.w3.org/2001/XMLSchema-instance~" xmlns:root=~"http://xml.xxnamespace.com/RootTypes~" xmlns:email=~"http://xml.xxnamespace.com/Utility/Email~" xsi:schemaLocation=~"http://xml.xxnamespace.com/Utility/Email/EmailService http://dev.xxnamespace.com/Utility/Email/EmailService/V10-TRX-EmailService.xsd~"><EmailServiceInformation><EmailServiceDetail __pbband=~"detail~"><ApplicationIdentifier> applicationidentifier </ApplicationIdentifier><AddresseeInformation><AddresseeDetail><Number> number </Number></AddresseeDetail></AddresseeInformation><EmailMessageInformation><Ema
    darlettr.pbl(d_email_xml).d_email_xml:  export.xml(usetemplate="temp_xml_letter" headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0  template=(comment="" encoding="UTF-8" name="temp_xml_letter" xml="<?xml version=~"1.0~" encoding=~"UTF-16LE~" standalone=~"yes~"?><EmailServiceTransaction xmlns=~"http://xml.xxnamespace.com/Utility/Email/EmailService" ~" xmlns:imc=~"http://xml.xxnamespace.com/IMC~" xmlns:xsi=~"http://www.w3.org/2001/XMLSchema-instance~" xmlns:root=~"http://xml.xxnamespace.com/RootTypes~" xmlns:email=~"http://xml.xxnamespace.com/Utility/Email~" xsi:schemaLocation=~"http://xml.xxnamespace.com/Utility/Email/EmailService http://dev.xxnamespace.com/Utility/Email/EmailService/V10-TRX-EmailService.xsd~"><EmailServiceInformation><EmailServiceDetail __pbband=~"detail~"><ApplicationIdentifier> applicationidentifier </ApplicationIdentifier><AddresseeInformation><AddresseeDetail><Number> imcnumber </Number></AddresseeDetail></AddresseeInformation><EmailMessageInformation><Ema
    ---------- Done 2 Matches Found On "temp_xml":
    ---------- Finished Searching Target darwin for 'temp_xml'    (9:52:41 AM)

    Maybe "extraneous" is an incorrect term.  Apparantly, based upon the writeup within Wiki, the parser I am using does not interpret the "&quot;"?  How do I find which parser is being utilized and how to control it?
    <<<
    If the document is read by an XML parser that does not or cannot read external entities, then only the five built-in XML character entities (see above) can safely be used, although other entities may be used if they are declared in the internal DTD subset.
    If the document is read by an XML parser that does read external entities, then the five built-in XML character entities can safely be used. The other 248 HTML character entities can be used as long as the XHTML DTD is accessible to the parser at the time the document is read. Other entities may also be used if they are declared in the internal DTD subset.
    >>>

  • How to Parse a string into an XML DOM ?

    Hi,
    I want to parse a String into an XML DOM. Not able to locate any parser which supports that. Any pointers to this?

    Download Xerces from xml.apache.org. Place the relevant JAR's on your classpath. Here is sample code to get a DOM document reference.
    - Saish
    public final class DomParser extends Object {
         // Class Variables //
         private static final DocumentBuilder builder;
         private static final String JAXP_SCHEMA_LANGUAGE =
             "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
         /** W3C schema definitions */
         private static final String W3C_XML_SCHEMA =
             "http://www.w3.org/2001/XMLSchema";
         // Constructors //
         static {
              try {
                   DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   factory.setNamespaceAware(true);
                   factory.setValidating(true);
                   factory.setAttribute(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA);
                   builder = factory.newDocumentBuilder();
                   builder.setErrorHandler(new ErrorHandler() {
                       public void warning(SAXParseException e) throws SAXException {
                           System.err.println("[warning] "+e.getMessage());
                       public void error(SAXParseException e) throws SAXException {
                           System.err.println("[error] "+e.getMessage());
                       public void fatalError(SAXParseException e) throws SAXException {
                           System.err.println("[fatal error] "+e.getMessage());
                           throw new XmlParsingError("Fatal validation error", e);
              catch (ParserConfigurationException fatal) {
                   throw new ConfigurationError("Unable to create XML DOM document parser", fatal);
              catch (FactoryConfigurationError fatal) {
                   throw new ConfigurationError("Unable to create XML DOM document factory", fatal);
         private DomParser() {
              super();
         // Public Methods //
         public static final Document newDocument() {
              return builder.newDocument();
         public static final Document parseDocument(final InputStream in) {
              try {
                   return builder.parse(in);
              catch (SAXException e) {
                   throw new XmlParsingError("SAX exception during parsing.  Document is not well-formed or contains " +
                        "illegal characters", e);
              catch (IOException e) {
                   throw new XmlParsingError("Encountered I/O exception during parsing", e);
    }- Saish

  • Help: How to parse XML string into Node Context

    Hi Experts,
    I am trying to work with a web dynpro for java application which calls a Web Service. I can call the web service successfully, however I have a problem on interpreting the response result into table. The response result is in (XML) string format, like this:
    I followed this , but it resulted to an error:
    com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Name expected: 0x20(:main:, row:158, col:59)(:main:, row=158, col=59) -> com.sap.engine.lib.xml.parser.ParserException: Name expected: 0x20(:main:, row:158, col:59)
    do anyone of you had a similar experience and were able to resolve it, please post it here. it will be highly appreciated. thanks in advance.

    Try this :
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document doc = db.parse(new org.xml.sax.InputSource(new StringReader(strXml)));Hope this helps.

  • Parsing dataset and spry variable

    Hi there,
    Some curiosity of mine, can we parse spry dataset and
    variable to another function? something like parsing a dataset so
    we can save a lot code, example:
    quote:
    function reload(dataSource){ //dataSource was spry data set
    object
    dataSource.loadData();
    dataSource.setCurrentRow(0);
    and parsing spry variable, example i want to use Google
    Visualization API
    quote:
    function drawGraph(dataSource){
    //preprocessing and loop code here... i dunno how to create
    it with spry
    data.setValue(x, y, '{dataSource::value1}');
    //end loop
    so we just parse dataset and loop until last variable value
    to draw graph
    thanks,
    Dels

    Thanks,
    That was i need, btw how about question no 1? say i want to
    do something with my multiple dataset, in this case change url and
    reloading data
    quote:
    reload(ds1, 'new1.xml'); //spry dataset
    reload(ds2, 'new2.xml'); //spry dataset
    function reload(dataSource,url){ //dataSource was spry data
    set object
    dataSource.setUrl(url);
    dataSource.loadData();
    dataSource.setCurrentRow(0);
    i have tried that and it couldn't work... (maybe because i
    tried to pass object into function)

  • ERROR: Failed to update prerequisite results into the registry; error = 1 for sccm 2012 secondary site installation

    Hi,
    We try to install sccm 2012 serondary site in server 2012. It always failed.
    I used the rereqchek tools to check system enviroment locally. All passed.
    The primary site installed in server 2012.  Both server had granted the administrator permission.
    Anyone can help to check the below Configmgrprereq.log
    <01-16-2015 08:47:55> ********************************************
    <01-16-2015 08:47:55> ******* Start Prerequisite checking. *******
    <01-16-2015 08:47:55> ********************************************
    <01-16-2015 08:47:55> Commandline :
    "D:\Microsoft Configuration Manager\bin\x64\smsexec.exe"
    <01-16-2015 08:47:55> Check Type: Secondary site
     Site Server: DPServer.ms.com,
     SQL Server: DPServer.ms.com,
     SQL Named Instance: ,
     Install Folder: d:\Program Files\Microsoft Configuration Manager\,
     Setup Source Folder: D:\SCCM2012\Source
    <01-16-2015 08:47:55> INFO: Executing prerequisite functions...
    <01-16-2015 08:47:55> ===== INFO: Prerequisite Type & Server: SITE_SEC:DPServer.ms.com =====
    <01-16-2015 08:47:55> <<<RuleCategory: Access Permissions>>>
    <01-16-2015 08:47:55> <<<CategoryDesc: Checking access permissions...>>>
    <01-16-2015 08:47:55> INFO: CheckLocalSys is Admin of <DPServer.ms.com>.
    <01-16-2015 08:48:08> DPServer.ms.com;    Site server computer account administrative rights;    Error;    Configuration Manager Setup requires that the site server computer has administrative rights on
    the SQL Server and management point computers.
    <01-16-2015 08:48:08> <<<RuleCategory: System Requirements>>>
    <01-16-2015 08:48:08> <<<CategoryDesc: Checking system requirements for ConfigMgr...>>>
    <01-16-2015 08:48:08> INFO: Check Lanman service: <DPServer.ms.com>.
    <01-16-2015 08:48:22> DPServer.ms.com;    Check Server Service is running;    Passed
    <01-16-2015 08:48:30> INFO: OS version:0, ServicePack:0.
    <01-16-2015 08:48:30> DPServer.ms.com;    Unsupported site server operating system version for Setup;    Error;    Configuration Manager site systems can only be installed on systems running Windows Server
    2008 SP2 or later.
    <01-16-2015 08:48:34> INFO: Failed to get Active Directory membership information for computer DPServer.ms.com with 0.
    <01-16-2015 08:48:34> DPServer.ms.com;    Domain membership;    Error;    Configuration Manager site server components must be installed on computers that are members of a Windows domain.
    <01-16-2015 08:48:40> INFO: Free disk space on target \\DPServer.ms.com\d$\. = 510158 MB
    <01-16-2015 08:48:40> DPServer.ms.com;    Free disk space on site server;    Passed
    <01-16-2015 08:48:47> DPServer.ms.com;    Pending system restart;    Passed
    <01-16-2015 08:48:50> INFO: The server DPServer.ms.com is not read-only domain controller.
    <01-16-2015 08:48:50> DPServer.ms.com;    Read-Only Domain Controller;    Passed
    <01-16-2015 08:48:50> INFO: Check FQDN Length for site server: <DPServer.ms.com>.
    <01-16-2015 08:48:50> DPServer.ms.com;    Site Server FQDN Length;    Passed
    <01-16-2015 08:48:50> <<<RuleCategory: Dependent Components>>>
    <01-16-2015 08:48:50> <<<CategoryDesc: Checking dependent components for ConfigMgr...>>>
    <01-16-2015 08:48:57> DPServer.ms.com;    Microsoft XML Core Services 6.0 (MSXML60);    Warning;    MSXML 6.0 or later libraries are required for Configuration Manager console and Configuration Manager site
    server installations. MSXML 6.0 is available for download at http://go.microsoft.com/fwlink/?LinkId=215744
    <01-16-2015 08:49:03> DPServer.ms.com;    Microsoft Remote Differential Compression (RDC) library registered;    Error;    Microsoft Remote Differential Compression (RDC) library must be registered for Configuration
    Manager site server installation. Details at http://technet.microsoft.com/library/cc431377.aspx#RDC_for_Site_Servers.
    <01-16-2015 08:49:03> INFO: Checking Windows Installer version on DPServer.ms.com.
    <01-16-2015 08:49:13> INFO: Path of Windows Installer is <\\DPServer.ms.com\C$\Windows\System32\msi.dll>.
    <01-16-2015 08:49:19> ERROR: Failed to determine Windows Installer version from path:<\\DPServer.ms.com\C$\Windows\System32\msi.dll> .
    <01-16-2015 08:49:19> DPServer.ms.com;    Microsoft Windows Installer;    Error;    Setup failed to verify the Windows Installer version, or the installed version of Windows Installer does not meet the minimum
    requirement.  Configuration Manager requires at least Windows Installer version 4.5.
    <01-16-2015 08:49:19> INFO: Start Checking InstallSQLExpress on site server: DPServer.ms.com, SQL Server instance CONFIGMGRSEC
    <01-16-2015 08:49:28> INFO: SQL Server Instance Names value was not found
    <01-16-2015 08:49:28> INFO: IsPortUsedByAnySqlInstance port 1433.
    <01-16-2015 08:49:39> INFO: TCP port 1433 is not in use by any other SQL Server instances.
    <01-16-2015 08:49:49> INFO: Sql express: OS version:0, ServicePack:0.
    <01-16-2015 08:49:49> ERROR: Cannot install sqlexpress 2012, not meet OS requirement: Windows server 2008 sp2, Windows server 2008 R2 sp1 or higher.
    <01-16-2015 08:49:49> DPServer.ms.com;    SQL Server Express on Secondary Site;    Error;    A SQL Server instance is already installed on the secondary site server using the instance name CONFIGMGRSEC,
    or the specified TCP port is being used by another SQL Server instance, or OS version is not Windows Server 2008 sp2, Windows Server 2008 R2 sp1 or higher. Setup is unable to install SQL Server Express on the secondary site.
    <01-16-2015 08:49:55> ERROR: Failed to connect to registry of DPServer.ms.com
    <01-16-2015 08:49:55> DPServer.ms.com;    Existing Configuration Manager server components on site server;    Error;    A site server or site system role is already installed on the computer selected for
    site server installation. Remove the site or site system role from the computer, or select another computer for site server installation.
    <01-16-2015 08:49:55> DPServer.ms.com;    Firewall exception for SQL Server (stand-alone primary site);    Passed
    <01-16-2015 08:49:55> INFO: SQL Server computer <DPServer.ms.com>
    <01-16-2015 08:49:55> INFO: SQL Server named instance <>
    <01-16-2015 08:49:55> INFO: Install SQL Server Express on secondary site, skip checking.
    <01-16-2015 08:49:55> DPServer.ms.com;    SQL Server service running account;    Passed
    <01-16-2015 08:49:55> INFO: Install SQL Server Express on secondary site, skip checking.
    <01-16-2015 08:49:55> DPServer.ms.com;    Dedicated SQL Server instance;    Passed
    <01-16-2015 08:49:55> INFO: CheckSQLCollationSecondary
    <01-16-2015 08:49:55> INFO: Installing SQL Server Express; skipping
    <01-16-2015 08:49:55> DPServer.ms.com;    Parent/child database collation;    Passed
    <01-16-2015 08:49:55> INFO: Checking .NET framework versions 3.5...
    <01-16-2015 08:50:05> INFO: .NET is installed
    <01-16-2015 08:50:05> DPServer.ms.com;    Minimum .NET Framework version for Configuration Manager site server;    Passed
    <01-16-2015 08:50:05> INFO: Checking .NET version required for installing SQL Server Express for Secondary Site.
    <01-16-2015 08:50:05> INFO: Checking .NET framework versions 4.0...
    <01-16-2015 08:50:10> INFO: .NET is installed
    <01-16-2015 08:50:11> DPServer.ms.com;    Minimum .NET Framework version for SQL Server Express edition installation for Configuration Manager Secondary Site;    Passed
    <01-16-2015 08:50:11> INFO: CheckInstallSourceVersion <D:\SCCM2012\Source>
    <01-16-2015 08:52:29> ERROR: Could not read install map from \\DPServer.ms.com\D$\\SCCM2012\Source\SMSSETUP\install.map (result 2)
    <01-16-2015 08:52:29> DPServer.ms.com;    Setup Source Version;    Error;    The product version in the source folder specified for secondary site installation does not match the version of the primary site.
    <01-16-2015 08:52:29> INFO:CheckInstallSourcePath <DPServer.ms.com>
    <01-16-2015 08:52:55> ERROR: Failed to call GetResultByRunningService
    <01-16-2015 08:52:55> DPServer.ms.com;    Setup Source Folder;    Error;    The computer account for the secondary site must have Read NTFS and share permissions to the Setup source folder and share. We
    recommend that you do not use administrative shares (for example, C$ and D$) because they require the secondary site computer account to be an administrator on the remote computer.
    <01-16-2015 08:52:55> INFO: Enter CheckSecSiteSqlOnSameMachine.
    <01-16-2015 08:52:55> INFO: Installing SQL Server Express, skipping SQL Server check.
    <01-16-2015 08:52:55> DPServer.ms.com;    SQL Server on the Secondary Site Computer;    Passed
    <01-16-2015 08:52:55> INFO:CheckSupportedFQDNFormat <DPServer.ms.com>
    <01-16-2015 08:53:04> INFO: NetBIOS <NZWHKVMAS020>
    <01-16-2015 08:53:04> DPServer.ms.com;    Primary FQDN;    Passed
    <01-16-2015 08:53:04> INFO:CheckMachineAccountHasADAccess <DPServer.ms.com>
    <01-16-2015 08:53:30> ERROR: Failed to call GetResultByRunningService
    <01-16-2015 08:53:30> DPServer.ms.com;    Verify site server permissions to publish to Active Directory.;    Warning;    The site server might be unable to publish to Active Directory. The computer account
    for the site server must have Full Control permissions to the System Management container in its Active Directory domain. You can ignore this warning if you have manually verified these permissions. For more information about your options to configure required
    permissions, see http://go.microsoft.com/fwlink/p/?LinkId=233190.
    <01-16-2015 08:53:30> INFO:CheckRemoteWMIConnection <DPServer.ms.com>
    <01-16-2015 08:53:44> DPServer.ms.com;    Remote Connection to WMI on Secondary Site;    Passed
    <01-16-2015 08:53:44> INFO: Check required collation of Sql Server.
    <01-16-2015 08:53:44> INFO: LangID <409>
    <01-16-2015 08:53:44> INFO: NOT primary site or CAS install, skipping check for reqired collation of SQL Server.
    <01-16-2015 08:53:44> DPServer.ms.com;    Required SQL Server Collation;    Passed
    <01-16-2015 08:53:44> ===== INFO: Prerequisite Type & Server: SQL:DPServer.ms.com =====
    <01-16-2015 08:53:44> <<<RuleCategory: Access Permissions>>>
    <01-16-2015 08:53:44> <<<CategoryDesc: Checking access permissions...>>>
    <01-16-2015 08:53:44> INFO: Installing SQL Server Express, skipping check for sysadmin role on SQL Server.
    <01-16-2015 08:53:44> DPServer.ms.com;    SQL Server sysadmin rights;    Passed
    <01-16-2015 08:53:44> INFO: Skip testing, no expand primary site specified.
    <01-16-2015 08:53:44> DPServer.ms.com;    SQL Server sysadmin rights for reference site;    Passed
    <01-16-2015 08:53:44> INFO: The rule 'Site server computer account administrative rights' has been run on server 'DPServer.ms.com', skipped.
    <01-16-2015 08:53:44> INFO: Installing SQL Server Express, skipping Windows integrated security check.
    <01-16-2015 08:53:44> DPServer.ms.com;    SQL Server security mode;    Passed
    <01-16-2015 08:53:44> <<<RuleCategory: System Requirements>>>
    <01-16-2015 08:53:44> <<<CategoryDesc: Checking system requirements for ConfigMgr...>>>
    <01-16-2015 08:53:44> INFO: The rule 'Unsupported site server operating system version for Setup' has been run on server 'DPServer.ms.com', skipped.
    <01-16-2015 08:53:44> INFO: The rule 'Domain membership' has been run on server 'DPServer.ms.com', skipped.
    <01-16-2015 08:53:44> INFO: The rule 'Pending system restart' has been run on server 'DPServer.ms.com', skipped.
    <01-16-2015 08:53:44> <<<RuleCategory: Dependent Components>>>
    <01-16-2015 08:53:44> <<<CategoryDesc: Checking dependent components for ConfigMgr...>>>
    <01-16-2015 08:53:44> INFO: Installing SQL Server Express, skipping SQL Server version check.
    <01-16-2015 08:53:44> DPServer.ms.com;    SQL Server version;    Passed
    <01-16-2015 08:53:44> DPServer.ms.com;    SQL Server Edition;    Passed
    <01-16-2015 08:53:44> DPServer.ms.com;    SQL Server Tcp Port;    Passed
    <01-16-2015 08:53:44> INFO: Checking if SQL Server memory is limited.
    <01-16-2015 08:53:44> INFO: Installing SQL Server Express, skipping SQL Server memory check.
    <01-16-2015 08:53:44> DPServer.ms.com;    Configuration for SQL Server memory usage;    Passed
    <01-16-2015 08:53:44> INFO: Checking if SQL Server memory is configured to reserve minimum memory.
    <01-16-2015 08:53:44> INFO: Installing SQL Server Express, skipping SQL Server memory allocation check.
    <01-16-2015 08:53:44> DPServer.ms.com;    SQL Server process memory allocation;    Passed
    <01-16-2015 08:53:44> INFO: Installing SQL Server Express, skipping SQL Server case insensitive validation.
    <01-16-2015 08:53:44> DPServer.ms.com;    Case-insensitive collation on SQL Server;    Passed
    <01-16-2015 08:53:44> INFO: Check Machine FQDN: <DPServer.ms.com>.
    <01-16-2015 08:53:44> INFO: getaddrinfo returned success.
    <01-16-2015 08:53:44> DPServer.ms.com;    Validate FQDN of SQL Server Computer;    Passed
    <01-16-2015 08:53:44> INFO: The rule 'Primary FQDN' has been run on server 'DPServer.ms.com', skipped.
    <01-16-2015 08:53:44> ===== INFO: Prerequisite Type & Server: MP:DPServer.ms.com =====
    <01-16-2015 08:53:44> <<<RuleCategory: Access Permissions>>>
    <01-16-2015 08:53:44> <<<CategoryDesc: Checking access permissions...>>>
    <01-16-2015 08:53:44> DPServer.ms.com;    Administrative share (Site system);    Passed
    <01-16-2015 08:53:44> INFO:CheckSiteSystemtoSQLConnectivity <DPServer.ms.com>
    <01-16-2015 08:53:44> INFO: Installing secondary site, skipping SQL Server connectivity check.
    <01-16-2015 08:53:44> DPServer.ms.com;    Site System to SQL Server Communication;    Passed
    <01-16-2015 08:53:44> <<<RuleCategory: System Requirements>>>
    <01-16-2015 08:53:44> <<<CategoryDesc: Checking system requirements for ConfigMgr...>>>
    <01-16-2015 08:53:44> INFO: The rule 'Check Server Service is running' has been run on server 'DPServer.ms.com', skipped.
    <01-16-2015 08:53:52> INFO: OS version:0, ServicePack:0.
    <01-16-2015 08:53:52> DPServer.ms.com;    Unsupported management point operating system version for Setup;    Warning;    Configuration Manager site systems can only be installed on systems running Windows
    Server 2008 SP2 or later.
    <01-16-2015 08:53:52> INFO: The rule 'Domain membership' has been run on server 'DPServer.ms.com', skipped.
    <01-16-2015 08:54:05> INFO: Windows Cluster not found on DPServer.ms.com.
    <01-16-2015 08:54:05> DPServer.ms.com;    Windows Failover Cluster;    Passed
    <01-16-2015 08:54:05> INFO: The rule 'Pending system restart' has been run on server 'DPServer.ms.com', skipped.
    <01-16-2015 08:54:05> <<<RuleCategory: Dependent Components>>>
    <01-16-2015 08:54:05> <<<CategoryDesc: Checking dependent components for ConfigMgr...>>>
    <01-16-2015 08:54:05> INFO: The rule 'Microsoft XML Core Services 6.0 (MSXML60)' has been run on server 'DPServer.ms.com', skipped.
    <01-16-2015 08:54:10> DPServer.ms.com;    IIS service running;    Warning;    Internet Information Services (IIS) is required for some site system roles. You have selected to install a site system role that
    requires IIS. Install IIS on the site system to continue setup.
    <01-16-2015 08:54:39> ERROR: Failed to get WEBSVCEXT from Remote Service on DPServer.ms.com.
    <01-16-2015 08:54:39> INFO: Failed to get IIS BITS Server Extensions state on DPServer.ms.com.
    <01-16-2015 08:54:39> DPServer.ms.com;    BITS installed;    Warning;    Background Intelligent Transfer Service (BITS) is required for the management point and distribution point site system roles. BITS
    is not installed, IIS 6 WMI compatibility component for IIS7 is not installed on this computer or the remote IIS host, or Setup was unable to verify remote IIS settings because IIS common components were not installed on the site server computer. Also, check
    if IIS/BITS services are running properly. Setup cannot continue until BITS is installed and enabled in the IIS settings.
    <01-16-2015 08:55:08> ERROR: Failed to get WEBSVCEXT from Remote Service on DPServer.ms.com.
    <01-16-2015 08:55:08> INFO: Failed to get IIS BITS Server Extensions state on DPServer.ms.com.
    <01-16-2015 08:55:08> DPServer.ms.com;    BITS enabled;    Warning;    Background Intelligent Transfer Service (BITS) is required for the management point and distribution point site system roles. BITS is
    not installed, IIS 6 WMI compatibility component for IIS7 is not installed on this computer or the remote IIS host, or Setup was unable to verify remote IIS settings because IIS common components were not installed on the site server computer. Also, check
    if IIS/BITS services are running properly. Setup cannot continue until BITS is installed and enabled in the IIS settings.
    <01-16-2015 08:55:08> DPServer.ms.com;    IIS HTTPS Configuration for management point;    Passed
    <01-16-2015 08:55:08> INFO: Stand-alone primary site or secondary site. Skip checking firewall settings for SQL Server
    <01-16-2015 08:55:08> DPServer.ms.com;    Firewall exception for SQL Server for management point;    Passed
    <01-16-2015 08:55:08> DPServer.ms.com;    Administrative rights on management point;    Passed
    <01-16-2015 08:55:08> INFO:CheckV4ClientNotInstalled <DPServer.ms.com>
    <01-16-2015 08:55:36> ERROR: Failed to call GetResultByRunningService
    <01-16-2015 08:55:36> DPServer.ms.com;    Client Version on Management Point Computer;    Warning;    You cannot install the management point on a computer with an earlier version of the Configuration Manager
    client installed. Upgrade the client to the current version, remove the client, or select a different computer for the management point installation, and then try again.
    <01-16-2015 08:55:36> ===== INFO: Prerequisite Type & Server: DP:DPServer.ms.com =====
    <01-16-2015 08:55:36> <<<RuleCategory: Access Permissions>>>
    <01-16-2015 08:55:36> <<<CategoryDesc: Checking access permissions...>>>
    <01-16-2015 08:55:36> <<<RuleCategory: System Requirements>>>
    <01-16-2015 08:55:36> <<<CategoryDesc: Checking system requirements for ConfigMgr...>>>
    <01-16-2015 08:55:49> DPServer.ms.com;    Unsupported distribution point operating system version for Setup;    Warning;    Configuration Manager distribution point can only be installed on systems running
    Windows Server 2003 or later.
    <01-16-2015 08:55:49> INFO: The rule 'Domain membership' has been run on server 'DPServer.ms.com', skipped.
    <01-16-2015 08:55:49> INFO: The rule 'Windows Failover Cluster' has been run on server 'DPServer.ms.com', skipped.
    <01-16-2015 08:55:49> INFO: The rule 'Pending system restart' has been run on server 'DPServer.ms.com', skipped.
    <01-16-2015 08:55:49> <<<RuleCategory: Dependent Components>>>
    <01-16-2015 08:55:49> <<<CategoryDesc: Checking dependent components for ConfigMgr...>>>
    <01-16-2015 08:55:57> DPServer.ms.com;    Microsoft XML Core Services 6.0 (MSXML60) for distribution point;    Warning;    MSXML 6.0 or later libraries are required for Configuration Manager console and
    Configuration Manager site server installations. MSXML 6.0 is available for download at http://go.microsoft.com/fwlink/?LinkId=215744
    <01-16-2015 08:55:57> INFO: The rule 'IIS service running' has been run on server 'DPServer.ms.com', skipped.
    <01-16-2015 08:55:57> DPServer.ms.com;    IIS HTTPS Configuration for distribution point;    Passed
    <01-16-2015 08:55:57> DPServer.ms.com;    Administrative rights on distribution point;    Passed
    <01-16-2015 08:55:57> ***************************************************
    <01-16-2015 08:55:57> ******* Prerequisite checking is completed. *******
    <01-16-2015 08:55:57> ***************************************************
    <01-16-2015 08:55:57> INFO: Updating Prerequisite checking result into the registry
    <01-16-2015 08:55:57> INFO: Connecting to DPServer.ms.com registry
    <01-16-2015 08:56:09> INFO: Setting registry values
    <01-16-2015 08:56:16> ERROR: Failed to update prerequisite results into the registry; error = 1.

    <01-16-2015 08:48:08> DPServer.ms.com;    Site server computer account administrative rights;    Error;    Configuration Manager Setup requires that the site server computer has administrative rights
    on the SQL Server and management point computers.
    Actually the administrative permission had been granted.

  • How to call a SP with dynamic columns and output results into a .csv file via SSIS

    hi Folks, I have a challenging question here. I've created a SP called dbo.ResultsWithDynamicColumns and take one parameter of CONVERT(DATE,GETDATE()), the uniqueness of this SP is that the result does not have fixed columns as it's based on sales from previous
    days. For example, Previous day, customers have purchased 20 products but today , 30 products have been purchased.
    Right now, on SSMS, I am able to execute this SP when supplying  a parameter.  What I want to achieve here is to automate this process and send the result as a .csv file and SFTP to a server. 
    SFTP part is kinda easy as I can call WinSCP with proper script to handle it.  How to export the result of a dynamic SP to a .CSV file? 
    I've tried
    EXEC xp_cmdshell ' BCP " EXEC xxxx.[dbo].[ResultsWithDynamicColumns ]  @dateFrom = ''2014-01-21''"   queryout  "c:\path\xxxx.dat" -T -c'
    SSMS gives the following error as Error = [Microsoft][SQL Server Native Client 10.0]BCP host-files must contain at least one column
    any ideas?
    thanks
    Hui
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Hey Jakub, thanks and I did see the #temp table issue in our 2008R2.  I finally figured it out in a different way... I manage to modify this dynamic SP to output results into
    a physical table. This table will be dropped and recreated everytime when SP gets executed... After that, I used a SSIS pkg to output this table
    to a file destination which is .csv.  
     The downside is that if this table structure ever gets changed, this SSIS pkg will fail or not fully reflecting the whole table. However, this won't happen often
    and I can live with that at this moment. 
    Thanks
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

Maybe you are looking for