AngularJS as SOAP client - web-services

Is there a way to use angularJS as SOAP client or develop ng SOAP client service?

Sure. All what you need this is implement SOAP call on JavaScript. For example Simplest SOAP example using Javascript

In addition to that SO article from the main answer, you can probably use the $http service instead of using the XmlHttpRequest web API. The reason I would use $http instead is that it gives you promises and easier HTTP method handling out of the box.
Otherwise, this custom Angular $soap service posted on this SO, might give you what you want, which is also on Github.

Related

How to find if a webpage uses REST or SOAP web services?

Is there a way to find out if a webpage uses REST or SOAP web services in it's back-end? If there is a way then what is it?
Thank you
You can check the network requests using a browsers developer tools.
Checking the headers for text/xmland a SOAP envelope might indicate SOAP
If its using REST you can check to see the header method is using GET, PUT, POST, DELETE with application/json which might indicate REST
SEE:
How can I debug a HTTP POST in Chrome?
And an in depth explanation of what I mean by "might be":
Representational state transfer (REST) and Simple Object Access Protocol (SOAP)

how to return RESTFUL response from a JAX-WS WebService

I have a JAX-WS WebService running and I want to add a RESTFUL method in it to return HTTP response, without writing a new service.
Is there any way to do it?
Thanks a lot
JAX-WS is an API for SOAP Webservices, with are based on XML transmission of information, not some data over http - the REST way.
What is your services stack? Metro, axis2?
If you use CXF it provides you the possibility to serve both kinds.
Also you may join the two technologies in the same application.

PHP library similar to REST-driver in Java

I found this little library to be perfect solution for my problem. It allows you to stub REST service responses easily.
Now i need to replicate the same set of test cases in PHP version of our library. Do you know any similar library/framework in PHP?
You could use Guzzle. Guzzle is a PHP HTTP client & framework for building RESTful web service clients. The thing is that you can create Response objects. In this library, you have a Response class. You could just create the Guzzle Response that you want (choosing the desired status code, content, etc), and mock your HTTP Client so it returns the Response object that you just created.
If you read the documentation, it seems that there is a plugin to mock responses, although I've never used it.

Consume Java CXF WS exposed over SOAP from ServiceStack client

Context:
I'd like to use ServiceStack to build a SOAP client in order to consume an existing Java CXF WebService, exposed over SOAP with defined WSDL (I have no control over the WS itself). I may need to add a couple of extra headers the SOAP envelope for authorization purposes.
Question:
Would all of the above be possible, and if so, what are the gotchas? If there are any specific examples, links would be welcome.
Actually the other way round of having other clients consuming ServiceStack web services would make more sense.
Using ServiceStack to consume other clients is not an ideal strategy. ServiceStack server and client supports a coarse-grained, DTO-first approach, it wouldn't handle variations in this theme that other frameworks spit out.

Consuming SOAP web services without the add reference approach

I am looking to make a service agent in C# from scratch. If the contracts/XSD are shareable via WSDL or dll. How do I go about writing a light weight service agent that can be configured to make calls to the SOAP webservice. When you do an add reference I feel too much code is generated behind my back.
You can post data to a webservice using the following url structure:
http://mydomain.com/mywebservicedirectory/mywebservice.asmx/mywebservicemethod
Simply use an HTTP POST to pass data(typically xml/json) to the service and process the response.
I use a bassic soap template and XSLT to render it out for what I want. It isn't that fun if you need to call multiple methods. I'm simply calling the same method over and over so it's no big deal. Simple HTTP POST will do it, that's all WCF/ASMX does.
You can get the WSDL and use XSD.exe to generate the object classes for you.