web-services

Usehttpget for script methods in config of asp.net web services

Is there a way to put the usehttpget true/false option for scriptmethods in web.config? I see that even the scriptmethod annotations are placed inline with the code. Is there a way to move this to config as well? Ive seen usehttpget/post option in web.config for webservices but I need the same thing applicable for scriptservices. ...

PHP and Javascript Webservice

By using javascript am trying to cal a webservice.That service return response as follows.. <envelope> <date_time> Test', callbackTest Wednesday, March 31, 2010 2:28:55 AM </date_time> </envelope> I am using firefox as browser to execute the application.Thats why after creating the object of XMLHttpRequest try to read as follows _xm...

How to secure Java webservices with login and session handling

I'd like to secure my (Java metro) webservice with a login. Here's how I'm planning to do that: Steps required when calling a webservice method are: call login(user,pwd), receive a session token 1.1 remember the token call servicemethod (token, arg1, arg2...) webservice checks if the token is known, if not throw exception otherwise p...

Failed sending bytes array to JAX-WS web service on Axis

Hi I have made a small example to show my problem. Here is my web-service: package service; import javax.jws.WebMethod; import javax.jws.WebService; @WebService public class BytesService { @WebMethod public String redirectString(String string){ return string+" - is what you sended"; } @WebMethod public byte[] redirectBytes(by...

Where should I put my breakpoint to check XML Response string from a web service?

Hi, You know, once you add a web reference to a webservice a wrapper code is generated by Visuel Studio. I was wondering if there is a method (or property) which is generated by Visual Studio whatever web service you add to your project so that I can put a breakpoint there and once the debugger stops there, I can simply read the respon...

ASP.NET client to stateful java webservice client (metro)

Hi I have a webservice with the following annotations: @WebService @HttpSessionScope @Stateful @Addressing Now I created a ASP.NET (c#) client for this webservice, but when I call a method the following error is returned: This is a stateful web service and {http://jax-ws.dev.java.net/xml/ns/}objectId header is required. How can I...

JAX-WS, webservices (Spring) issue

Hi All, I have written web services and configured with spring framework but I am getting exception when invoking services. Exceptions stack trace are given below - com.sun.xml.ws.server.sei.EndpointMethodHandler invoke SEVERE: object is not an instance of declaring class java.lang.IllegalArgumentException: object is not an instance o...

SOAP API reporting non-validating XML

I'm calling a SOAP webservice using Apache AXIS2 with ADB. Never mind the 64.000 line stub generated to send over two parameters + auth, I'm getting an obscure XML validation error. I'm sending this (username and password redacted): 2010-03-26 00:28:59,982 DEBUG httpclient.wire.content - >> "<?xml version='1.0' encoding='UTF-8'?><soap...

Pass a JSON array to a WCF web service

I am trying to pass a JSON array to a WCF service. But it doesn't seem to work. I actually pulled an array [GetStudents] out the service and sent the exact same array back to the service [SaveStudents] and nothing (empty array) was received. The JSON array is of the format: [ {"Name":"John","Age":12}, {"Name":"Jane","Age":11}, {"N...

How to have all webmethod calls of a webservice be handled by the same function? (JAX-WS)

The idea is to have a client calling different webmethods but at the server side having all the calls redirected to one entry point where authentication/permissions are checked and then let the call continue. This is: client side server side ------------ -------------- ...

Linq to SQL Web Service XML

I built a .NET web service connecting to an SQL Server database. There is a web service call GetAllQuestions() that will not change. I saved the result of GetAllQuestions to GetAllQuestions.xml in the local application folder and set it to content. Normally I would get the result of the web service like this: var myService = new SATSer...

How to eliminate the "Access is Denied" error when calling OBIEE Web Services SOAP API?

I have successfully used the HtmlViewService in the OBIEE Web Services SOAP API to pull back HTML for an Answers report (using C#/ASP.NET). For some reason, they are using an iframe to call the SOAP API and return the bulk content of the report (I was hoping to just get the raw HTML, but I'll save the grief for another day). Anyways, whe...

Best practice for using web services (ASP.MVC)

Basically what I have is web services returning data in xml format. Once I do a call to a webservice to retrive data from web service function (GetUserList) i want to take that data and then dymaically display (no postback) the resulting information. I know several ways of doing this: webservice sends data back to javascript, javascript...

adding a token onto a webservice or wcf call via soap extender

I have a soap extender which I am using to log the http soap request and response for each webservice that is called from my application as a comms log. I would like to inject a token on the 1st call (possibly the 1st call to invoke the service that is being logged) and then be able to track all subsequent webservice calls run in the sa...

Access web service from GWT

Hi! Is there any way how I can access a web service from GWT using its WSDL? Previously I was trying to use the generated classes from ws-import.... but then someone pointed out to me that GWT cannot handle all Java, just a subset of it, hence it won't understand the ws-import classes. Thanks and regards, Krt_Malta ...

can not see new method in wsdl

Hi I created a webservice from a class with no problem. Then I added a new method to my webservice class but when I click "Create Web service" on this class, new method has not been added to wsdl. but when i create a new webservice project from new class again which is different from previous one, new method can be added to wsdl. I am...

Exposing python api over the network for an iphone application

I have functionality built in python on a central server. I wish to expose this api over the network to an iphone application. What would be the best way to do that? Is it possible to create web services in python and have the iphone app use those? If so could anyone give me pointers as to how to create web services in python. If someo...

SOAP web service evolution

Are there any guidelines/tutorials as to how to handle the evolution of a SOAP web service? I can see that changing existing methods or types would probably not work, but can I just add new methods, complex types, enumeration values without breaking existing clients? ...

How to make Spring Client using Webservice(WSDL) with REST or POST??

Hi! I am doing the same thing , through a wsdl file provided at server side . and i have to access the file from server using a Spring-J2SE based project. and I am new in Spring Framework.. The wsdl might have more than one operation used and also return the value. And which one to use as webservice SOAP or REST?? Can anyone help w...

Steps in creating a web service using Axis2 - The client code

I am trying to create a web service, my tools of trade are: ** Axis2, Eclipse, Tomcat, Ant ** I need to create a web service from Code, i.e. Write a basic java class which will have the methods to be declared in the WSDL. Then use java2WSDL.sh to create my WSDL. So, is this approach correct: Write my Java class with actual ...