web-services

running a thread from within a vb.net webservice

Hi all I have a webservice with a webmethod that accepts an XML from a client via POST (don't know if this really matters), validates XML and the data inside, and then processes the XML and returns an answer to the client. At moment, I have a problem with large XMLs; it takes too long for the XML preprocessing to finish, and the clients...

securing remote CFCs in Coldfusion

I'm having a lot of trouble finding information about securing remote functions on Coldfusion CFCs for AJAX calls. Lets say you're retrieving sensitive information for a user after the user logs in to the site via an AJAX call. You call something like this: https://www.mySite.com/pathToCFC/MyCFC.cfc?method=getBankInfo&userID=2343 ...

webservice timeout c#

Hi, I have a c# application and I want to fire off a webservice but I dont care about the response and I also dont care if it fails. At the moment i fire of the service async but i am getting an error when the call fails. Is there anyway I can configure the app/webservice to stop it failing without rapping try catches around them (basi...

Create custom exceptions in Axis2

I'm using Axis2 1.5.2 and Eclipse. I'm using Eclipse to generate the WSDL and client code from generated WSDL. I created a custom exception that my service can throw. Everything looks ok when creating the webservice. The webservice starts successfully and I can view the generated WSDL by pointing my web browser. But when I tell Eclips...

Exception generated on service reference response

I'm calling a service reference using WCF, but the service requires plain-text passwords, which WCF does not natively support, so I'm using Yaron Naveh's ClearUsernameBinding implementation. This is getting me half the way there. The service I'm calling is firing (because I can see it insert records into a database), but it's failing on ...

Securing asp.net web services to be consumed from flash

Hi, my team is building a game in flash to be embeded in a asp.net application. When the game is over the player have the chance to type his name to save his score. This is done using web services called from flash. The webservice receives the name and score. Since the webservice is publicly available how can I make it only callable fr...

How can I overload method in Java web-service?

Suppose I have the following methods declared in my web service: @WebMethod() public Long addNewApplication(String applicationName) throws ServiceManagerException { // implementation } @WebMethod() public Long addNewApplication(String applicationName, ApplicationState status) throws ServiceManagerException { // implementation }...

Http 502 Bad Gateway error when accessing a web service

I have a asp.net 4.0 web site and I'm using some external web services to retrieve some data that I display. I have created proxies for those web services using the wsdl tool. I'm setting an url and I'm setting PreAuthenticate = true and Credentials = new System.Net.NetworkCredentials(userName, password) on the web service. I get an e...

problem when jquery call ASP.Net Webservice

Here is my WebService [WebService(Namespace = "http://www.rpsoft.com.vn/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ToolboxItem(false)] [ScriptService] public partial class DataFeeder : System.Web.Services.WebService { [WebMethod(EnableSession = true)] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] ...

Web service in iphone

Hi everyone i am new to iphone development.I am working on an application which required to check and register the user name and password using soap web service.could anyone help me how to do that with that web service.i have two text fields for login.and button to check if the credentials are correct or not. ...

call javascript from windows service... possible??

This is a task I have and I am a little unsure about the way to go about achieving this. So I thought the best approach would be to ask other professionals for their thoughts. Basically, I will be storing a load of transactions/triggers for numerous affiliates in a database. Then using a widows service I am going to go through this data...

Asp.Net MVC and Web Services

I have an existing Asp.Net MVC Website and I would also like to provide a Web Service from the same domain. What is the best way to approach creating a web service in this scenerio? Do I add to this project or...? ...

How to serialize to c# code?

I am testing a web-service that gets an object as a parameter. To create this object I go through an online store that we are maintaining and the end result is a rather big object, we can call it BO, sent to a web-service. Now we seem to have a bug that comes up when BO is in a specific state. I tediously go through the online store t...

Java/XML problem

Hello all, I'm having an issue generating XML via Java code. I have a class that for SailingAvailabilityResponseMessage. Within this class there are several other classes that are also used in the method I'm writing. Here is a snippet of what the SailingAvailabilityResponseMessage classes looks like: import javax.xml.bind.annotation...

extract wsdl from c# winforms client

Hi I have a client that was successfully calling a webservice. the webservice was changed then the changes removed. but now the compiled c# winforms client cannot call the webservice. Can I extract the wsdl the client is expecting to compare with the actual wsdl??? ...

Web service client design pattern (best practice)

Hi all, I have a web service deployed and ready to use. The client application is going to use this service synchronously and extremely frequent. The amount of data returned from the web service is also considerable. The web service client is a web application (liferay portlet). I have generated the client part with axis inside eclipse...

How to make a dotnet webservice set minOccurs="1" on a string value

I have an XSD: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://a.com/a.xsd" targetNamespace="http://a.com/a.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="A"> <xs:complexType> <xs:sequence> ...

Generating Apache AXIS2 WebServices from a (my)SQL schema ?

Hi all, Is there any tool that could be used to generate some code for apache Axis2 from a (my)sql schema. For example, the following schema: desc name; +-------+------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+------------------+------+-----+---------+-------+ | id...

In .NET, how do you provide a session identifier to a web service that requires authentication?

I am using a web service that requires authentication from .NET (Visual Studio 2010). According to the documentation, you first request a session identifier from the first web service. I can do that with no problem. Then you are supposed to call the second web service for actually performing your query, passing the session identifier in ...

xs:choice embedded in xs:sequence prevents the use of a union

I have the following xsd <xsd:complexType name="myID"> <xsd:choice> <xsd:element name="testID" type="priv:testID"/> <xsd:sequence> <xsd:element name="newID" type="priv:newID"/> <xsd:element name="testID" type="priv:testID" minOccurs="0"/> </xsd:sequence> </xsd:choice> </xsd:comple...