Consume webservice Workflow Foundation 4.5 - web-services

My solution has 2 projects. One is a workflow service and the other is a webservice. I want to know if I can make the workflow consume the webservice without having to create a custom code activity...
Basically the webservice is a call-and-forget kind of thing... I tried the "send" activity but i couldnt manage to get it working...
i also downloaded the code samples from MSDN but couldnt find a match for my case...

As long as your webservice is a WCF compatible service you can do an add service reference and the required custom activities will be generated. And if that works you can also configure a standard Send and ReceiveReply to do the same thing. If you are using an ASMX/WSE style web service this usually works but takes a bit more doing to get the message contract right.

Related

SOAP request in .net core 2 for a web service

I'm writing a project in .Net Core 2.2. As a part of it, for the payment service I have to use this web service: The Payment Web Service
My problem is that I want to make a SOAP request, and I don't exactly know how and there are no available documentation about it!
I want to use the SalePaymentRequest method. The sample code from the bank has the following code which uses in web reference: System.Web.Services.Protocols.SoapHttpClientProtocol. Apparently, it is not available in .net core.
In the Following Question there are elements like BasicHttpBinding which I really do not understand how to use! (My Bad!)
I just want to make a sale request and verify it afterwards.

Webservice for Client testing

some time ago I've read of a Webservice, that simulates a large number of clients to your Website / Webapp, which click randomly everywhere and log every error or timeout they produce with that behaviour. As far as I remember it was based on javascript.
It's like Zombie.js / Phantom.js, but only as a Service without having to do the setup self.
Does anybody know this service?
(Things I've already excluded: WebServiceStudio, Storm, SoapUi
I guess you want to test how well your webservice works. I have used JMeter which is very good.
http://jmeter.apache.org/

calling web services from UNIX

I have a requirement to kickoff a workflow which is in salesforce.com thorugh web service from UNIX box. Can any one suggest me options or guide lines to achive this scenario?
I don't think you can just "kick off workflows". You'll have to perform an insert or update of records in Salesforce that will satisfy the workflow's entry criteria.
There's a Java tool called Data Loader for your basic data manipulation activities (you can download it from your own production org)
and it can be scripted for scheduled runs, has config file where you can store user's password in secure way etc. Check out the pdf guide for more ("Command Line Quick Start" chapter)
So I don't think you really need a webservice call...
Unless I misunderstood and you're talking about calling an Apex class' method that has "webservice" keyword and it will somehow perform the updates?
In that case you'll need to download the WSDL file generated for this class (Setup->Develop->Classes) and well, consume it in language of your choice (Java, PHP, Python... this link will help, steps aren't too different), then do your command line magic?
http://wiki.developerforce.com/page/Integration has tons of resources for you :)
Salesforce uses SOAP for their web service. They don't have restful web services now. Just request them to give the wsdl file.
Use this wsdl file to generate the java code. After that get their webService url so that you can proceed with your data pulling
This link may help you..
http://salesforce-walker.blogspot.in/2011/12/to-access-salesforce-data-from-java-we.html
Hope this helps

How to create a webservice which listens to tfs 2010 event alerts?

i need a webservice which listens to tfs (2010). The tfs will trigger an alert when build quality is changed. i want to process that SOAP message using a webservice. how do i create that? is there any template? i am a rookie in c# &.net...it would be much helpful if someone gives me a template...thx a lot
Instead of using this method for using WCF event handlers, I would actually use the new ISubscriber method. We additionally discuss how it works in Chapter 25 of our book, Professional Team Foundation Server 2010 by Wrox.
The open source project TFS Global Alerts implements just that. You can browse the code and use it as a template.
Web services generally make a request, get a response, and leave. They don't hang around listening.
TFS is capable of sending notifications. It's a fairly simple process. For starters, here is a how-to article that says:
TFS notifications are useful in sending alerts when a work item is changed, the build is completed, build property changed etc.
Edit: TFS offers several types of alerts, including email and SOAP, as explained in this posting on How To Subscribe to TFS Alerts which states:
Microsoft Team Foundation Server (TFS) contains a collection of services including version control, work item tracking, and the EventService service. EventService exposes a set of events that performs actions such as sending e-mail or a SOAP-based Web service call.
and a bit more
If you want to get notified for all new workitems, regardless of who
they get assigned to, you will want a custom subscription...First option is to create alert with the BisSubscribe tool ... the preferred message delivery type: EmailHtml, EmailPlaintext, or SOAP. Default is SOAP.
You can create a WCF service to receive these alerts. Please see "How to use WCF to subscribe to the TFS 2010 Event Service [rolling up hours]".

How to create a web service load test using Visual Studio 2010?

Is there a way to test a Web Service using VS2010 like it's used to test a web site?
For a web site I can create a set of WebTestRequest objects that emulate the loading and the parsing of a web page from the test and then, implementing the GetRequestEnumerator I can yield results to the load test so that the execution time and payload of any single page could be evaluated by the test runner and published in my test run reports.
I would like to do the same for a test using web service call so that each time I call the web service (there is some logic in calling it, like logging in, getting a security token and pass a proper formatted XML document to the web service method) I can yield the result to my test runner and evaluate it.
Is there a way to do it or do I need to implement a specific class inheriting from the WebTestItem abstract class?
Regards
Massimo
Yes, it is possible to test Web Services using Web Performance Tests in Visual Studio 2010 Ultimate.
Here's a couple of useful links:
How to: Create a Web Service test (MSDN)
How to: Web Service Load Testing Using VSTS 2010 (Blog)
As a starting point, you can use a web proxy tool like Fiddler to intercept the HTTP requests made to the Web Services, copy the contents of the SOAP envelopes in the Web Performance Tests and then tweak them accordingly based on the test scenario you want to simulate.
This doesn't quite answer your question as it's a 3rd party tool, but SOAP UI is a great piece of (free) software for load testing web services, whether your own or someone else's. You can run individual requests, or do a bunch of different load tests.
We've used it for one service that uses credentials, so I'm sure it will work fine for your scenario.