WCF / ASMX :: Existing Webservices Update?
Mar 18, 2011We developed webservices and provided services to Clients.As per my requirement i have to change the webmethod signature datatype.Can i handle without inform to client.
View 1 RepliesWe developed webservices and provided services to Clients.As per my requirement i have to change the webmethod signature datatype.Can i handle without inform to client.
View 1 RepliesI want to know can php client consume asp.net web services with
1: returning basic types int, string etc.
2: returning DataSets
Am new bee to Webservices.I have declared complete BLL in the class library.
Can call those methods defined in Class library class files(.cs file) in .asmx file.
from where to start learning WebServices. I do not know anything about it, i searched internet but no useful sites were found. I am unable to understand almost all the codes written in App_Code/WebService.vb file that is generated in VS.I know some basics of ASP.NET ,VB.NET and C#.NET.
View 4 RepliesWe are making use of webservices in asp.net console application.we could able to debug the console application but we would like to debug the webmethod calling in our console app. so, how can we debug the code present in the webserices?
View 2 RepliesI have the URL of webservice of some companies in database as
Company-A http://companya.com/myservice/calculate.asmx
Company-B http://companyb.com/someservice/post.asmx
Company-C http://companyc.com/theservice/help.asmx
Company-D http://companyd.com/services/count.asmx
I want to dynamically consume these webservices. As sometime I need only CompanyA webservice, some time Company-B webservice. How I can do these.I thing I have to use WebService class (Imports System.Web.Services)
I am using ASP.NET (.asmx) web services with Silverlight. Since there is no way to find the client IP address in Silverlight, I had to log this on the service end.
These are some methods I have tried:
Request.ServerVariables("REMOTE_HOST")
HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]
HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
Request.UserHostAddress()
Request.UserHostName()
string strHostName = Dns.GetHostName();
string clientIPAddress = Dns.GetHostAddresses(strHostName).GetValue(0).ToString();
All the above methods work fine on my local system, but when I publish my service on a production server, it starts giving errors, Error: Object reference not set to an instance of an object. StackTrace:
at System.Web.Hosting.ISAPIWorkerRequestInProc.GetAdditionalServerVar(Int32 index)
at System.Web.Hosting.ISAPIWorkerRequestInProc.GetServerVariable(String name)
at System.Web.Hosting.ISAPIWorkerRequest.GetRemoteAddress()
at System.Web.HttpRequest.get_UserHostAddress()
i m making an API in .net , that will communicate with its client with xml data. client software can be in any language php,asp.net etc. what is the best way to develop such API, i was trying to use the .net webservices', but [webmethods] does not allow non static data, and in my API there are lots of things that will work only with the non static data. any way to develpop it without using .net webservies?
View 1 RepliesI am trying to using webservices to update the sql database table.
CustomerName.cs code
namespace SqlWebService
{
public class CustomerName
{
[Code]....
when I run it, the result is true but I cannot see the changes in the database!!
I wrote some webservices in my solution and it works fine when i consume it in my local machine... BUT when i deploy it in the public IP and using https. I'm not able to consume the webservices i got a "The provided URI scheme 'https' is invalid; expected 'http'. Parameter name: via" Error...
I tried to change my configuration in my web app from security mode="None" into security mode = "transport" and I got an error... (forgot to log the error)
Note* I'm using virtual IIS (this is where i test my project)
I have following class in webservices, I am not able to override the constructer of webservice. Asp.net always call first method not the one with parameter.
[Code]....
How can i call the second constructer in asp.net? Pls provide vb.net code.
How to solve the Cross domain issue using webservices?
View 4 RepliesI worked on an online store based . In this store i have a category for which there are almost 2000 products. So every time when there is some change in the price, it is very difficult to update the products with new price, descriptions, features etc.The manufacturer of this product is providing web services which can be linked with store owner's website who is selling their products.o is it possible to integrate e-commerce website with webservices API that are being provided by manufacturer ?
View 1 Repliesi am new to WebServices, i have a ClassDataLibrary.dll which include classes like Users,Products,Articles...
i want to create a structure like this in my webService. as i saw the examples of creating web services the web methods written on the same page. but i got over 50 methods in dll and i want to share these methods with flash so flash user get data using my webService but it will be difficult to find the method he wants so i want to give my webService in a structure like:
Service1.Users // he will finds the methods about users
Service1.Products // he will finds the product methods
how could i do it ? is there any example or something to share with me?
when I access the webservices URL through browser ,I am able to access the URL ,If i use the webmethod in c# code the error message is diplaying like "The Requested Failed with HTTP Status 404:Not found".
View 5 RepliesI have a new asmx web service (written with .Net 3.5), I'll be accessing this service from a Silverlight 3 app, and I want to add the service to an existing asp.net web site (written with .Net 2.0). How do I go about doing that? I tried the obvious route of just copying the entire project folder to the web site, but I experienced a number of errors when trying to view the asmx page from a browser.
There's already a service on the web site, and all it has is the asmx file, the dll and a web.config in the folder, and that's where I'm at right now with me new service. It appears to instantiate just fine, but when I call a method in t, nothing happens (the AsyncCompleted events never fire).
Someone knows a tutorial for a sql database web service in VB. I need to add tables to a existing web service
View 2 RepliesI added a Web Method to the existing web service. I don't see this method in my web project. I can see all the old methods but I couldn't access this method. Do I have to create proxy for this method?
View 2 Repliesi am new to ASP.NET. I am just now learning about all the benefits. I currently have some C# code that receives sensor signals such as distances from a robot and I wish to put that code into web services and into a website, so that if I want to gather some information from the robot i can through the web, as well as send signals back. I haven't found any information yet on how to do this.
I am just looking on how to intergrate the existing C# code I have to a web service
I would like to figure out how to create an xml file that is of a directory of existing xml files. With this file I would then have an autocomplete extender to locate said blogs.
View 1 RepliesCurrently I have project in ASP.NET 2.0 and I wanted to implement web services using my existing code.
View 2 RepliesI've been reading quite a few tutorials on web services and xml files and one thing isn't quite clear to me. If I want to create an XML file on the fly the tutorials are pretty straight forward but, I want to grab an existing XML file from the web server and return the whole thing. Do I need to read the XML file and send each individual node or is there a way to send the file all at once? The tutorials imply that the whole file could be a node but I'm not clear on what that entails or if it would work. Also do you have a link to an example?
View 1 RepliesI have a WCF service which has 4 Operation contracts.
I have added a new contract and it gets the data from database and returns the result set.
I can access the new contract and the service get the correct result set. But while passing the result set to the client I get the error of The underlying connection was closed: The connection was closed unexpectedly.
What are the steps to follow after adding a new contract like new binding etc.
How can I update an existing LINQ entity? This code gives me: "Cannot insert an entity that already exists."
Any better practises on updating/inserting with linq?
foreach (ListViewItem lvi in lvStudents.Items)
{
HiddenField hfStudentID = lvi.FindControl("hfID") as HiddenField;
CheckBox cbPresent = lvi.FindControl("mycb") as CheckBox;
int sInt = Int32.Parse(hfStudentID.Value);
dc = new DataClassesSODataContext();//I renewed the dc to make sure that wasn't the problem?
var currStudent = dc.students.Single(x => x.studentID == sInt);
grade g = dc.grades.Single(x => x.subjectID == subjID || x.studentID == sInt);
if (g == null)
{
g = new grade();
g.subject = dc.subjects.Single(x => x.subjectID == subjID);
g.student = currStudent;
g.present = cbPresent.Checked;
dc.grades.InsertOnSubmit(g);
} else
{
g.present = cbPresent.Checked;
dc.grades.Attach(g, true);//I tried both attaching and inserting
}
}
dc.SubmitChanges();
I can't for the life of me remember how to do this and I'm sure someone will answer this pretty quickly. I need to insert or update a record based on if it exists so in the SP I need to do:
SELECT * FROM table1 WHERE LinkedID = @ID Then I need to check if any rows were returned and apply it to an if statement which is where my mind is blocked.