web-services

error 401 calling crm4 webservice

I have this code that works in a unit test but doesn't work when executed in the context of a plugin. What the code does is try to create a lead by calling the crm4 webservice. When the plugin executes I get the following exception: "HTTP status 401: Unauthorized" This is the code that initialises an instance of the webservice CrmAuth...

SOAP API C# or Java for pre-made XMLs

Is there any SOAP API that receives pre-made XMLS and wrap them with SOAP envelope (put the XML in the SOAP body/header as needed)? I need the functionality of wrapping up XMLs with SOAP envelope directly without any object model manipulations (like SAAJ do). 10, O'shea ...

How can I use NTLM authentication in a Delphi SOAP Web Service client?

For a Microsoft CRM project, we need NTLM authentication in the Delphi 2009 web service client. It looks like Indy 10 Tiburon already has experimental NTLM support. How can I activate the NTLM authentication for the THTTPRio component and use the logon information (user name, password, domain) of the destination web service server? Ed...

How Can I Make the XmlIgnore Attribute Method-Specific in a WebService (ASP.Net)?

I understand that I can make the property nullable or use a bool called [PropertyName]Specified to determine whether the property is serialized to XML, but I would like the auto-generated examples to hide these elements in one method's definition, and show them in another. This way the user knows whether they'll be there or not. For ex...

Where to go to learn about C# Asp.net with MVC & WebServices

I'm strugling to find any decent resources with regards consuming a webservice in an MVC/C# Asp.net App. Any suggestions? ...

Silverlight app. displays "ConfigFileMissing" message when trying to use a web service.

The silverlight class library throws System.InvalidOperationException exception with "ConfigFileMissing" message when trying to access a very simple SOAP web service. As you can see there's only one line of code that initializes the client. This is the line where exception happens. public void GetDataFromWebService() { ServiceRefer...

How to find the port number of the caller of a web service in ASP.NET?

I have a web service that is running on IIS (6 or 7, doesn't matter) and I would like to know the port that the caller has sent their request/invocation from. So if a client makes a call on my web service, how do I find out from the server side what the port number is they made the call from? Is that something that even gets passed at ...

how to create a singleton asmx service

how can i create an singleton asmx webservice ? (please don't say use WCF and WWF :D ) ...

(ASP.NET) How would you go about creating a real-time counter which tracks database changes?

Here is the issue. On a site I've recently taken over it tracks "miles" you ran in a day. So a user can log into the site, add that they ran 5 miles. This is then added to the database. At the end of the day, around 1am, a service runs which calculates all the miles, all the users ran in the day and outputs a text file to App_Data. ...

Wsdl4j vs. WSDLImporter

Do you know of any comparison made for comparing WSDL4J WSDLReader class against the .NET solution (e.g., WSDLImporter)? ...

How do you document a tree-to-tree transformation in a human-readable format?

I need to document an application that serves as a facade for a set of webservices. The application accepts SOAP requests and transforms these requests into a format understandable by the underlying web service. There are several such services, each with its own interface. Some accept SOAP, some HTTP POST, some... other formats not menti...

Call A Windows Service from a remote computer

I am going to be coding up a windows service to add users to a computer (users with no rights, ie just for authentication). (As a side note, I plan to use this method.) I want to be able to call this windows service from another computer. How is this done? Is this a tall order? Would I be better off just creating a Web Service and h...

Limit access of asmx web service to specific IP addresses

I need to limit access of an .asmx web service to specific IP addresses. I figure I could add a hardcoded check into each method, but that seems like a code maintenance nightmare. Is there a web configuration entry I can make, or a IIS 6 setting I can apply to the .asmx file? ...

Handling Authentication with HttpWebRequest (.NET)

I am accessing a REST webservice from a VB app. I create a HttpWebResponse object and call GetRequestStream on it just fine, but when I call GetResponse I get a 401 exception. Here is my code (modified for posting): Dim webRequest = DirectCast(WebRequest.Create(endpoint), HttpWebRequest) webRequest.Method = "POST" webRequest.ContentLe...

Manually writing WCF POX posts

Let's say I have a WCF contract such as [ServiceContract] public interface IContract { [OperationContract] [WebInvoke(Method="POST", RequestFormat=WebMessageFormat.Xml, BodyStyle=WebMessageBodyStyle.Wrapped)] string ComplexPost(string name, ComplexType data); } And a data contract: [DataContract(Name="ComplexType", Namesp...

Why doesn't Jayrock (.NET JSON-RPC Framework) like my request?

Hi quick question about Jayrock... I have a Jayrock JSON-RPC web service that generally works fine. However, when I try to post to my jqGrid editUrl, Jayrock throws an error. The web service works fine in other situations. Anyone have a clue why Jayrock doesn't like the following request? Perhaps a way to configure Jayrock to accept...

JavaFX applet communicating with server

I want to write some page with JavaFX applet. I want content on the applet to be dependent on user logged in. I know I can call web services from JFX, but then what about login and session? Besides I think there might exist some better solutions for such communication than calling from applet a web service sitting on the machine applet ...

JSON.net returning malformed JSON

Hey, I am using json.net to parse objects and delivering them to a webservice I have made. The objects are LINQ-objects. When I access this webservice with JQuery, it doesn't parse the JSON correctly. There seems to be something wrong with the formatting.. The JSON-string I get is this one: [{"typeid":1, "typename":"binders", "des...

How to deploy a J2EE project that has webservices

I already have an entreprise J2EE application. I want expose some of the existing EJBs as webservices. I wanted to know how to organize the J2EE project I mean where does the websevices sit in the J2EE EAR file hierarchy and how to invoke the deployed Webserices? ...

Storing password in forms authentication cookie - ASP.NET and WCF calls

For my web app security I'm using FormsAuthentication / MembershipProvider with a non persistant cookie. My application interacts with some web services, these also use the Membership providers. User passwords are hashed in the database. The problem is the person logged into application the web service needs to authenticate with the w...