I have figred it out. It seems as if visual studio 2005 doesnt like having multiple projects under one solution when dealing with web services. If I put the console app and the web service in their own project folders everything is happy and the ints are not dropped. Go figure??
THanks for...
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public
class Service : System.Web.Services.WebService {
public class Pair...
Here is an example of another service that doesn't work this takes two intergers and passes them back to a console
<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"...
I am having a problem when passing a data to a webservice. The web service has three instance variables 2 of type int and one of type string. When I pass data to the web service the int varibles get set to 0 and the string variable is set to the correct data.
ex.
string temp = "Thanks"
int x...
I have taken you comments and have adapted them a little, by extended the C# hashTable and adding 2 methods addDuplicates and getDuplicates, basically it adds the items to the hash via ArrayList.
Has anyone seen code that allows duplicates to be added to a hash table. I know in java it is possible to extend a class such as hashtable and add new methods to it. Has anyone implemented a hash that allows duplicates. Such that the add command (if the key is there) add the data as an...
Is it possible in visual studio to have the deployed application have a build in installation key. IF so how? If this cannot be done does anyone have a suggestion on how to implement one into the .msi so that I can keep my application secure. Is there freeware or something that can read in a...
The problem is that the datatble upon calling the printout method contains no data.
Mywebservicelass
{
public DataTable ledger;
[WebMethod]
public void Init()
{
Random rand = new Random();
//adds columns to the table...
Sorry for all the confusion I have finally got it working here is the solution (I guess syntax is different??)
You cannot use the query in the update statement. you get an error about the "Operation must be an updateable query" So make sure both are tables and use the following
Update table1...
I am recieving an error (missing operator in query expression) any clues?
error:
Additional information: Syntax error (missing operator) in query expression 'q1.col2 FROM table1 t1 JOIN query1 q1 ON t1.col1 = q1.col1'.
question regaring solution
from table1 t1
join query1 q1 on t1.col1 =q1.col1
I am confused about the statement table1 t1 and query1 q1 what does that mean?
should it be
From table1
join query1 on table1.col1 = query1.col1
How can I insert data from a query into a table that already exists. I have tried using the insert into command but it seems to add the data from the query into the appropriate column but below blank rows.
table1 before sql statement:
col1 col2
data1
data2
data3
After following sql...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.