JustPaste.it

Your first C# Web Service





Edit services


13 years ago. Wow, how time flies.


This information still works. It's not the way to do it now, though.


Use the ASP.NET WebAPI[^] if you want to do WebServices. I personally haven't used SOAP in so long I wouldn't even know where to start. Given that Javascript rules these days (at least with the cool kids) everything's Json.


I just need your help with the idea with the implementation of web services. This is the first time i'm implementing web service. I have an exsiting web site that retreive from value from database, the web site is implemented using dotnet nuke, these values contains information about company such as name, address and the status of thier liencese, the status can be active, expired, or suspended. And i have seperate portal that is generating that liencese which is developed using mvc4. So alll i want to do is to write a web services, when ever a new liencese is issue or the status is change to active, expire, or supended, it should show in the first portal and i would like to implement this using .net .


All i want is an idea.


Rather than posting this error message over and over again, how about you actually read the damn thing?


no SQL Server has been installed on the local machine


"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


hello
i have question about json.
how can i get output from your webservice with json format?


i write a json webservice but that is xml file that contain json .
i want a realy json output.


I tried the following to retreive the result of the web service:


But the results shows has: . ›. 4. †. †?4.


I also tried the following:


But, I'm getting this :
soap:ClientSystem.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://000.000.000.000/contale/GetInfoFromWhitesPagesResponse. at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)


Here is the code of my WebService:



Any help will be appreciated.



i write a dll in project ATL with a function witch function inclusive a input and output parameter is that byte* type



in use during from this function in a windowes application c# doesnot exist no problem and array values returned to truth


the same function in a webservice returned to only first index array and exist very big problem



help me pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeee


Your article is the closest thing to an answer to my need as I have seen so far. Hoping you can help. I'm still very new to programming, so please excuse my ineptitude as I try to explain.


I have a web service that has a couple of methods similar to the ones you use, including a basic HelloWorld returning a string and an array based on a struct.


For testing purposes, I have another web app project that passes some credentials via SOAP and returns the results of the method calls. When https://coursework-writing.com call the string method Helloworld, I can display the results in a Literal control like this:


Great so far. What I'd like to do now is to display the results of the array method , but have not seen how to accomplish that so far. I've tried converting the following, but it just returns some object info:


I know the array method works, just need help displaying the results in my test page (aspx). Any help would be greatly appreciated.
Thanks,
Lonnie