web-services

SoapUI getting request parameters in mock service script

This is probably a very easy one for all SoapUI regulars. In a SoapUI mock service response script, how do I extract the value inside the request I'm replying to? Let's say the incoming request has <ns1:foo> <ns3:data> <ns3:CustomerNumber>1234</ns3:CustomerNumber> </ns3:data> </ns1:foo> How do I get the "1234" into a Groovy...

NuSOAP: how to change content-type of request?

When consuming a .NET WCF webservice I get the following response (error): Unsupported HTTP response status 415 Cannot process the message because the content type 'text/xml; charset=UTF-8' was not the expected type 'application/soap+xml; charset=utf-8'. How do I change the content type? I can't find it in the NuSOAP forums/doc...

trouble with frontpage server extensions when publishing a web service

I'm creating a web service for my app to talk to. When I go to publish it (locally), VS tells me that the server doesn't appear to have frontpage server extensions installed. It was correct. Specifically the message says: "The Web server does not appear to have FrontPage Server Extensions installed. If FrontPage Server Extensions are in...

Sending raw xml to a web service

I'm trying to invoke a web service which I do not control. The web service expects XML for which I have the xsd. I want to send the raw xml to the web service, i.e. preventing the proxy from XML-encoding whatever I send. How can I do this? ...

ASP.NET WebService Override SOAP Response

How do you override the SOAP response object from an ASP.NET Web Service before the service finishes sending it? ...

WSE service update; "wse" suffix issue

I have an application that references a web service using WSE 3.0 (VS2k5 and .Net 2.0). The application, which is a third-party app, contains a reference to the proxy object "ThisServiceWse", when I update the web service reference the proxy object name is changed to "ThisService", without the "Wse" suffix. This implies that the projec...

ASP.NET Membership - Is authenticated user lost when you call a WebService in the same WebApp

I am using the ASP.NET Login Control for authentication. I have some users and they are able to login successfully. When authenticated I redirect to a page helloworld.aspx. In the Page_Load method I first make a call to Membership.GetUser(). This returns the authenticated user properly. I then make a call to a simple WCF web service...

C# .NET Web Services - Passing custom objects to a web service

I have a need to pass a custom object to a remote web service. I have read that it may be necessary to implement ISerializable, but I've done that and I'm encountering difficulties. What is the proper way in C# to pass a custom object to a web service method? ...

Are required fields forced when updating while consuming CrmService?

MSCRM 4.0 When writing plugins, I have assumed that the required fields will always exist either in the Target image or the PreImage image. But recently when coding an external application that consumes the CrmService, I realised that the service will allow a business entity (or dynamic entity) to be created using the 'Create' method, e...

Testing Webservice

Hi Is there a way to test, from my code on a client machine, whether my WebService is up and running, without having to invoke a WebMethod on the service ? ...

Getting NetworkCredential for current user (C#)

I'm trying to invoke a webservice from a console application, and I need to provide the client with a System.Net.NetworkCredential object. Is it possible to create a NetworkCredential object for the user that started the application without prompting for username/password? ...

what points i should consider to create API for a new website i am building?

What points i should consider while building a website, and planing to support users with API to use? I see that most of famous websites are giving developers an API to deal with, such as facebook, twitter, google, .... There are any general points i should consider while building a new website to be able to support developers with an ...

Sharepoint Lists.asmx: query returns deleted items?

Hello All, While running caml query's against the sharepoint list.asmx service, I have this strange behaviour that the GetListItems method also returns deleted items; found item: test found item: already done found item: recurring found item: recurring event 3-4 found item: Deleted: recurring event 3-4 found item: Deleted: recurring ev...

Calling .NET Web Services Asynchronically from Java

I need to make asynchronous calls to .NET web services from java since synchronous calls are too slow. I know in .NET this is easily done since the stub (proxy) class created by wsdl.exe also generates methods for asynchronous calls(BeginMethod()/EndMethod()). I created the service stub using eclipse Ganymede but no asynchronous method...

namespace differences between web service and application dependency references

I've got 2 applications that both reference a AppTypes.dll assembly. One app is normal winforms app and the other is a web service. I'm passing an object defined in AppTypes to my web service but I get naming conflicts because apparently the web service also defines those types after adding the service to my project. Is there any way th...

Difference between AddRole and AddRoleDef in SharePoint usergroup.asmx?

The SharePoint web service usergroup.asmx has two methods to add role definitions to a site collection: AddRole AddRoleDef Both have the exact same description: "Adds a role definition to the current site collection." Does anybody know if there is a difference between the two? So far, the only difference I see is that AddRoleDef ta...

Connecting to WS-Security protected Web Service with PHP

I am trying to connect to a Web Service which is password protected and the url is https. I can't figure out how to authenticate before the script makes a request. It seems like it makes a request as soon as I define the service. For instance, if I put in: $client = new SoapClient("https://example.com/WSDL/nameofservice", array('...

How can I get WCF to close connections automatically?

When I create a WCF application using the built-in Visual Studio templates and try calling it while in a loop, only 5 requests get through. The service then stops responding. The only way that I can get around this is to close the connections after each call. I know that you are supposed to clean up after yourself, but I also know that...

Does anyone have experience using Teiid? Is it as good as it claims?

Recently I have been reading a bit about Teiid: Teiid is a data virtualization system that allows applications to use data from multiple, heterogenous data stores. Teiid is comprised of tools, components and services for creating and executing bi-directional data services. Through abstraction and federation, data is accessed ...

Why use an x.509 certificate to encrypt xml? Why not just transmit over https?

Don't know much about encryption... Say I'm preparing a SAML request to submit to an identity provider. Why would I need to apply an x.509 certificate to this request? Is transmission over SSL alone not secure enough? ...