web-services

compact-framework cannot establish connection to network error

Trying to use pocket pc emulator (vs 2008) to connect to web service on my latop. No matter what I try I can't connect. I am using my laptop's IP address in the url. It works great from the url on my laptop, I just can't get the emulator to hit it and I keep getting the " cannot establish connection to network" exception. I have googled...

How to have a Tomcat WebApp auto deploy sub services?

I've written a service framework using Hessian and want to keep URL's common but the flexability of auto-deploy. If i deploy a Service.war I can access it fine using /Service however, I want a general spot for all services. How could I have a seperate context where all services live and get auto-deployed. Exactly like how axis2.war do...

Authenticate users with SpringSecurity using a WebService that requires a username and password

Currently I am writing a web application using Spring Security. We have a web service which authenticates users by username and password. Web service: String[] login(String username, String password); How do I configure Spring Security to pass the provided username and password to the web service? I have written a UserDetailsService...

choosing the right WCF web service option

I'm just starting out with WCF web services, and I'm having a really hard time finding a very simple tutorial, so I thought I'd ask some questions here. Here's my setup: I have a WPF desktop application that needs to send data over the internet to a web service on our server. The way I see it, I have at least these four options: I ca...

What is right way to code input parameters with complex types for a C# .net 2.0 WebService?

I am currently building a new version of webservice that my company already provides. The current webservice has an input parameter of type string. In that string an entire xml doc is passed. We then validate that string against an xsd (the same xsd given to the consumer). It looks something like this: [WebMethod] public bool Upload...

Best tool for monitoring Coldfusion interoperability with .Net web service

Is there a tool to see the message sent to webservice hosted on an IIS server? I have a webservice written in .Net and our ColdFusion people are having trouble building a "complex" parameter. This problem is described from a ColdFusion perspective at: adobe forum question It runs when called from a .net client. While hosted on a server...

how can I parse xml data in php

Hello, I am trying to find out how this would work For testing purposes, I have made two websites. One is calling a REST service from the other I pull the xml data with file_get_contents if I echo it, I can see a string off data. But how can I use simpelxml on it, extract data from the nodes themselves? If I use simplexml_load_fil...

Call webservice on outside server from javascript using asp.net and C#

I'm trying to test web service calls using an ASP.NET page that creates a form with username and password fields and a "Submit" button. (Both jQuery and the .js file I'm using are included in script tags in the head element.) The "Submit" button calls a function created in the C# code behind file that makes a call to a separate JavaScri...

How do I hide the username/password prompt that appears when a [WebMethod] gets called on an invalid session?

I have a .aspx with a static method decorated with the [WebMethod] attribute and a ScriptManager on the page, so that the WebMethod can be called with PageMethods.MethodName(). Forms authentication is enabled. This works well in all scenarios except where the WebMethod is invoked on an expired session. When that happens, the service re...

Webservice Applicationpool

Hi I have two diffrent web services(running on local machine) and pointing to one application pool(1.Can I do that?Is it any performance concern?).I have not much knowledge about how the applicationpool will works. the other .Net application is using two webservices,but frequently one webservice is not responding which internally ca...

How to pass username and password to a web service from within an iPhone app?

Hi All, Have a look to this code snippet:- CommonService objcommonService; NetworkCredential myCredentials = new NetworkCredential("144552", "F@mous123456"); objcommonService.Credentials = myCredentials; This is a C#.net code. In this snippet "objcommonService " is a object of the webservice "CommonService". This webservice pre auth...

What is "Attempt to lookup host entry for bad IP address" error?

Hi All, Check this error and please help me. 2009-07-24 15:58:34.209 LBS[2636] Host 'staging.common.virtualearth.net' not found using 'gethostbyname()' - perhaps the hostname is wrong or networking is not set up on your machine 2009-07-24 15:58:34.209 LBS[2636] Attempt to lookup host entry for bad IP address (staging.common.virtualearth...

How do I use a common class between winforms client and web service?

I have inherited a large admin winforms application that shares a 'Common' library of classes for holding data with a web service. The problem I am having is that if I return a populated instance of a class from a web service call then it comes out on the client as a different type and I cannot use the other 'Common' project logic to man...

WCF service in Silverlight will not recognize both custom class and method

Hi all, I have the following web service: [ServiceContract(Namespace = "")] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] public class MyTestClass { [OperationContract] public List<TrackInfo> GetAll(string songName) { return new List<tracksInfo>;...

Debugging C# ASP.NET Web Services

I have some legacy Web Services written in C# ASP.NET. There is a specific object in a library used by the Web Service that I need to inspect. Setting a breakpoint in the web service doesn't do anything. This is made harder by the fact that the code is so horrendous that the entry point to the Web Service callout is not obvious. ...

VS2003 Web Reference for a WCF Service has Extra "IdSpecified" Parameter

I am developing a WCF service using VSTS 2008 + .Net 3.5 + C# and it works fine when I also use VSTS 2008 to develop client (using Add Service Reference function to automatically generated client web services proxy code). The WCF I developed is using basicHttpBinding. The issue I met with is, when I use Visual Studio.Net (Visual Studio ...

Create dynamic xml and send it with php class

Hello, my question is how I can send clean xml from this class. It is simplified, so there is the least off trouble that could have been caused by other things. The problem now is that the error says that the xml declaration should occur at the top off the document. What is the right way to avoid this kind off errors? Is there some php...

Java web service, xsd date instead of dateTime

In Java EE 1.4 using JAX-RPC 1.1, how can i expose web service, so the wsdl has a complex type (person) where one of the properties of the person is a date which is shown in the WSDL/XSD as only a date (such as a birthdate) instead of a dateTime (where the time is not wanted) in the WSDL/XSD? i would like the xsd referenced in the wsdl ...

How to setup cookieless domain in Lighttpd?

I want to setup domain with disabled cookies, to serve static content. ...

Adding a cookie to web service port client

I'm using a web service in my app that requires a specific cookie to be set in order access it's methods. I was using a generated wrapper class for that service that was created using wsdl.exe tool. Everything is working ok using that method. // this is the instance of object generated with wsdl.exe WSWrapper service = new WSWrapper();...