web-services

Proper DateTime Format for a Web Service

I have a webservice with a method which is called via a xmlhttprequest object in my javascript. The method accepts a datetime parameter which is subsequently converted to a string and run against the database to perform a calculation. I get the value from m_txtDateAdd and send off the xmlHttprequest <asp:textbox id=m_txtDateAdd tabInde...

Can I Create a Web Service that has Properties?

I'm trying to test code around a web service that is not available yet. I'm trying to dummy up my own version. According to the specs it will be called like this. var service = new Service(); service.SD = new ServiceData(); service.SD.ID = "ABC123"; service.SD.Auth = "00000"; string result = service.DoMyThing(); This is the closest ...

Whois API and Whois Parser

I'm looking for a program/service that does Whois lookup and parses the whois data into detailed finer details, eg. registrant-> registrant_name, street address, city, state/province, country, email, etc. I googled around and found WhoisAPI, it is a Whois lookup service and Whois Parser that parses into XML, however it's not free. How ...

How to capture SoapRequest.xml and SoapResponse.xml

I have created a Java Webservice(first .WSDL file,then wsdl2Java)using Axis2 stack sucessfully.If I'm using Axis2 stack,it'll creates all the Java beans stuff. I have written a Webservice Client using Stubs generated from the WSDL in pure Java by creating Request Object ( in Java) and in the Response I got java object. But my requirem...

Passing PHP output stream to Java

I am building an app using SOAP/web services to interact with a Java API. All was going swimmingly until now. I need to pass an output stream as a param to a Java method from PHP. I am pretty sure I need to use PHP output buffering and fwrite, I am just not sure how to go about it. I know you can use Java in php by using $myJavaFromPHP...

Multiuser access to encrypted data

I'm building a server-side application which requires the data the be stored encrypted in the database. When a client accesses the data, it also has to be transferred encrypted. The clients each has a unique login. My original idea to do this, is to store the data encrypted with a symmetric-algorithm like AES. So when a client wants to ...

Web Service Port No Question.

I am working on a web service project using gsoap. I am new to web services and have some basic questions. What should be the port no. of my web service? Currently this web service is a stand alone service listening to a hard-coded port no. of 22050. Client connects to this port and everything works fine. Is this approach OK? What are t...

Mechanical Turk File Upload

I'm trying to test file uploads on Mechanical Turk. I'm calling the GetFileUploadURL service and my query string looks something like this: Operation=GetFileUploadURL&AssignmentId=XXX&Signature=XXX&Version=2008-08-02&AWSAccessKeyId=XXX&Timestamp=2009-07-11T18%3A33%3A03-04%3A00&QuestionIdentifier=smiley&HITId=XXX&Service=AWSMechanicalT...

Connecting to Microsoft Dynamics CRM web service with Java?

Are there any online resources which show the basic steps to access the Microsoft CRM web service with a client written in Java? Which web service toolkit should I use? I tried it with JAXB but there is a conflict in the WSDL element naming which requires a class customization. If I find the correct binding fix, I will post it here. E...

ASP.NET Web Service inside Forms Authentication Application

I have an existing ASP.NET application that implements Forms Authentication site-wide. The application is deployed in multiple instances (e.g., customer1, customer2, test, dev, etc...), with a separate database per instance. SSL is in play. Instance configuration is via an XML config file. I have a new requirement to allow upload/downlo...

How to inject EntityManager in non-EJB based WebService?

The headline says it all: I've got a simple WebService @WebService(serviceName="G08WService", portName="G08WPort", endpointInterface = "at.fhj.itm.g08.wservice.IUserWebService") public class WService implements IUserWebService { @PersistenceContext(unitName="g08b2") EntityManager em; @Resource UserTransaction utx; ...

WSE 3.0 crashes when ClearHeaders is called

...

Best practice to detect iPhone app only access for web services?

I am developing an iPhone app together with web services. The iPhone app will use GET or POST to retrieve data from the web services such as http://www.myserver.com/api/top10songs.json to get data for top ten songs for example. There is no user account and password for the iPhone app. What is the best practice to ensure that only my iPh...

Choosing between performance and ease of use in WS API

We're in the process of creating a new API for our product, which will be exposed via web services. We have an internal debate whether the API should be as easy as possible to use (in the price of making more calls) or make it as efficient as possible (rendering it harder to use). For example, here are two issues that came up: Should w...

Access Denied Error When using Windows Authentication Mode for WebServices

Hi, I have Windows application which calls one of my WebService. I am using Windows Authentication Mode for my WebService. a)When I try to access the Web Service it throws an error- System.Net.WebException: The request failed with HTTP status 401: Access Denied. I have set And also I have switched off Anonymus Mode for the WS. ...

object from java client to WCF Web service, error deserializing

I have a .NET WCF Web service working great when called from another .NET app. Now I was trying to build a Java client to test the service but one of the methods won't work. I try to send a List of updates. The complex type is: <xs:complexType name="ArrayOfRegisterUpdate"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="...

How do I best implement a web service client inside a web application?

I've got a service running at a fixed location in the network, with a WSDL attached etc. I can easily create a jax-ws client with wsimport and the usual stuff when doing this stand-alone, but I'd really like to be able to call this service from inside another web application. Unfortunately I'm running into some gotchas here. For one, ev...

Using Web Services instead of DLLs

I am looking to see what the consensus is for best practices or just plain sanity in writing apps. For this example I have the following: [HttpHandler] ClientRender.ProcessRequest(…) ClientFactory.GetInnerInfo(…) Services.ServiceConnect.GetCampaignService(…) [Web Service] Campaign.GetInnerClient(…) [Web Service] DAL.GetInnerClient(…)...

Websphere 6 webservice problem

Hi We have just upgraded our webservice onto Websphere 6 from websphere 5. A few clients have come back telling us of issues they are having. Any clients that post SOAP directly to our service are getting issues such as Caused by: org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element request of bean com.service.generic....

PHP SOAP client that understands multi-part messages?

Is there such a beastie? The simple SOAP client that ships with PHP does not understand multi-part messages. Thanks in advance. ...