web-services

axis Integrated Windows Authentication

I am trying to connect to a web service that has Integrated Windows Authentication with apache axis. I have set the call user name and password like so: _call.setUsername( "user" ); _call.setPassword( "password" ); I have also tried switching to the apache http client using this as the client-config.wsdd: <?xml version="1.0" ...

HTTP authentication and filesend in C

i have some parsed data in two files. i need to send these to a webserver of a website. i also need to be logged into the webserver first. i am new to this web interaction thing. i just need to know how might i go about doing this. i am learning the libcurl library so i guess it can send standard HTTP POST messages. i will make a simple ...

How to override C# DateTime serialization with class auto-generated from wsdl?

I have a WSDL that the consumer of my web service expects will be adhered to strictly. I converted it into an interface with wsdl.exe and had my web service implement it. Except for this problem, I have been generally pleased with the results. A simple GetCurrentTime method will have the following response class generated from the WSD...

How to provide server address to the Spring-configured Apache CXF-based web service client?

I'm experimenting with Apache CXF and have a question about the client part. Below is my current Spring configuration of the WS client of some com.example.customerservice.service.CustomerService: <jaxws:client name="com.example.customerservice.service.CustomerServiceClient" serviceName="customer:CustomerServiceService" endpoint...

How to prevent multiple access to a webpage?

Say I have a web service where I want to serve the content only once. After it is served any other access to that url should generate an error message. How would I go about doing something like this? What if 2 clients access the url in the same exact moment? ...

ASP.NET XML to JSON for httphandler

Can anybody recommend the best way to do this? Should I use JSON.NET? ...

Unable to access the WCF service over VPN!

Heres the scenario, im on a network A, and i use a vpn client to connect network B to access the webservice which can be accessed in network B.Even though im connect to network B , im unable to access the webservice link.Do i need to configure any settings. But if u r originally in network B and even though if u have connected to networ...

Service reference error when moving dev. environment from XP to W7

Hi, I am building an application and I am using web services for getting data from a server. It was working fine when I was developing on my XP machine but had to switch to Windows 7. On the new machine I grabbed the latest version of the code using sourcesafe. However, when I try to add a service reference in the solution or update an...

Error calling webservice from JQuery

I have a strange problem when I'm trying to call a simple webservice method from Jquery. Locally it works fine, but on my test-server it does not. The jquery request looks like this (only showing the actual request and not the rest of the method): $.ajax({ type: "POST", url: "/Service/Service.asmx/AddTab", data: "tab="...

ASP.NET Web Service

Why doesn't a ASP.NET web method allow default parameters ? ...

Best Way to call a Web Service from TSQL

Hello, What is the best way to call a Web Service from TSQL? I would Like to write some triggers that call out to a web service. Is there a generally used best practice for this? Implementations would need to be handled in SQL Server 2005 and 2008 ...

unable to get values from JSON converted from XML

I have passed some JSON to my page via a webservice. I used JSON.NET to convert XML to JSON. The JSON output looks ok to me, but I am unable to access some of the items in the response. I am not sure why it is not working. I am using jQuery to read the response and make the webservice call. Even when I try to read the length of the array...

Connecting to SQL Server database via Web service

1.) I can create a simple application which has one routine called function ConnectToDB: Boolean and run it from my virtual directory (wwwroot/cgi-bin) and it connects and reports back connected . 2.) I can create a simple web service helloWorld function helloWorld: String;stdcall; I can create a client and call my web service ca...

How do you use Django forms when receiving JSON Ajax requests from an iPad?

I'm sending a lot of JSON requests from a native iPad application to my Django web server. How do I translate forms I use on my website to handle an iPad web service? Am I trying to solve the wrong problem, should a web service used from native iPad applications be redesigned to use REST-ful requests? ...

Does xs:time default to UTC when time zone is omitted?

The XML schema spec seems vague on how to interpret an xs:time value when no time zone is specified. (See section 3.2.8.) Is there a common consensus on this (e.g. UTC or the local time zone)? ...

Accessing FacesContext from Web Service

I'm developing a Web Service which will be called by clients which are written by me. In the web service I need to use application-wide objects which eases the load of application on the system. I have implemented my application-wide objects as shown in this question. I can use my object in a jsf page with no problem as follows. MyObj...

How can I [simply] consume JSON Data in a Line of Business Web Application

I usually use JSON with jQuery to just return a string with html. However, I want to start to use Javascript objects in my code. What's the simplest way to get started using json objects on my page? Here's a sample Ajax call ( after $(document).ready( { ... }) of course: $('#btn').click(function(event) { event.preventDefault();...

I have a asmx webservice , I want to return the xml from a stored proc.

Im using Linq to SQL I have a stored procedure that is returning xml . ie im using for xml outo ,elements that works fine. what I want to do is expose the result of the stored procedure via a webservice. Here is some pseudo code: if some could help me replace the ?'s [WebMethod] public ? myMethod( int custID) { var myCust = d...

Web Service is truncating a string in an object being returned... totally lost why

I have a webservice that returns an object i have defined. One of the properties is of the type string and holds a significant amount of characters...over 500 at times. When pass data of the same type TO the webservice, it makes it there and i see the data in my DB. When I return data to the client side, that property is getting truncate...

Validating call to web service against schema before sending request

I am calling a web service (written in Java) in my web app. I use the WSDL to generate proxy classes using the wsdl.exe command line tool. Everything is working fine. However, I have found out that the web service is not doing any data validation at all when they receive a request from my app. Hence, if I happen to send one minute pi...