|
Crystal Reports bleh - disgusting application, I would use SQL Server Reporting Services SSRS local report, no server required and it is not CR.
There are many reporting tools available but they are all add ons to the application, you can embed them in the app or they may be server based so you need to do some research into which meets your requirements.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hello,
I am at my wits end and was hoping for some help if possible.
I have been asked to retrieve some data from a SOAP/XML webservice. No problem I thought, done that loads of times.
I was even given a working PHP example that returns the data I need - even easier I thought!
BUT, in my c# code I cannot get past authorisation!
This is the example PHP script that works perfectly...
<?php
try
{
$soap_url = "http://108-168-196-91.mycitrixdemo.net/zdm/services/EveryWanDevice?wsdl";
$client = new SoapClient(null, array(
'location' => $soap_url,
'uri' => "http://zdemo2.zenprise.com",
'login' => "Administrator",
'password'=> "xxxxx"));
$properties=$client->getDeviceProperties("99000067296308",null);
for($i=0;$i<count($properties);$i++) {
printf ("name: %s, value: %s\n" , $properties[$i]->name, $properties[$i]->value);
}
}
catch (Exception $e)
{
print_r($e); exit;
}
?>
I tried passing the username and password as I have done before like this:
ClassLibrary1.trev.DeviceServiceService test = new trev.DeviceServiceService();
test.Credentials = new System.Net.NetworkCredential("Administrator", "xxxx", "citrix");
test.getAllDevices();
And I get "Failed to Authenticate
Reading the documents it says...
Quote: Service Authentication
2nd generation SOAP services provide WS-Security (<https: www.oasis-open.org="" committees="" wss="">)
support using WSS4J (<http: ws.apache.org="" wss4j="">). By default, the services require WSS
Username+Password authentication of a valid user with the required rights. Support for other WSS
features might be added in future releases.
NOTE: these services DO NOT use HTTP authentication, as the previous Device Manager web services
So, I then tried:
EveryWan.DeviceServiceService service = new EveryWan.DeviceServiceService();
UsernameToken userToken = new UsernameToken("Administrator", "xxxx", PasswordOption.SendPlainText);
service.RequestSoapContext.Security.Tokens.Add(userToken);
service.RequestSoapContext.Security.Elements.Add(new MessageSignature(userToken));
And still I get "Failed to Authenticate"
I just don't understand what I need to do to talk to this API?
The PHP works fine! but I cannot replicate it in c#.
Can anyone see what I am doing wrong please?
Any help would be much appreciated!
Thanks
|
|
|
|
|
can you get in contact with webservice supplier?
I've contacted a zen webservice once from .Net, but was in luck I was in touch with the supplier. They looked in their logs and figured out some issues between the zen framework and the .Net way of doing things. Then they modified it and it worked.
I'm not sure what those issues were though, it had to do with the wsdl, headers, protocols and standards etc...
(this might not be an issue in this case, I don't know, but it might give you a lead)
hope this helps.
|
|
|
|
|
That sounds very like it could be the case.
Luckily I have contact with the Zen people..
I will ask.
Thanks V!!!
|
|
|
|
|
Did you have to do anything special with your code?
Or, did you just code it as a normal "Add Web Reference"?
Thanks
Trev
|
|
|
|
|
add webservice.
I suppose you could program it against the wsdl directly, but if you can, don't go down that road.
|
|
|
|
|
We are working on a project in which we want to replace small part of a image with another small part of same size image at given coordinate
|
|
|
|
|
I am sure you will learn a great deal about images in implementing this project.
Is there something we can help you with ?
If there is, please tell us what you've done so far; if you are having difficulty, post excerpts of your code to show where any errors occur, and describe the error messages that appear.
If you are stuck, then describe what your goals are, and show the code of what you have tried so far.
“Use the word 'cybernetics,' Norbert, because nobody knows what it means. This will always put you at an advantage in arguments.” Claude Shannon (Information Theory scientist): letter to Norbert Weiner of M.I.T., circa 1940
|
|
|
|
|
This sounds like homework: so I won't give you code!
But...it's pretty easy:
1) Read the two images into Image class instances.
2) Get the graphics context for the "destination" image. (See Graphics.FromImage[^])
3) Draw the smaller image at the appropriate point. (See Graphics.DrawImageUnscaled[^])
4) Dispose of your Graphics context.
5) Save the destination image with the "replaced bit"
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
I am not sure whether this is the right forum to ask this question or not. Please let me know if this is not the right forum.
I have list of geo coordinates (the route I took/drive).
Now I want to pass these geo coordinates and get the path/route image from Bing Map service APIs. I am developing a REST service APIs. I am already using the Bing Map Route APIs.
But I am not sure how to get the image of the route/path. I did goole it. I could not find any examples.
Thanks.
|
|
|
|
|
hi.i want to have help for how to impelement one neural network which name is "SOM".does anyone have this code???
|
|
|
|
|
I'm sorry, but we don't give code to people. We expect you to have done some of the work yourself.
|
|
|
|
|
|
I am returning a model to my view on the initial load of a page, the model is populated from the DB, I want to validate the model so that when the user receives the page a validation summary show the errors if any
data in database is coming from ETL system so it can contain invalid data.
whole point is to show error on page load to user if any rather than clicking on submit button and then showing errors
|
|
|
|
|
I didn't see any questions in there.
|
|
|
|
|
I want to validate model on page load in mvc and show error if any.
|
|
|
|
|
That is a requirement. You still haven't ask a question.
|
|
|
|
|
Q is how to validate model on page load/or on HTTPGet request
var uu=TryValidateModel(exceptionData);
this always returns true and Model.IsValid return false only on post not on Get
|
|
|
|
|
You have shown no validation code. How can we tell what the actual issue with your code is?
|
|
|
|
|
That's being mean for the sake of it, Pete. The question is clearly 'how do I validate model on initial request?'.
There may be issues with that question as your subsequent post points out (there's no code presented and we don't even know what platform is in play), but this post was unhelpful.
|
|
|
|
|
BobJanova wrote: That's being mean for the sake of it, Pete. I'm sorry, but I have to disagree with you there. There is no question in the original post. If I were being mean, I'd have downvoted the post but I didn't. However, my point still stood, there was no question in there. Here's the post:nitin_ion wrote: I am returning a model to my view on the initial load of a page, the model is populated from the DB, I want to validate the model so that when the user receives the page a validation summary show the errors if any
data in database is coming from ETL system so it can contain invalid data.
whole point is to show error on page load to user if any rather than clicking on submit button and then showing errors That is a requirement, not a question. Of course, I could have made assumptions as to what was supposed to have been asked, but they would have been assumptions. So, it's great that you have the benefit of the subsequent posts to get the context to judge me, but I didn't have that context. All I could see at that point was a request for someone to do the work and not a question on how to solve the problem.
|
|
|
|
|
It's no less of a question than the one about TIFF and file copying just below. Okay, that one has 'How do I solve this problem?' explicitly, but whenever a thread starter is a description of a problem, that's the implicit question. It might be a bad implicit question, in which case tell the questioner what is wrong with it (or downvote and move on).
Anyway, don't mean to start a fight about this but just stating my opinion on dealing with problem descriptions in these forums.
|
|
|
|
|
OK, so after reading this thread and figuring out (I hope!) what you're really trying to do, my question is WHY??
This is an out-bound model going to the client on a GET request, not a POST. Soooo, I fail to see why you have to validate a model your sending to the client?? If you have to do this, your business rules are messed up because the data in your model should ALWAYS be valid.
You normally validate a model in-bound from the client, not out-bound.
Yeah, I see the you said your data is coming from an ETL system, so, again, your business logic should be checking this, not your UI code.
|
|
|
|
|
I have an event that is subscribed by multiple pages created by a page factory. All the pages are similar except for the title and items in a list. What I would like to do is when the event fires, only the page that is currently on display should act on the event whereas the other pages either should ignore it or not get it in the first place. The app is created on the .NET compact framework which is a limited subset of the full framework.
Any help is appreciated.
|
|
|
|
|
Hi ,
I have faced one issue on my project. One of our application is doing rename and Copy operation for tiff image from one location to another location in the server itself. I mean, in the Server D drive, copy the file from one directory to another directory.
The issue is:
Daily around thousands of images will be copied. Last week, One Tiff Image file length is differed from the original. The copied file has extra bytes. So the original and copied image size difference is 8bytes. I compared with WinMerge tool. Some bytes added at the end of the file.
Do you know the reason for this problem?. The server is Window 2008R2. Application build with .Net Framework 4.0.
|
|
|
|