web-services

SOAP fault client code error in webservices

Hi I have a webmethod on a webservice(.asmx page), when i try to access in winform client app, i get <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; <soap:Body> ...

How to send date as a parameter to the request in Ksoap2 to consume .Net web service

I am using KSoap2 for consume web service in my application. I need to send date as parameter in the request. Can anybody know how to send date as a parameter and send the request and please give the sample code for it. Does Ksoap2 support date format? Thanks ...

Web service can't be called from javascript after migrating from ASP.NET 2.0 to ASP.NET 3.5

I have an ASP.NET 2.0 application (with Ajax Extensions 1.0) that I just migrated to ASP.NET 3.5. In my app, I have a web service that's called from javascript (the service has the [ScriptService] attribute) and everything was working perfectly until I migrated my app. Now, the web service doesn't respond anymore. Note: I don't use Scr...

Java method exposed as web service using JAX-WS

Hi, I have got a function with prototype Bean1 fn(Bean2 ) in java. I am trying to expose it as a web service so that same can be called by a .net client or any other. I am using JAX-WS. Both Bean1 and Bean2 have got Hashmap, String and Int type of class variables. Please suggest me as on how to deal with the Bean classes. Isn't hashmap ...

Problem to see Web Services running on local machine

Hi All I have written some web service, I run it and see it from my firefox and run it from there. Now I want to call it from some other code/solution i trying to add there a web reference and Web Services on the Local Machine , but i cannot see there my web services. Any idea what is missing ? Sorry for the newbie question it's my fi...

How to disable the webservice

Hai Freinds How to disable the webservices for a particular page.i am creating wsdl webservice from www.webservicex.net i want to disable for time being how to do this? ...

Exchange Appointment Types

I use the following code to save an appointment via Exchange Web Services Managed API: Appointment appointment = new Appointment(m_exchangeService); appointment.Subject = subject; appointment.Body = body; appointment.Start = start; appointment.End = end; appointment.Save(); When I do this the Appointment is created as a 'meeting' in O...

Consume Java Web Service that returns a hash table in .NET

Hi, I want to consume a web service built in Java from a .NET application. The web service returns a hash table in one of the methods and when I run soapUI against that method I can see that it works. But when I add the web service as a Service Reference in VS2008 the hash tables are converted into arrays... Could I configure the servi...

How would I implicitly call a method after having explicitly called another specific type of method

Lets say I have a bunch of methods in a class which call a Webservice and, as a result, I need to check the "response" of the Webservice each time one of these methods is called. But I don't want to do something like this: MethodA() // non web service related method MethodB() // Web service calling method if _response == OK then M...

Asp.net web service read custom header

cant read http custome header "MSISDN" from my web service ... same code works on regular asp.net page. Can anyone shade a light on that subject ? public CellulupResponse parseRequest(string requestString) { CellulupResponse response = new CellulupResponse(); UserIDType userType = UserIDType.MSISDN; // Get The HttpReq...

Web Service/Client relationship in Visual Studio or Visual Web Developer.

Can you create a web service/client relationship in Visual Studio or Visual Web Developer over 2 PC's - 1 as the web service, the other as the client? If so how do you do it? I have create this relation ship on 1 PC running both the Web service and the client, I want to send data between 2 PC's if possible? ...

How to handle minoccurs="0" when calling web services?

I have a web service I am trying to call using a mainframe integration product (DataDirect Shadow z/Services), but my question is more of a general one. I want to know how an element defined as minOccurs="0" is typically handled. The operation on the 3rd party service I am calling has a complexType element where all of the elements wit...

How to use python for a webservice

Hi, I am really new to python, just played around with the scrapy framework that is used to crawl websites and extract data. My question is, how to I pass parameters to a python script that is hosted somewhere online. E.g. I make following request mysite.net/rest/index.py Now I want to pass some parameters similar to php like *.php?i...

Extended PSI Error (System.Net.WebException: The request failed with HTTP status 401: Unauthorized.)

Hi, I am currently trying to develop a ExtendedPSI Web service which in turn calls a number of existing PSI Web services. The trouble is I recieve the error (System.Net.WebException: The request failed with HTTP status 401: Unauthorized.) when I try to access the existing PSI services from with the ExtendedPSI I have created. I can get ...

"No such operation" Error in axis webservice

Hi All, I'm developing an axis java web service with two methods, both have an custom Object as parameter and a custom object as return value. I have them defined in the wsdd as: <service name="MyService" provider="java:RPC" style="document" use="literal"> <parameter name="className" value="com.mycompany.webservice.MyService"/...

How to Call grails webservice from C#

I have a grails webservice that takes a binary file as a parameter. This is basically what it looks like: def index = { switch(request.method){ case "POST": def uploadedFile = request.getFile('file') File f=new File('c:/dev/newfile.tar'); uploadedFile.transferTo(f); //do something with f break } } In or...

Debug WCF service hosted in local IIS not working

I have one solution WCFSampleSolution and it has all my projects - Web Service, Client and Website. The structure is something like: WCFSampleSolution C:\WCFSample\Website WCFService WCFWebClient I created WCFService project for my services. It contains IService1.cs and Service1.cs. Then I hosted the service in IIS. I did this by c...

Axis2 problem reading response

Hi, I have setup Axis2 with Spring Framework integration. I followed Axis2 example from their website. I'm also using Eclipse to debug the web service and client. Using Eclipse, I see that the web service is getting called because of the break point. The parameter is also being passed. Problem is when the web service returns the resp...

How to authenticate to webservice with curl?

I am trying to get curl to run a webservice for a site I am working with. The site requires a login. I tried using --user:password with curl, but to no avail. How do I find out how to authenticate with the site? ...

Where should I put a URI declaration for a namespace in an XML doc?

I am currently building an XML schema, with a head, a body, and potentially errors. I am dividing those three parts into different namespaces, so I'm wondering where and when I should put the URI namespace declarations in. For example, should it be: <head:schema xmlns:head="http://mywebsite.com/ns/head/" xmnls:body="http://mywebsite.co...