I am using the web service “ReportingService2005.asmx” to set parameters of reports and linked reports. Here for I call the method “SetReportParameters(NewItemPath, Parameters)”. This works great until I try to set a parameter of the type DateTime. Here I get a format exception. The reason for this is that the value is a formatted string where the format does not fit. For example I have a parameter coming from a German Server (“31.1.2010 00:00:00”) and try to set it on an English Server (“12/31/2010 12:00 AM”).
To solve this problem I need to know the culture that the server is using so I can format the string before I call the method. Is it possible to get the culture/language of the server through the web service “ReportingService2005.asmx”?
I could also imagine that there are other ways to solve this problem, but haven’t find anything so fare. Are there other ways to take care of the internationalization of parameters using the web service? Has anyone other ideas?
You can try with the odbc format
2010-10-15 08:56.
If it doesn't work at all, you can do it "manually", i mean by doing a convert into sql code.
Related
I have started learning about NServiceBus to determine whether we can use NServiceBus the way we want.
When I configured NServiceBus to use the JsonSerializer for serialization, I expected to be able to read the contents of the messages directly in the queue. But instead of being JSON formatted text, the body is hexadecmial. We would like to be able to open up a queue/table and view the contents of the messages without needing to convert every message from hex to text. Is this possible?
PS.: I am using NServiceBus v 5.2.14 and NServiceBus.Host v 6.0.0
There are several options:
MSMQ
For MSMQ I honestly believe the best option would be to use ServiceInsight. It gives you much more than just viewing the message payload but if you're in a position that you need to know why your system is behaving the way it is, this is the best option.
Regarding native tools for MQMS there are several options http://docs.particular.net/nservicebus/msmq/viewing-message-content-in-msmq
SQL Server Transport
While ServiceInsight works across all the transports, if you are using the SQL Transport and you just want to see content of your messages you can run a simple SQL query query:
SELECT CONVERT(VARCHAR(max), [Body]) FROM [YourQueue]
Having said that, you are technically converting message to text through this query.
I'm trying to build a logic app that inserts data into a Sql database. The data is coming from s Stream Analytics job, outputting it on a Service Bus topic, consumed in Logic Apps in Service Bus trigger.
To populate the properties of the row inserted (lets say it only has one column 'Name'), I've found that this should work using following syntax:
"body": {
"Name": "#{json(decodeBase64(triggerBody()['ContentData'])).Name}"
},
Provided the message body contains a 'Name' property.
However I get following error message when running this:
{"code":"InvalidTemplate","message":"Unable to process template language expressions in action 'Insert_row' inputs at line '1' and column '2017': 'The template language function 'json' parameter is not valid. The provided value '#\u0006string\b3http://schemas.microsoft.com/2003/10/Serialization/��{\"time\":\"2016-05-25T10:29:17.4953250Z\",\"Name\":\"Y-Axis\",\"Value\":81.0,\"Date\":\"2016-05-25T10:29:17.4953250\",\"EventProcessedUtcTime\":\"2016-05-25T10:29:17.5525449Z\",\"PartitionId\":2,\"EventEnqueuedUtcTime\":\"2016-05-25T10:29:17.2220000Z\"}\u0001' cannot be parsed: 'Unexpected character encountered while parsing value: #. Path '', line 0, position 0.'. Please see https://aka.ms/logicexpressions#json for usage details.'."}
So it seems like that the content is enclosed in another envelope that is preventing json parsing to work.
1) Any simple way how to get around this?
2) Isn't such an integration all within Microsoft Stack just supposed to work without this mocking around?
Thanks,
Stefan
with the limited string functions available in he workflow definition language I had to use a long winded way for removing the additional strings
#{json(substring(replace(decodeBase64(triggerBody()['ContentData']),'#string3http://schemas.microsoft.com/2003/10/Serialization/��', ''),0,sub(length(replace(decodeBase64(triggerBody()['ContentData']),'#string3http://schemas.microsoft.com/2003/10/Serialization/��', '')),1))).fieldname}
is there a better way to do this
Thanks for reporting this, you're right it should simply work. There is a known issue where ASA ServiceBus output JSON is being wrapped in a XML header. It will be addressed in a near future but can't specify a particular date. Could you please workaround it (maybe using substring/replace) until then ?
cheers,
Chetan
Sorry for the delay in getting back, this issue is now fixed. Its exposed under a new compatibility level (1.1) to avoid breaking existing solutions. Please use this URL to configure your job with compat level 1.1 and give it a try.
cheers!
I am trying to pass a value to my O data Connector that I build in VS 2013, so that it should return results based on that value (a number value from a table that i have).could you tell me some steps to resolve this?
You might find the following article on MDSN to be of use: http://msdn.microsoft.com/en-us/library/ff478141.aspx
A more comprehensive set of documentation on OData URL conventions can be found over here: http://www.odata.org/documentation/odata-version-3-0/url-conventions Note: This is assuming that your OData connection is being instantiated via URL inside HTML Client javascript code.
If you are using an external application, simply install the Microsoft.OData.Client binary using NuGet and you can just write linq queries against the connection. See http://msdn.microsoft.com/en-us/library/dd673933(v=vs.110).aspx for additional information about this pattern.
Hope that helps!
I have WordpressTheme and in my MySql Database is Stored a Value like the following.
Its an Optionlist that shows up in an Form, but I never saw something like this.
Any Ideas what this is and how to handle with it?
Or where do find a Documentation about it.
a:9:{i:0;a:4:{s:8:"cssClass";s:8:"textarea";s:8:"required";s:9:"undefined";s:6:"values";s:53:"Script (Copy Paste your Script here or Upload a File)";
That is a string representing a serialized PHP object.
You can get more information about PHP serialization on http://php.net/manual/function.serialize.php
Wordpress and some plugins use PHP serialization to store some internal settings in a database easily.
That's the result of PHP serialize(). You can decode it with unserialize().
I'm new to OData so I'm sorry if this is a bad question, but I fail to find an answer.
I have a bunch of OData tables, and I would like to provide an option for the user to get the data as a CSV-file.
Now I know OData only supports Atom and JSON, but is there any way to make it return a filestream, or a URL?
I was thinking a URL could direct to a REST-service (not OData) that simply returns a filestream, if filestream directly from OData is impossible.
Any thoughts or ideas are appreciated!
I'm not totaly sure why you want to use oData. But oData essentially means to publish any kind of data in JSON/atom standard format - not CSV.
If you have controll over your oData source you could modify an oData Producer to output CSV filestreams instead of JSON/atom files.(But you wouldn't have a real oData feed anymore)
You could also set up any oData Consumer (you can find those at odata.org) to read your oData source and display it as CSV.
If you choose a server side solution(PHP/JSP/ASP etc.) it should be rather simple to loop through the results of a request and add seperators inbetween.