web-services

How to modify a WCF message header's MustUnderstand using ClientInspector

I am calling a non-WCF service from a WCF client. The WCF client includes the "MustUnderstand" header attribute set to "1". Here's a typical SOAP request: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt; <s:Header> <o:Secu...

Programmatically verifying a Web Reference matches an end point in .NET 3.5

I'm in the unfortunate situation where I need to consume web services that do not have a contract defined, as per normal SOA practices. This means that I need to guard against changes in the web services that break my web references. In the past, breaking changes in new web services versions such as the alteration of enumeration values h...

C#.NET Webservices using HTTPGET Returns System.IndexOutOfRangeException

I've setup this example web service to investigate the source of my error: namespace userControlPanel.webservice { /// <summary> /// Summary description for WebService1 /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.Compone...

How to set a contact's job title in Dynamics Nav 2009 using webservices

There are two webservices, which I've tried to use page 5050 Contact Card page 5055 Name Details First service handles contacts and it's possible to set contact's name. However, in RTC there is a assist button in the Name field, so it's possible to fill in additional fields for name, such as Salutation Code Job Title Initials Firs...

NullReferenceException while calling WebMethod

I have the following problem; My console app is running on the server and all I want to do is control it over ASP.NET Web Service. I added new ASP.NET Web Service project to my Solution where my main console app and added reference to it. The problem is every time WebMethod calls function from console app, i get the nullreferenceexcep...

How to set a value to a javax.xml.ws.Holder ?

Hello, we are currently having problems with a JAX-WS implementation, particulary in getting a value returned by the service, which in our case is always null, although we give it a value. Some code before more explanations of our problem : Here is the signature of our operation : @WebMethod(action = "urn:genererEdition") public void ...

Symfony error handling for both website and REST API of website

I have a symfony project. There is a website and a rest API that projects all the actions that can be done on the website. I would like to manage the data handling (get, update, delete) for both website and API on the same code. I realized that I need to put all the code in the MODEL so that it will be accessible via the API module an...

How to prevent illegal characters to appear in my XML when retrieving it from SQL Server

Sometimes the string values of Properties in my Classes become odd. They contain illegal characters and are displayed like this (with boxes): 123[]45[]6789 I'm assuming those are illegal/unrecognized characters. I serialize all my objects to XML and then upload them via Web Service. When I retrieve them again, some characters are re...

Java ME consuming .NET Web Service the safe way

Hi Gurus I'm developing an application for Blackberry that consumes .NET Web Services that are hosted on our public web server. We are using JSON as our data interchange format. So far we have been testing the application and everything is working fine but there is one big thing to solve: the .NET web services are public. If you go to...

How do I pass null to a nullable parameter of a ASP.NET web service method via javascript

Given the following ASP.NET code: [System.Web.Script.Services.ScriptService] public class Quotes : System.Web.Services.WebService { [WebMethod] public void Calculate(int param1, int? param2) { etc.. How can I pass a null value to param2? If I don't pass the parameter at all, or I pass undefined, my error handler fires wi...

ServiceMix 4.2: Dynamically create BCs, add them, let them message over SM?

I would like to use ServiceMix for the following scenario: I'll deploy a WebService on it, where other WebServices can register and ask which other Webservices have registered When a WebService (I know the interfaces) registers, I want to activate / dynamically deploy a suitable BC (I built beforehand) to let it communicate with other ...

Calling a webservice twice from a mobile application .NET causing problems

I have a mobile application calling a webservice. When I run the application once it works normally, but if i call it again without restarting the application, the webservice is not even triggered. Do you have an idea of what the problem might be? ...

C# Web Reference Call Timeout

I am making a call to an external service using a web reference. The IP's are dynamic so I call them one by one, and everything works fine. Periodically some of the IP's won't be available and I am getting a timeout which I am handling. The issue is the length of time it takes to timeout is around 30 seconds for each call. I tried ch...

Spring-WS user interceptors to modify request and response?

Is it possible to use Interceptors to modify a request/response payload? The NETCONF over SSH protocol (http://tools.ietf.org/html/rfc4742) requires the XML payload to terminate with a special string : "]]>]]>". This needs to be stripped from a response before passed to JAXB unmarshaller, as well as inserted to the XML payload on a requ...

How do I connect my Silverlight app to a WCF Service?

I've been looking for this answer, and all I found was this link, but when I attempted to follow the tutorial I failed hard. What I need is to connect my Silverlight application to a database, just to show informations from a specific table. As I don't want to use the same ORM for my page and my silverlight app, I created a new WCF webse...

Create SOAP Request from JWSDL

Hey there, I have been working with JWSDL to allow me to programatically work with WSDL files. I now want to create SOAP requests that can be sent to the server. How do I generate these requests from the JWSDL classes? any ideas? thanks! ...

ASP.Net WebForms running mulitple queries at the same time

This is for an enterprise web application. We are building a front page/dashboard that queries our database for live statistics. The page has 3 update panels, each update panel has a user control that pulls data for it's box. Lets call the user controls UC_NotStarted, UC_Active and UC_Finished. We have built the queries that return the...

WCF Multiple Endpoints Under IIS7

I have a simple WCF service that we are developing... We are hosting in IIS7 on WinServer2k8 (though i cant get it to work in IIS7 on Win7 either) I want multiple endpoints for the same service contract but have the endpoints behave differently. For example I want one endpoint to return data as XML and another to return data in SOAP mes...

Windows Service: Where to write log messages (EventLog, File or DB Table) / Access from Web

We have a windows service (in .NET) that will write a fair amount of messages to a log. This log is of interest not only to server administrators but also to normal clients who use a web page to access the system. Or to us trying to remote debug the system! We are considering using the normal windows server event log, or writing to a ...

Java and Python App/Service Communication with Web Interface

Hi All, Currently I have a Java (and a half ported python version) app that runs in the background that has a queue of jobs (currently read out of a mysql database) which handles thread sleep/waking to share resources based on the job priority and running time. There is a front end php script that posts jobs to the database which are po...