Parameter with xml format....
I hav to send 3 parameters via HTTP. There r
1. cpid (datatype: string)
2. pwd (datatype: string)
3. msg in xml format :
<mms>
<subject>message subject</subject>
<url_image>http://image_url</url_image>
<url_sound>http://sound_url</url_sound>
<url_video>http://video_url</url_video>
<text>message text</text>
<msisdn_sender>6281XYYYYYY</msisdn_sender>
<msisdn_receipient>6281XYYYYYY</msisdn_receipient>
<sid>to be define later</sid>
<trx_id>Unique number</trx_id>
<trx_date>yyyyMMddHHmmss</trx_date>
<contentid>see note</contentid>
</mms>
I'm stuckd on msg parameter. How can i effectively assign msg with data in xml format? I mean if i create an xml file & send it with others params, it will increase the I/O cost, coz everytime request made, the application must create an xml file....
Any suggestion??
Thx b4 in advance...
I understand what you are trying to do, I get the same problem.
It seems to be that with the "go" you can request a report in xml format OR you can filter a report with passed parameters, but it doesnt seem to like you passing filters AND wanting the results in xml format.
Heres my examples
1 - call report in xml format - this works
saw.dll?Go&Path=/shared/Reports/TestReport&Format=xml
2 - call report with filter passed ( the table.column is set to "is prompted" in the report ) - this works
saw.dll?Go&Path=/shared/Reports/TestReport&Action=Navigate&Format=xml&col1={table}.[column}&op1=eq&val1={passed value}
3 - call report in xml with filters - this does NOT work observes the XML format only.
saw.dll?Go&Path=/shared/Reports/TestReport&Format=xml
&Action=Navigate&Format=xml&col1={table}.[column}&op1=eq&val1={passed value}
If anyone has a solution to this I'd be really interested to know.
Similar Messages
-
Error in back up with xml format
Hi
when i was getting to backup the database with xml format . iam getting this type of errors..
The 'DimensionID' required element is missing under Envelope/Body/Execute/Command/Alter/ObjectDefinition/Cube/Dimensions/Dimension
at line 21, column 28 (namespace 'http://schemas.microsoft.com/analysisservices/2003/engine.
how to solve the issues ..
please help me..
thanksHi Sheshu,
According to your description, you are experiencing the issue "The 'DimensionID' required element is missing under....." when back up you databased using XML format, right?
After investigate this issue, the underlying cause is not fully known. You can process the database and then backup it again. Here are blogs that describe how to backup SQL Server Analysis Services using XMLA, please see:
http://www.sqlservergeeks.com/sql-server-backing-up-analysis-services-database-automatically-part-1/
http://www.ssas-info.com/analysis-services-scripts/2679-script-to-backup-ssas-database-and-delete-old-backup-files
If the issue persists, please provide us more information about it, so that we can make further analysis.
Regards,
Charlie Liao
TechNet Community Support -
SOAP Axis adapter - problem with XML formatting
Hello All,
We are using SOAP Axis adapter on our scenario (because of NTLM authenticatiom) and faced a problem that some module in a module chain is pretty-formatting XML message (inserting newlines and spaces).
Receiving WebService is REALLY strict on format and doesn't allow spaces and newlines between XML elements.
Formatting is for sure done already in adapter as in sxmb_moni message is still one-liner.
After different tests this formatting is most likely done by XI30OutboundHandler.
Are there any parameters to prevent this formatting?
If there are no parameters, than maybe there is a standard module to remove this XML indentation?
Where I can found source code for XI30OutboundHandler to check how it is extracting payload from XI message?
Thanks in advance for your answers!
Best Regards,
Artsiom AnichenkaHi, have you find a solution for this problem?
I've tried set the parameter “disablePrettyXML”, as mentioned in SAP note 1039369 (search for “disabling pretty XML”), but apparently it didn’t work too. Have you tried that?
I still get linefeeds and carriage return in the post requisition to the WebService.
Regards,
Ronaldo Schork. -
All,
Lets suppose we have a table like
create table Test_data
user_mane varchar2(30),
user_id number,
xml_data varchar2(3000)
and we have inserted the data as
Insert into Test_data(user_mane,user_id,xml_data) values
('ABC',19,'<Employee><firstName>Kavita</firstName><lastName>Khandhadia</lastName></Employee>');
Insert into Test_data(user_mane,user_id,xml_data) values
('XYZ',19,'<Folder><folderName>Rx</folderName><folderDescription>Rxdescr</folderDescription></Folder>');
Now,In select statement I want to fetch the data without the xml tab. i.e, the data should look like as :
user_mane user_id xml_data
ABC 19 Kavita Khandhadia
XYZ 19 Rx Rxdescr
Need your inputs here.
Regards
Oracle User
Edited by: oracle user on Apr 16, 2012 7:40 AMtry
select user_mane, user_id,
extractvalue(xmltype(xml_data), '/Folder/folderName') || ' ' || extractvalue(xmltype(xml_data), '/Folder/folderDescription') xml_data
from test_data
where existsnode(xmltype(xml_data), '/Folder') = 1
union all
select user_mane, user_id,
extractvalue(xmltype(xml_data), '/Employee/firstName') || ' ' || extractvalue(xmltype(xml_data), '/Employee/lastName') xml_data
from test_data
where existsnode(xmltype(xml_data), '/Employee') = 1
USER_MANE USER_ID XML_DATA
XYZ 19 Rx Rxdescr
ABC 19 Kavita Khandhadiabut i think no good store xml(s) with different structures and as varchar in one table -
PO output with XML and PDF format
Hi All,
I need PO output with XML and PDF format. when I give print it shld go to vendor with xml and pdf format through mail. please kindly guide me on this .
Thanks in advance
JKhi,
try this code to get in pdf form
REPORT zsuresh_test.
Variable declarations
DATA:
w_form_name TYPE tdsfname VALUE 'ZSURESH_TEST',
w_fmodule TYPE rs38l_fnam,
w_cparam TYPE ssfctrlop,
w_outoptions TYPE ssfcompop,
W_bin_filesize TYPE i, " Binary File Size
w_FILE_NAME type string,
w_File_path type string,
w_FULL_PATH type string.
Internal tables declaration
Internal table to hold the OTF data
DATA:
t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
Internal table to hold OTF data recd from the SMARTFORM
t_otf_from_fm TYPE ssfcrescl,
Internal table to hold the data from the FM CONVERT_OTF
T_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.
This function module call is used to retrieve the name of the Function
module generated when the SMARTFORM is activated
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = w_form_name
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = w_fmodule
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Calling the SMARTFORM using the function module retrieved above
GET_OTF parameter in the CONTROL_PARAMETERS is set to get the OTF
format of the output
w_cparam-no_dialog = 'X'.
w_cparam-preview = space. " Suppressing the dialog box
" for print preview
w_cparam-getotf = 'X'.
Printer name to be used is provided in the export parameter
OUTPUT_OPTIONS
w_outoptions-tddest = 'LP01'.
CALL FUNCTION w_fmodule
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = w_cparam
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = w_outoptions
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
job_output_info = t_otf_from_fm
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
t_otf[] = t_otf_from_fm-otfdata[].
Function Module CONVERT_OTF is used to convert the OTF format to PDF
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
ARCHIVE_INDEX = ' '
COPYNUMBER = 0
ASCII_BIDI_VIS2LOG = ' '
PDF_DELETE_OTFTAB = ' '
IMPORTING
BIN_FILESIZE = W_bin_filesize
BIN_FILE =
TABLES
otf = T_OTF
lines = T_pdf_tab
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
To display File SAVE dialog window
CALL METHOD cl_gui_frontend_services=>file_save_dialog
EXPORTING
WINDOW_TITLE =
DEFAULT_EXTENSION =
DEFAULT_FILE_NAME =
FILE_FILTER =
INITIAL_DIRECTORY =
WITH_ENCODING =
PROMPT_ON_OVERWRITE = 'X'
CHANGING
filename = w_FILE_NAME
path = w_FILE_PATH
fullpath = w_FULL_PATH
USER_ACTION =
FILE_ENCODING =
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
others = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Use the FM GUI_DOWNLOAD to download the generated PDF file onto the
presentation server
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = W_bin_filesize
filename = w_FULL_PATH
FILETYPE = 'BIN'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
IMPORTING
FILELENGTH =
tables
data_tab = T_pdf_tab
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
reward points if useful,
siri -
Custom action with XML type input and output parameter.
Hi,
I want to develop custom action with xml type input and/or output parameter.
Is there sample code for java side. How is the definition of input and/or output parameter and set/get methods?
does it need special .jar file to develop custom action like this?
Thanks.Cemil - yes, you can use XML data types. Use the class
com.sap.lhcommon.xml.XMLDataType
for your parameter type. Here is a snippet from a custom action we use to log XML (instead of just returning the #text node like the default logger does):
public class XMLLogger extends ActionReflectionBase
private String source;
private String eventType;
private String textMessage;
private XMLDataType xmlMessage;
public XMLLogger()
log = new Logger("UserLog");
source = DEFAULT_SOURCE;
eventType = TYPE_INFO;
textMessage = "";
xmlMessage = new XMLDataType();
public XMLDataType getXmlMessage()
return xmlMessage;
public void setXmlMessage(XMLDataType xmlMessage)
this.xmlMessage = xmlMessage;
public void Invoke(Transaction transaction, ILog ilog)
StringBuffer sb = new StringBuffer();
sb.append('[');
sb.append(source);
sb.append("] ");
sb.append(textMessage);
sb.append(XMLUtils.convertXmlToString(xmlMessage));
XMLUtils is a helper class we wrote - it's just a bunch of standard Java XML boilerplate code. The important part you need to know is XMLDataType.getDocument() will return an org.w3c.dom.Document.
I hope that was enough information to help.
-tim -
Oracle reports in xml format end with stat_low = 6 stat_high = 0
hi
i have a problem with my reports
i have oracle application 11.5.10.2 on linux 32 redhat 4 update 5
after apply the RUP 6
my character_set is :American_America.AR8MSWIN1256
base lang American
install lang ARABIC
when i generate the reports in xml format i get:
Inventory: Version : 11.5.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
ZMCINVTRREG1 module: ZMC Transaction Register Report
Current system time is 04-AUG-2009 14:32:30
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
P_BREAK_ID='1'
P_RPT_UOM='2'
P_ORG='223'
P_QTY_PRECISION='3'
P_GLCC_STRUCT_NUM='50289'
P_TXN_DATE_LO='2009/08/04 00:00:00'
P_TXN_DATE_HI='2009/08/04 00:00:00'
P_AUDIT_DETAIL='2'
P_REASON_DETAIL='2'
P_LOC_DETAIL='2'
P_CATEGORY_DETAIL='2'
P_SERIAL_DETAIL='2'
P_LOT_DETAIL='2'
P_CATG_SET_ID='1'
P_CATG_STRUCT_NUM='101'
-- Start of Reports Command --
ar60runb
P_CONC_REQUEST_ID=373985
P_BREAK_ID='1'
P_RPT_UOM='2'
P_ORG='223'
P_QTY_PRECISION='3'
P_GLCC_STRUCT_NUM='50289'
P_TXN_DATE_LO='2009/08/04 00:00:00'
P_TXN_DATE_HI='2009/08/04 00:00:00'
P_AUDIT_DETAIL='2'
P_REASON_DETAIL='2'
P_LOC_DETAIL='2'
P_CATEGORY_DETAIL='2'
P_SERIAL_DETAIL='2'
P_LOT_DETAIL='2'
P_CATG_SET_ID='1'
P_CATG_STRUCT_NUM='101'
report=/oraapp/prodappl/inv/11.5.0/reports/US/INVTRREG.rdf
batch=yes
destype=file
desname=/oraapp/prodcomn/admin/out/PROD_apps/o373985.out
desformat=XML
-- End of Reports Command --
Request language is :
AMERICAN
Request territory is :
AMERICA
XML_REPORTS_XENVIRONMENT is set to:
/oraapp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
Enabling XML_REPORTS_ENVIRONMENT based environment switching
The Character-Set of the System is:
AR8MSWIN1256
Environment will now switch to UTF-8 code-set.
Parts of this log file may not display correctly
as a result. This is an expected behavior.
Converting parameters to UTF-8
-- Start of Reports Command Converted to UTF-8 --
ar60runb
P_CONC_REQUEST_ID=373985
P_BREAK_ID='1'
P_RPT_UOM='2'
P_ORG='223'
P_QTY_PRECISION='3'
P_GLCC_STRUCT_NUM='50289'
P_TXN_DATE_LO='2009/08/04 00:00:00'
P_TXN_DATE_HI='2009/08/04 00:00:00'
P_AUDIT_DETAIL='2'
P_REASON_DETAIL='2'
P_LOC_DETAIL='2'
P_CATEGORY_DETAIL='2'
P_SERIAL_DETAIL='2'
P_LOT_DETAIL='2'
P_CATG_SET_ID='1'
P_CATG_STRUCT_NUM='101'
report=/oraapp/prodappl/inv/11.5.0/reports/US/INVTRREG.rdf
batch=yes
destype=file
desname=/oraapp/prodcomn/admin/out/PROD_apps/o373985.out
desformat=XML
-- End of Reports Command --
XML_REPORTS_XENVIRONMENT is :
/oraapp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
XENVIRONMENT is set to /oraapp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
Previous NLS_LANG Environment Variable was :
American_America.AR8MSWIN1256
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8
stat_low = 6
stat_high = 0
emsg:was terminated by signal 6
*** glibc detected *** double free or corruption (!prev): 0x08bf6a78 ***
Report Builder: Release 6.0.8.25.0 - Production on Tue Aug 4 14:32:30 2009
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Enter Username:
Reset original NLS_LANG in environment as :
American_America.AR8MSWIN1256
Program was terminated by signal 6
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 373985.
Review your concurrent request log and/or report output file for more detailed information.
Executing request completion options...
------------- 1) PUBLISH -------------
Beginning post-processing of request 373985 on node APPS at 04-AUG-2009 14:32:37.
Post-processing of request 373985 completed at 04-AUG-2009 14:32:38.
Finished executing request completion options.
Concurrent request completed
Current system time is 04-AUG-2009 14:32:38
can any one help me with it????hi,,,
it seems OS package version conflict
Please check glibc and openmotif version (its responsible for reports)
and
Set the environment variable MALLOC_CHECK_=0 and bounce the Concurrent Managers
MALLOC_CHECK_ can be changed in two places :-
1. Add this to the $APPL_TOP/custom<TWO_TASK>_<HOSTNAME>.env
MALLOC_CHECK_=0
Then restart the concurrent managers and retest
2. Change it in the adovars.env file
Again bounce the concurrent managers and retest
THANKS (ZzZ)
Edited by: zzz on Aug 5, 2009 8:59 AM
Edited by: ZzZ on Aug 5, 2009 9:00 AM -
Issue with Date format - ABAP to XML
Dear Users,
We are currently facing an issue with the date formats in XML.
We have a system (.Net), which has a webservice that we are calling for information from SAP. We created a Proxy class in SAP from the WSDL file and have attempted to use the method that gets us required information based on the Timestamp passed from SAP. However, the timestamp that the INPUT structure uses has a data element XSDDATETIME_Z.
All we can send from SAP is a simple TIMESTAMP, but the .Net system doesn't accept it since it wants the timestamp in XML format i.e. <dd-mm-yyyy>T<hh:mm:ss>Z. SAP documentation says that the field should automatically do conversion from ABAP to XML format, but that doesn't happen. We don't want to build a string from Timestamp in the XML format and send it out since we might surely miss out on the different cases involved.
Can anyone please suggest a way for us to send the date out in the required XML format?
Many thanks!Hi Vijay,
Look at the below sample code and it works fine, i guess there is something wrong in your code or conversion, post the actual code if you are still not able figure it out with the below example.
DATA: l_xml_string TYPE string,
l_dat_time TYPE xsddatetime_z.
CALL FUNCTION 'CACS_DATE_GET_TIMESTAMP'
EXPORTING
I_DATE = sy-datum
I_TIME = sy-uzeit
IMPORTING
E_TIMESTAMP = l_dat_time
EXCEPTIONS
DATE_NOT_FILLED_BUT_TIME = 1
DATE_HAS_NO_VALID_FORMAT = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL TRANSFORMATION id
SOURCE root = l_dat_time
RESULT XML l_xml_string.
IF sy-subrc EQ 0.
write: l_xml_string.
ENDIF.
Regards,
Chen -
Creating xml format file with double dagger ‡ as delimiter
Hi,
My source files are delimited with double dagger (‡) and I am using openrowset to load the files to SQL Server. When I am creating the format file by specifying the delimiter as ‡, the format file created has a different delimiter than the specified one.
The new delimiter appearing in xml format file is ç.
Any help?
TIA
Nitesh Rai- Please mark the post as answered if it answers your questionHow did you create format file?
Try this method and see if it works
http://visakhm.blogspot.com/2013/10/generate-format-files-based-on-table.html
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Hi,
I'm having issues generating a BCP XML format file using a fairly unusual column terminator, a double dagger symbol
‡ (alt + 0135) which I need to support.
I'm experiencing this problem with bcp.exe for SQL2008 R2 and SQL2012.
If I run the following command line:
bcp MyDB.TMP.Test_Extract format nul -c -x -f "C:\BCP\format_file_dagger_test.xml" -T -S localhost\SQL2012 -t‡
I end up with a XML format file like so:
<?xml version="1.0"?>
<BCPFORMAT xmlns="http://schemas.microsoft.com/sqlserver/2004/bulkload/format" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RECORD>
<FIELD ID="1" xsi:type="CharTerm" TERMINATOR="ç" MAX_LENGTH="255" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
<FIELD ID="2" xsi:type="CharTerm" TERMINATOR="ç" MAX_LENGTH="50"
.. and so on.
You will notice that the TERMINATOR="ç" (Minuscule c-cedilla) is output instead of TERMINATOR="‡". The
ç character, is strangely enough is alt + 135 (and not alt + 0135) so this might more than a coincidence! I know you can specify the codepage but this switch applies the data being imported or extracted and not for the format file
itself (I tried it anyway).
In order to use the XML file to bulk import I manually did a text substitution of 'ç' character for '‡' and then BCP imports '‡' data fine.
This character swap doesn't occur if I generate a non XML format file (the '‡' character is output in the format file correctly) however, this file produces other import errors, which I don't encounter if I use a standard delimiter like a comma. So I have stuck
with the working XML format file which I prefer.
Does anyone know why this is happening? I'm planning to automate the generation the of the XML format file and would like to avoid the additional step of text substitution if possible.
Thank you.Hi Ham09,
According to your description , we do a test and find that the character of the terminator is changed due to the code page of Operation System. When you choose the different time zone in Data and Time bar, and do the same bcp test, you will find it will
export the different TERMINATOR in your XML format file. For example, you can import the character "ç" (alt + 135) in (UTC-12:00)International Date Line West time zone and (UTC+09:00)Osaka, Sapporo, Tokyo time zone, and check if the terminators are different.
By default, the field terminator is the tab character (represented as \t). To represent a paragraph mark, use \r\n.
For more information, there is detail about code page(Windows), you can review the following article.
http://msdn.microsoft.com/en-us/library/windows/desktop/dd317752(v=vs.85).aspx
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support -
Generate XML report then display like HTML with specified formate
Hello,friends
I want to generate XML report then use XSL to parse it,report will display like HTML with specified formate like attachment,any ideas?
Thank you
AlbHi Ray,
I don't why I can not upload any format picture,so I listed the display as below:
Test Result Company Logo
SN 1111 User Operator
Status Fail Factory SE
Product xxx Tester xxx
Start time xxx Line xxx
Test time xxx
NAME STATUS VALUE LOW HIGH RULE
1.0 Pass/Fail Test Passed True True EQ
2.0 Less than Test Failed 15 10 LT
3.0 String Value Test Passed A string from the limit file A string
End of Report
Could you give me some suggestions?
Thanks a lot
Alb -
Help with Labview for Linux applicatio​n - datalog to XML format
Hi,
I am working on an application that makes use of a PDA for instrument control and data acquisition, and all our code has been written with the use Labview PDA 8.2. The instrument data is returned wirelessly to a remote server, and one of the specifications we set early in the project was the data would be returned in XML format in line with Labview's inbuilt XML schema.
Unfortunately, this XML funtion is not available on Labview PDA! We have made a change to return the data in Labview's 'Datalog' format, and then we now intend to run an additional application on the server to convert this information to XML before passing the data to our customer's software.
We have successfully done this with Labview for windows, but our customer's server is Linux based.
Is anyone aware of someone (or a company) who would be able to take our existing 'datalog-to-XML' vi and compile it for Linux? The program is really simple, and I would hope that all the functionality we use is supported in Labview for Linux.
Thanks,
MarkHi Mark
LabVIEW VIs that are developed in a Windows environment can be used in a Linux version of LabVIEW. As long as the VIs have not got Windows specific features such as ActiveX or Windows dll call you can run the VI in Linux. Also there maybe some specific drivers that are not supported under the Linux environment (see link). The VI will simply be recompiled in Linux. The Linux user must have a copy of the Linux LabVIEW Development System installed though.
http://digital.ni.com/public.nsf/websearch/35D2B5E483A001A18625716B005BE464?OpenDocument
Kindest Regards
YatinM
NIUK & Ireland -
XML file with different format
Hello
I have a requirement where the customer needs XML file with different format. How do I achieve the second format mentioned below instead of first format.
Normally we create the XML file in the following format:
- <Entries>
- <Organization>
<MemberName>0000000002</MemberName>
<FullName>BAY GYNECOLOGICAL ASSOCIATES</FullName>
<OrgId>0000000002</OrgId>
<OrgType>CUST</OrgType>
- <AssociatedToOrg>
<Name>0002</Name>
- </AssociatedToOrg>
</Organization>
Now the customer wants like the following format:
<Organization MemberName="522_Community_Customer" FullName="522 Community Customer" OrgId="DEA123456" OrgIdType="DEA" >
<AssociatedToOrg Name="MN"/>
</Organization>
Thanks
Nagayou can solve it with a XSL mapping. refer to the SDN to know how develop it
/people/aleksey.popov2/blog/2010/01/26/consuming-webservices-with-tag-in-wsdl-using-xslt
XSLT Editor for creating xlst mappings
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/190eb190-0201-0010-0ab3-e69f70b6c257
http://wiki.sdn.sap.com/wiki/display/XI/XSLTMappingSteps
http://wiki.sdn.sap.com/wiki/display/XI/FileTOFile-UsingXSLTmapping%28forBeginners%29
http://wiki.sdn.sap.com/wiki/display/Snippets/ConvertflatXMLfiletonestedusing+XSLT
http://wiki.sdn.sap.com/wiki/display/Java/MultiMappingwithJavaandXSLTmappings
Edited by: Rodrigo Alejandro Pertierra on Oct 1, 2010 5:26 PM -
Create XML format file in bulk insert with a data file with out delimiter
Hello
I have a date file with no delimiter like bellow
0080970393102312072981103378000004329392643958
0080970393102312072981103378000004329392643958
I just know 5 first number in a line is for example "ID of bank"
or 6th and 7th number in a line is for example "ID of employee"
Could you help me how can I create a XML format file?
thanks alotThis is a fixed file format. We need to know the length of each field before creating the format file. Say you have said the first 5 characters are Bank ID and 6th to 7th as Employee ID ... then the XML should look like,
<?xml version="1.0"?>
<BCPFORMAT xmlns="http://schemas.microsoft.com/sqlserver/2004/bulkload/format"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RECORD>
<FIELD ID="1"xsi:type="CharFixed"LENGTH="5"/>
<FIELD ID="2"xsi:type="CharFixed"LENGTH="2"/>
<FIELD ID="3" xsi:type="CharFixed" LENGTH="8"/>
<FIELD ID="4" xsi:type="CharFixed" LENGTH="14"/>
<FIELD ID="5" xsi:type="CharFixed" LENGTH="14"/>
<FIELD ID="6" xsi:type="CharFixed" LENGTH="1"/>
</RECORD>
<ROW>
<COLUMNSOURCE="1"NAME="c1"xsi:type="SQLNCHAR"/>
<COLUMNSOURCE="2"NAME="c2"xsi:type="SQLNCHAR"/>
<COLUMN SOURCE="3" NAME="c3" xsi:type="SQLCHAR"/>
<COLUMN SOURCE="4" NAME="c4" xsi:type="SQLINT"
/>
<COLUMN SOURCE="5" NAME="c5" xsi:type="SQLINT"
/>
</ROW>
</BCPFORMAT>
Note: Similarly you need to specify the other length as well.
http://stackoverflow.com/questions/10708985/bulk-insert-from-fixed-format-text-file-ignores-rowterminator
Regards, RSingh -
Problem with getting a D2K report in XML format
Hi all,
Could any body give a solution for this problem.
I have a matrix report like following:
Q_Statement_Of_Net_Assets ----> main query
|
G_Cross ----> Cross product
| CS_VALUE
| CS_NET_ASSET
| CF_COSTI
|
| --------------------------------- |
| | G_CTIF | | ------> Like this I have two more groups
| --------------------------------- |
...... |
-----------------------------------------------|
My requirement is i want to print CS_VALUE, CS_NET_ASSET, CF_COSTI values in XML report, these values i am getting in a Normal/RTF format reports.
But i am not getting in XML format report.
thanks in advance.
VasuThanks Schellyc
actually I want to creat a new SOAPMessage for the very beginning like this:
try{
MessageFactory mf = MessageFactory.newInstance();
SOAPMessage msg = mf.createMessage();
SOAPPart sp = msg.getSOAPPart();
//create the header container
SOAPEnvelope se = sp.getEnvelope();
SOAPHeader sh = se.getHeader();
SOAPBody sb = se.getBody();
}catch(Throwable e) {
e.printStackTrace();
}and I want to get the empty header from this newly created SOAPEnvelop and add my own content into the header as well as the empty body.
I wrote the code by following the example from the jaxm api.
can anybody tell me any further information about the NullPointerException?
Maybe you are looking for
-
is it possible to include external .js file into .ear file using NetBean 5.5.1? if not, then where should I placed the external .js file and how to write the src="xxx" element? (that is , how to write the path of "xxx"?) I am using JBOSS 4.2.2 GA as
-
can i hook up a projector to my mac os x (version 10.6.8)? I am trying to project a 08 imovie to a large audience. If I can, what projector would I need? thank you!
-
Slackware user - Arch install process and package management questions
I currently am using Slackware 12 with updates. It has become increasingly cumbersome to compile new software given the number of dependencies that also have to be compiled, and have their own dependencies compiled, etc and so on. Other than the fa
-
HT1296 i cannot sync iphone contacts to my macbook
How do I sync iphone contacts to my macbook? i have tried the obvious: connecting the phone, going into iTunes and selecting Info and Contacts and sync and apply, but nothing happens on my Mac. Thank you for any feedback.
-
Outgoing Mail Won't Work!
My outgoing mail won't work! Get the message, 'Cannot send message using the server Hotmail. Can anyone help?