|
I have a web service API. Some calls return objects containing text fields with information provided by the user. From both a design and a security standpoint, what are the downsides to returning null in those fields when no information has been provided...
Answer Snippets (Read the full thread at stackoverflow):
There's not any real downside....
Returning an empty string.
A null value, a web service returning that value should ideally return null instead of an emptyI don't think there's a security issue involved with returning null vs.
|
|
I'm exposing a web service in a SharePoint site e.g. http://server/_vti_bin/subdir/mywebservice.asmx .
In the web service method, SPContext.Current appears to be null.
(Interestingly, I'm looking at an example in Chapter 5 of Inside Windows SharePoint...
Started by Ariel on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
An URL....
In SPContext.Current is null?
How do you obtain credentials for the web service?
what authentication are you using a SPContext.Current = null was when the webservice was called at a virtual location that didn't exist (i.e.
|
|
Never seen this one before.
WebService.Implementation imp = new WebService.Implementation(); WebService.ImplementationRequest req = new WebService.ImplementationRequest(); return imp.GetValue(req);
The object that imp returns is not null. It's returning...
Started by Xaiter on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Stackoverflow.com/questions/560370/handling-wcf-proxy-null-return-issue
I suppose I should also note that the WebService should throw an exception if I pass null into the GetValue method
You didn't pass null here,you passed in....
|
Ask your Facebook Friends
|
I just had a laptop crash (spilled water on it). I copied my working code (2 days ago backup) from a Windows Server 2008 laptop to a Vista laptop running Visual Studio 2008 SP1. Both are running .NET 3.5 SP1.
I have a web method call which is returning...
Started by Simon on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Usually either something changed/moved, or even xml namespace()})
I generated a new proxy Everything worked I deleted 'MediaItems2' from the web service.
Between the proxy and the service.
|
|
It is possible to send an instance of a class to a webmethod on a webserver isn't it. (The class is actually created on the webserver).
I ask because I have a populated class instance which I'm trying to send back to the webserver, however when the instance...
Started by SumGuy on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Since XmlSerializer demands a set on lists/arrays, I'd probably keep it simple and use:... .
It looks like the biggest problem is your empty set on pickingDetail .
If you are using [WebMethod] , then typically XmlSerializer is being used behind the scenes .
|
|
I have a C# command-line client that I'm testing the consumption of SOAP/WSDL via Django/Python/soaplib created WSDL. I've managed to successfully connect to the web service by adding a service reference. I then call one of service's methods, and the ...
Started by mkelley33 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
We faced the similar problem while consuming a web service.
If there is anything out of the ordinary.
|
|
(This relates to Microsoft's SitkaSoapService, in the service reference at https://database.windows.net/soap/v1/)
I'm using SitkaSoapServiceClient to access my SQL Data Services database by SOAP.
I can query data by passing a linq statement in a string...
Started by teedyay on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I'm not familiar with the service you are trying but T-SQL would want something like:
return proxy.Query(scope, "from e in entities where e[\"FirstName\"] IS null select e");
You can check for not null like this:
where e["FirstName....
|
|
Hi,
Our application is developed using Spring framework. Is it good practice to check null condition in all layers (presentation. business, database) ? The flow in our application is
Form submission -> jQuery validator -> Spring validator -> ...
Started by novice on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
But, if there is a way for something....
The parameters have been checked for null in the controller then checking it in the service doesn't make senseIs it possible to call the service without going through the controller?
If not, and all.
|
|
I am writing a small Java server, and a matching client in C++, which implement a simple IM service over the STOMP protocol .
The protocol specifies that every frame (message that passes between server and client, if you will) must end with a null character...
Started by Yuval A on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Of course, the problem.
Using a buffer, you can specify how many bytes you want to transmit and include the null character.
The null character will be terminating the string and won't be transmitted.
|
|
Updating user properties works fine unless they are null values.
So, for example, something has a Line Manager, so the value would be updated to ABC (or whatever). Later on they are promoted and are now a Manager themselves, and in this case the Line ...
Answer Snippets (Read the full thread at microsoft):
So updating the web ....
The scenario you line manager Z.
I've tried leaving the ValueData as null and setting isValueChanged to True, but that gives the same error.
That to String.Empty, but that's when it errors with value cannot be null.
|