web-services

How do I test connectivity to an unknown web service in C#?

I'm busy writing a class that monitors the status of RAS connections. I need to test to make sure that the connection is not only connected, but also that it can communicate with my web service. Since this class will be used in many future projects, I'd like a way to test the connection to the webservice without knowing anything about ...

Authorize proxy access in code if customer is using Microsoft ISA Server

Hi, my code is providing an access to our web service. WebProxy proxy = new WebProxy(ProxyURL, ProxyPort); proxy.UseDefaultCredentials = false; NetworkCredential nc = new NetworkCredential( ProxyLogin, ProxyPassword); proxy.Credentials = nc; myWebService.Proxy = proxy; My problem is that customer doesn't know ProxyLogin and ProxyPas...

Java webservices client slow when compared to dotnet client

we have DotNet webservice which is being called by two clients , one a dotnet client and other a javaclient The problem is java client is taking longer time in processing the results when compared to dotnet client and affecting the performance greatly , i'm using axis in java Is there any know issue with axis regarding my situation her...

Is there a better way of customizing SOAP headers in C#

In the past I have needed to create custom SOAP headers in a C# project that was using an imported WSDL web reference. I found a way to do it but I was never happy with it and I have sense wondered if there was a better way. What I did was create a header that derives from SoapHeader: [System.Xml.Serialization.XmlTypeAttribute(Namespace...

Override DateTime serialization for ASP.NET WebMethod parameters

I am working on cleaning up a bug in a large code base where no one was paying attention to local time vs. UTC time. What we want is a way of globally ignoring time zone information on DateTime objects sent to and from our ASP.NET web services. I've got a solution for retrieve operations. Data is only returned in datasets, and I can...

How to write a Web Service for Google App Engine?

Hello all, I am simply wondering how to write a Web Service (XML - SOAP) for Google App Engine? I am really new with Python and I have been looking for example for a while, but no chance. Does anybody could point me out any article or simply could give me an example of a Web Service in Python with Google App Engine? Thanks! ...

Creating new Soap Web Service with .NET 3.5

Hello All, I haven't really looked into the new .NET stuff since 2.0, but I'm wondering what the preffered way is for creating Web Services is now (SOAP, not RESTful). I remember in the old days, you created a ASP.NET Web Service. Now, I've been looking at WCF, but it seems like there's some added complexity. I've GOOGLED for some ...

What is the best book to learn web services?

What is the best book to learn web services? With a view to Java and Oracle. SOAP, WDSL and stuff, possibly BPEL. ...

Developing a secure WS client for consuming a Axis2 Web Service with Rampart WS Security module?

I have a Axis2 web service secured using Rampart. I do want to develop secure clients for it, preferably JAX-WS based. I tried a lot of tutorials but they are so closed tied with each other, like including Axis2 libraries in the client side. The client should be fairly independent of the WS service framework, as the service can be consum...

IIS7 / WPAS: Multiple WCF services in same AppDomain?

If host my WCF services in IIS7 or WPAS, is it possible to load up two or more services into the same AppDomain so that they can share static variables? ...

Working with ADO.NET Entity Objects and Soap-based Web Services

Hello All, I'm building a traditional ASP.NET Web Service -- the style built using asmx. It's a pretty simple service. I started using the new Ado.NET Entity Framework for my persistence layer, and I'm running into some problems: 1) I don't like the WSDL that gets automatically generated -- the complex types were getting defined as...

Setting the HTTP response status code from ASMX Web Service

Hello, I know with ASP.NET there's a global handler Application_EndRequest handler where I could change the Context.Response.StatusCode, and set it to 200 which is my desire. Now with asmx Web Services, I'm not really sure where I'd put this logic in. I know I'm definitely not interested in writing an ISAPI Filter, and I'm not really...

Why catch an exception just to throw it again?

In an webservice I see this code: Whats the point of catch the exception and just throw it again? Do I miss something? <WebMethod()> _ Public Function dosomething() As Boolean Try If successful Then Return True Else Return False End If Catch ex As Exception Throw ex End...

Generate WebService producer from WSDL in Visual Studio 2005

I have a WSDL file defining the interface for a web service and I want to implement that service (i.e. producer/server code) using C#, ASP.Net and Visual Studio 2005. Setting up a Web Reference as consumer of a web service is a breeze, but as a producer isn't as obvious. In the java world there is wsdltojava. Is there something similar ...

How do I serialize an anonymous object for sending over a SOAP web service?

I am trying to send an anonymous object over a web service. Is there anyway I can do this without manually creating a class and casting it to that class? Currently its throwing an exception saying Anonymous object could not be serialized. // Some code has been removed here to simplify the example. [WebMethod(EnableSession = true)] publi...

Making an Asynchronous WebService Call From ASP.Net MVC

I would (as the question states) like to make an asynchronous call, preferably using ASP.net AJAX. The code for the WebMethod looks like this: [WebMethod] public void SendMail(string name, string email, string subject, string body) { MailMessage toSend = new MailMessage(email, [email protected], subject, body); var smtp = new Smtp...

Would ManualResetEvent/AutoResetEvent use workerthread or IO-thread in asp.net

the web layer is coded in asp.net with pages marked as async. Yes, the recommended way to code for aync is using the RegisterAsyncTask I have a problem now - there are a few pages that have used AutoResetEvent and ManualResetEvent for aync and not the standard RegisterAsyncTask. Would these objects servicing the async calls, use up th...

Needed: tomcat + axis2 + JAX-WS guide for dummies

We are working with tomcat + axis2 + POJO for web service implementation, and we encountered some issues with POJO and axis2 that are a show stopper for us. It seems that axis2 and POJO implementation of SOAP parsing ignores the names of the xml elements and just assign values to the arguments according to the order of the xml elements i...

webservice oneway and new SPSite(myUrl)

Hi, I have a problem with a oneway web method that open a moss site (probably because in a oneway webmethod the context is null) Is possible to rewrite this code to remove the null reference exception? (without the oneway attribute i don't have the exception) [SoapDocumentMethod(OneWay = true)] [WebMethod(Description = "TestOn...

How can I update Bugzilla bugs from bash and php scripts?

Our development process is highly automated via a raft of bash and php scripts (including subversion hook scripts.) These scripts do a number of things to integrate with our Bugzilla 3.0 installation. But the current integration approach is a bunch of SQL calls which update the bugzilla database directly - which obviously has a number ...