I have a WebService API which needs 2 of its parameters to be optional in the WSDL
public wsProxy[] Insert(wsProxy[] proxies, string loginname, string password, bool returnNewData)
{
//code here
}
I need to a way to show loginname and password as optional in the WSDL.
Is there any way to do this in C#. Can I maybe add an tag in fr...
I have n number of text fields named in the form "Question.....". How can I get all the parameters which starts with "question" from the JSP page to the Action?
...
I have a group of 13 properties in a class. I created a struct for these properties and passed it to another class.
I need to add another 10 groups of these 13 properties. So thats 130 properties in total.
What do I do?
1.I could add all 130 properties to the struct. Will this affect performance and readability
2.I could create a lis...
What is the best method to obfuscate the urls created in Dynamic Data?
eg \Products\List.aspx?ProductId=2 could become
\Products\List.aspx?x=UHJvZHVjdElkPTI=
where "ProductId=2" is base 64 encoded to prevent casual snooping on
\Products\List.aspx?ProductId=3
\Products\List.aspx?ProductId=4
etc...?
I will probably have to inher...
I have the following controller:
public ActionResult Search(string Name, int? Friend, int? Page)
It works if I use this url localhost/users/search/name but these don't localhost/users/search/name/1 and localhost/users/search/name/1/1
...
I have an interface, IMessage and a class which have several methods for creating different types of message like so:
class MessageService
{
IMessage TypeAMessage(param 1, param 2)
IMessage TypeBMessage(param 1, param 2, param 3, param 4)
IMessage TypeCMessage(param 1, param 2, param 3)
IMessage TypeDMessage(param 1) ...
Hi,
I've got following URL in symfony (specifics not important):
/frontend_dev.php/something/25/apple
... and a routing rule:
/something/:id/:word
The URL works fine when clicked through to on the site, but not when I type in the URL. Instead, symfony says:
Unable to find a matching route to generate url for params "NULL".
The ...
In my application I have a string parameter called "shop" that is required in all controllers, but it needs to be transformed using code like this:
shop = shop.Replace("-", " ").ToLower();
How can I do this globally for all controllers without repeating this line in over and over?
Thanks,
Leo
...
Dear fellow Programmers,
I try to use the following google map webservice in order to locate greek addresses:
http://maps.google.com/maps/api/geocode/json?address=Ακαδημίας 16&sensor=false and it does not work.
If I hit the same exactly address but written with latin alphabet characters: maps.google.com/maps/api/geocode/json?address=ak...
I find that I often make a recursive call just to reorder arguments.
For example, here's my solution for endOther from codingbat.com:
Given two strings, return true if either of the strings appears at the very end of the other string, ignoring upper/lower case differences (in other words, the computation should not be "case sensitiv...
I have this piece of code that is giving me trouble.
I know all the threads are reading the same struct. But I have no idea how to fix this.
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
typedef struct {
int a,b;
} s_param;
void *
threadfunc(void *parm)
{
s_param *param2 = parm;
printf("ID:%d and v:%d\n",param2->a...
I have a StatusChanged event that is raised by my object when its status changes - however, the application needs to carry out additional actions based on what the new status is.
e.g If the new status is Disconnected, then it must update the status bar text and send an email notification.
So, I wanted to create an Enum with the possibl...
My SSRS report fetches data from my DATAWAREHOUSE.
The ASP.NET application I have is connected to an OLTP database.
I invoke the SSRS Report from my ASP.NET application and provide a parameter as CustomerID(this is an application key in datawarehouse) to my report.
Since my report is connected to my datawarehouse, I do not query my re...
This is a very basic example of what I am trying to implement in a more complex batch file. I would like to extract a substring from an input parameter (%1) and branch based on if the substring was found or not.
@echo off
SETLOCAL enableextensions enabledelayedexpansion
SET _testvariable=%1
SET _testvariable=%_testvariable:~4,3%
ECHO...
Before I start: I'm programming for Iphone, using objective C.
I have already implemented a call to a web service function using NSURLRequest and NSURLConnection. The function then returns a XML with the info I need.
The code is as follows:
NSURL *url = [NSURL URLWithString:@"http://myWebService/function"];
NSMutableURLRequest theRequ...
I have a class2 which is involved by class1 when clicks are made. I have to pass some parameters/objects from class1 to class2. I only know the standard way which does not have an option of passing parameters.
// launch the full article
Intent i = new Intent(this, Class2.class);
startActivity(i);
...
I've a document search page with three listboxes that allow multiple selections. They're:
Category A
Year
Category B
Only category A is mandatory, the others are optional parameters and might be empty.
Each document can belong to multiple options in Category A and multiple options Category B but each document only has one year assoc...
I have a telerik asp.net mvc grid which needs to be populated based on the search criteria the user enters in separate text boxes. The grid is using ajax method to load itself initially as well as do paging.
How can one pass the search parameters to the grid so that it sends those parameters "every time" it calls the ajax method in res...
How would I be able to accomplish the following:
public class testClass implements Interface {
public testClass(Interface[] args) {
}
}
So that I could declare
Interface testObject = new testClass(new class1(4), new class2(5));
Where class1 and class2 are also classes that implement Interface.
Also, once I accomplish th...
Before I start: I'm programming for Iphone, using objective C.
I have already implemented a call to a web service function using NSURLRequest and NSURLConnection and SOAP. The function then returns a XML with the info I need.
The code is as follows:
NSString *soapMessage = [NSString stringWithFormat:
@"<?xml version=\"1.0\" encoding=\...