web-services

How secure is my ASP.NET code?

Hello all, I've developing an ASP.NET application that interfaces with Google Maps and retrieves marker information from a database. The marker information is split into tables in the database, where the name of the table reflects a company (e.g. CompanyA_MarkerData, CompanyB_MarkerData etc). In order to periodically update the map with...

How to Get Current Weather via Web Services

I am attempting to get the current weather given a zip code or a set of latitude/longitude coordinates. It appears that best practice to do this (and how NOAA does it) is to get the XML feed for a weather station. Example: http://www.weather.gov/xml/current_obs/KEDW.xml The only problem is that NOAA doesn't provide a good way to fi...

WSDLs generated by Axis2 services can't be read by SoapUI or WSDL2Java

I'm converting some services from Apache SOAP to Axis2, so the Java service classes already exist. I created a new project in Eclipse, imported the source, made sure that the Axis2 project facets were installed, and Axis2 emitter properties are correct. Then, in Eclipse, I selected the service class and chose "Create Web Service," choosi...

How to debug a web service written in PHP?

Hello, I've got a nice question here :) I need to debug my web service written in PHP. Its client is written in C#. After a couple of days of searching I realized this is not an easy task. At least it seems nobody knows the right solution. What is the problem in, actually? We have 2 popular PHP debugging libraries : PHP Debugger from N...

calling webservice in java servlet

I have created a servlet which displays a form having some fields and a submit button and also created a web service having methods which are needed in my servlet. I have deployed the web service on Tomcat 5.5.9/Axis and servlet web application on Tomcat ( same instance of Tomcat) using eclipse. Since one is web service and other is we...

Is it safe to reuse javax.xml.ws.Service objects?

I have JAX-WS style web service client that was auto-generated with the NetBeans IDE. The generated proxy factory (extends javax.xml.ws.Service) delegates proxy creation to the various Service.getPort methods. The application that I am maintaining instantiates the factory and obtains a proxy each time it calls the targetted service. Cr...

ZSI in python... web service that sends and receives binary file?

Hello everyone, I am working on a python app which needs to expose some services. For that task I was testing ZSI. Everything was fine until I tried to send binaries through the web service. The tested escenario looks like this: A WSDL for the WS (to execute wsdl2py / wsdl2dispatch) A response including a Base64 encoded binary The p...

Convert Java Arraylist return from Java WebService to C# Arraylist

In my C# program, I would like to consume the Java Web Service Method which replies the java.Util.ArrayList. I don't know how to convert the Java ArrayList to C# ArrayList. This is Java Codes @WebMethod @WebResult(name = "GetLastMessages") @SuppressWarnings("unchecked") public ArrayList<Message> getLastMessages(@WebParam(name = "Messa...

WebMethod Return xml

I keep reading how everyone states to return XmlDocument when you want to return XML. Is there a way to return raw XML as a string? I have used many web services (written by others) that return string and the string contains XML. If you return XmlDocument how is that method consumed by users that are not on .Net? What is the method to j...

DataContractSerializer and deserializing web service response types

Hi, I am using calling web services and using WCF generated service-reference on the client. I have saved XML responses that are received from test service to disk (without SOAP envelope and body tags) I would like to load them from disk and create objects from them. Lets' take the following method from my web service: SomeMethodRespo...

Consuming and Provide webservice to client

Hi, I got a requirement to implement a website in java which will utilize another web service. Here is the scenario I am providing the product compare results to client and assume i am using amazon and other web services. Initially client invoke our web service and then we fetch results from merchants. I don't want complete soluti...

Use a WebService for Crystal Report

I use a report in 2 projects, so I need to migrate report to a WebService by following this : http://aspalliance.com/1883_Building_Reports_using_ASPNET_and_Crystal_Reports__Part_5__Creating_Reports_as_a_Web_Service.1 From the existing report, it was loaded by a ReportDocument protected void Page_Load(object sender, EventArgs e) ...

Cassini vs IIS Authentication Issue

Hi All, I have a C# webservice in .net 4.0. The webservice will create a file on a UNC path. If I let the Cassini web server in visual studio do the authentication it works fine. But if I change the application to use IIS (Windows 7) then the file doesn't get created but no error is reported. If I change the location of the generate...

How to access a PHP Web Service from ASP.Net?

I am trying use a web service in a C# ASP.Net Web Application. The service is built in php and is located on some remote server not under my control so i cant modify it to add meta data or something else into it. When i use the "Add Web Reference" option in Visual Studio 2008, I receive the following error: The HTML document does no...

EJB3 Remote vs Webservices, performances?

Hello I'm planning to a webapp where every guy using it would have a client that would run computations on its computer (because these computations can't be done on the server, too much load...), and then send results to the server. I guess there will be lot of people interested in my application and that's why i'm wonder if my archite...

Disabling access to wsdl file in Axis Service Listing (listing services from wsdl's)

The listing of all deployed Services can be disabled by setting 'disableServiceList' to true in Axis; which is used in AxisServlet.java -> reportAvailableServices() . However, is there a way to disable access to the wsdls ? ...

Sharepoint UserGroup.asmx GetGroupCollectionFromUser(..) returns empty collection

Hey I try to get all the user groups that the current user is a member of, I am using the UserGroup.asmx GetGroupCollectionFromUser method. However this method returns an empty collection even if the user belongs to some groups. I checked the user group settings that allows all the group members to see the membership to this group. ...

What exception is thrown if a web service I'm using times out?

I'm calling a .NET 2.0 web service within my existing .NET 2.0 web service. I would like to know what exception is thrown from the web method if a timeout happens. I have set the web service timeout to some lower value than the default 90 seconds and I want to add business logic if timeout happens. Is [System.Net.WebException][1] the ex...

jQuery AutoComplete (jQuery UI 1.8rc3) with ASP.NET web service

Currently, I have this version of the autocomplete control working when returning XML from a .ashx handler. The xml looks like this: <?xml version="1.0" encoding="UTF-8" standalone="no" ?> <States> <State> <Code>CA</Code> <Name>California</Name> </State> <State> <Code>NC</Code> <Name>North Carolina</Name> </State> <State> ...

webservice CopyIntoItems is not working to upload file to sharepoint

The following piece of C# is always failing with 1 Unknown Object reference not set to an instance of an object Anybody some idea what i am missing? try { //Copy WebService Settings String strUserName = "abc"; String strPassword = "abc"; String strDomai...