I am trying to connect to our exchange 2007 server. I have placed lots of exception handling to catch any errors and put them in the application log. Firstly, I have a function which ensures that a user can access the exchange service with the provided credentials:
public bool Logon()
{
string pwd = /*Get password*/;
try
...
I'm creating a web service (and test client) that uses mutual authentication. I've used this guide to create a CA and key/trust stores but instead of creating .p12 files for clients, I've used the "SETTING UP YOUR WEB SERVER" section to create a keystore for each client that I need to authenticate.
The server-side code is trivial and sh...
After some digging around with the Wordpress XML-RPC documentation, it seems that there isn't a way to remotely obtain a "post" (such as a news article) through the XML-RPC interface. The documentation only mentions wp.getPage - if I try and pass in a PostID to this method, it returns:
[faultCode] => 404 [faultString] => Sorry, no suc...
Hello all
I have a request to create an auto complete that will search an data table. Is this achieveable quickly and simply or is it a case of writing a reasonable amount of code?
Originally, I have been using a webservice and linq to point at a single column's worth of data (IDDesc) and pull back the list of products:
Product.FinalP...
I'm currently working on a large real-time OLAP application. All data are hold in RAM (a few gigabytes) and the common tasks involve brute scanning over the large quantity of that data (which is fine). The results of processing are exposed via a Web service (singleton/multithreaded) and presented using Silverlight-based client.
The prob...
I am gonna implement web service in Java but before implementation I will decide which framework I should use. Simplicity and running on JBoss 4.2.3 Platform are the requirements.
What is your suggestions?
...
Hi all!
I'm developing a java web service, with client certificate security enabled.
I don't want to add a parameter to each method with a user ID. Since the user is already authenticating through the soap header with his client certificate, is it possible to fetch the user data (common name, email, etc) from his certificate?
Thanks!
...
Hi everyone,
I have the following code which invokes a .net webservice. The code connects to the service fine, but the paramter(deviceid) does not appear to get passed. The method simply returns the passed deviceid which is always null.
This is telling me the deviceid parameter is not being passed. I thought I saw someone recommend a p...
I'm using DataContract/DataMembers to serialise my class to JSON for a webservice, and it all works fine, except for one of my members, which could either be class a, or class b, where class b extends class a.
If I omit the KnownType parameter, then an exception is thrown during serialisation:
Type 'ClassB' with data contract name 'Cla...
Hi,
I'm using C# to invoke some webservices operations. I create the client like so:
EnterpriseSoapPortClient clientEnterprise = new EnterpriseSoapPortClient();
And after this, I invoke the method like this:
clientEnterprise.GetSites()
The error I get is this:
WSDLOperation: Instantiating the dispatch object for method GetSites f...
Hi,
I have got problem with contextInfo
[WebMethod]
[SoapHeader("UserInfo", Direction = SoapHeaderDirection.In)]
public void TestContext()
{
var user = ContextInfo.Current.User.LoginName;
}
UserInfo _userInfo;
[System.Xml.Serialization.SoapElement(IsNullable = true)]
public UserInfo UserInf...
If a web service returns an object graph where some objects appear multiple times, will the data about these objects necessarily be duplicated in the transport format?
Put differently: With Java serialization, each object's state is written only once, and subsequent references to that object are mere pointers within the serialization st...
Hi all,
I'm using Sharepoint's Copy.asmx webservice to upload legacy files and their metadata.
The target is a custom list (with nested folders and custom fields - all as text - ).
The file upload is ok, their metadata is ok, CAML querying is ok,but....
One of my custom attribute is the doc_type. Due to time constraints I set this als...
Hi all,
I'm new to both J2EE and WebLogic. I'd trying to determine the best way to implement a non-distributed cache (one cache per application instance) in a Java Web Services application running on WebLogic 10.3. I need to cache several different POJO's.
There will be multiple WebLogic instances running on each server in a cluster. W...
Hello,
I have a basic asp.net webservice that returns a simple response.
To make it ucore compliant I need to apply an XSLT.
Is there a way to apply an XSLT to my response?
I'm aware the receiver can apply it on their end, but in this scenario I need to apply it on my end.
Thanks!
...
I am creating a new web service for an application and am currently designing the web methods for each service. I have noticed that there is no real different in my case between create and save except that save requires an ID and create does not.
The Java services API has both.
Is it a good practice to nix the create method and overlo...
Hello All,
I am tasked with building a process which will compensate for replication delays on our LDAP system. Currently, there is one write server and 4 read servers. After writing an entry to the write server there can be up to a 4 second delay on the system before the entry is replicated to the read servers. Therefore, if I call ...
I want to add some custom HTTP headers onto a ASP.Net web service to allow cross site access.
the result I need is something like this.
i.e,
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Allow-Headers: X-Request...
Hi all,
I have successfully returned data from a ASP.Net webservice in JSON format (using a service method that required no parameters) but have struggled with making a webservice call that requires a parameter.
Webservice:
<WebMethod()> _
<ScriptMethod(ResponseFormat:=ResponseFormat.Json, UseHttpGet:=True)> _
Public Function TestWebS...
I have a Web Service deployed on JBoss 4.2.3. The Web Service is created using the EJB3 @WebService annotation. One of the method requires an object which has a java.util.Date property
public void createUser(UserDTO dto) throws FancyException{
//-- do some work here
}
class UserDTO {
.....
private Date joined;
//-- app...