Web Services

A Web service is a method of communication between two electronic devices over a network. It is a software function provided at a network address over the Web with the service always on as in the concept of utility computing. A web service has an interface described in Web Services Description Language (WSDL). Other systems interact with the Web service in a manner prescribed by its description using SOAP (Simple Object Access Protocol) messages. There are two major classes of Web services: REST-compliant web services, and Arbitrary web services.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hello, is there a command line tool that tests web services to see if they work?  Thanks!
Automating Your MSP Business
Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.


I am using self written Java programmes at home that consume SOAP web services from my rc plane club. So far everything works good, But sometimes the SOAP web services that I use are not available due to maintnance or problems at the club's server. I want to monitor the availability of the SOAP services and persist the status. When I use the SOAP services the programme shall first check the availability from the monitor and if the status is 'available' perform the desired request or else queue the request until the service becomes available again.

Before I start to re-invent the wheel and write my own monitor I wanted to know if there are already tools that can accomplish this task, which can be easily embedded or used in Java before a request.

Best regards,
This is using Amazon web services. This EC2 instance was created using Elastic beanstalk. Using this Elastic Beanstalk, 1 EC2 and 1 S3, plus some other components are created. This EC2 is also having php and MySQL, so it is a LAMP server. It is used to serve dynamic web applications.

Now, I want to setup cloudfront for SSL cert and faster data delivery. I follow the normal steps > choose web delivery, configure origin, distribution, and cache behaviour. I also made use of the route 53 for the public hostname to be pointed to relevant cloudnet. I waited this cloudfront distribution to be "deployed". However, when I access to the web with https, an error message prompts:

cloudfront attempted to establish a connection with the origin, but either the attempt failed or the origin closed the connection.

What would be standard ways of setting up this cloudfront to work with EC2 (LAMP)?

We have a local oracle database 12c.

Another remote system (mysql/java) needs to post a record of data each time a transaction is executed by a user to our local database.

The way it will work is the remote system will call a web service in local database (https) and submits data using CSV format.

Can CSV format support web services and one to many table relationships?

My thinking is that it is fixed-size format and difficult to parse of you have one customre order with multiple line items or none.

Most of the web service I developed were using XML format before.
I have an XML file that when passed through SOAP UI returns a proper response as XML file. I need to create an application to pass the XML and recuperate the response. I tried searching but many say REST web service where they using only post/get.

Please send me some sample code and/or tutorials.
We are using Navision Web Services to publish the data so the third party application can consume, for our web services we need to pass username and password, I have done this several times using .NET but one of our client they are using Action Script and they are new to the web service.

Can anybody please help me with sample code for passing credentials, it is WSDL service.
Trying to consume webservice using wcf client, getting following error

The content type multipart/related; boundary=MIMEBoundaryurn_uuid_B50EC784A204DC07C91495512014914; type="text/xml"; start="<0.urn:uuid:B50EC784A204DC07C91495512014915@apache.org>"; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the  . The first 1024 bytes of the response were ...

Fiddler is showing the complete response but wcf is not able to deserialize the complete response. Response contains Japanese characters.
websites provide android app fetching from rest api.
websites provide  rest api using c# with just one controller in project and sql server 2016 sending/receiving data for one table.
So these are not compact,efficient for complete project with multiple tables.
I am very curious to have modular code for all these concepts.
Example for WinRM  API using SOAP
Hi I am really stick here - I want to to change my service request - can someone please help me out: Thank you!

I am using nuSOAP with Code igniter


<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:OmniBeeEndPoint">
      <urn:GetRoomTypes soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <Token xsi:type="xsd:string">?</Token>
         <HotelCredentials xsi:type="urn:NestedParam">
            <!--You may enter the following 3 items in any order-->

<?xml version="1.0" encoding="utf-8"?>


<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" …
Database Backup and Recovery Best Practices
 Database Backup and Recovery Best Practices

Join Percona’s, Architect, Manjot Singh as he presents Database Backup and Recovery Best Practices (with a Focus on MySQL) on Thursday, July 27, 2017 at 11:00 am PDT / 2:00 pm EDT (UTC-7). In the case of a failure, do you know how long it will take to restore your database?

I have developed Webmethod in C#. Here server send the Json Array in POST Request in the Below format.
[{ "name" : "AAAA", "address" : "Chennai"},{"name": "BBBB", "address":"Trichy"}]

Open in new window

How to read this Json and Serialize this Json?

When I Change the Request to below type my code is working Properly.
"JsonData":{[{ "name" : "AAAA", "address" : "Chennai"},{"name": "BBBB", "address":"Trichy"}]}

Open in new window

I'm trying to create a document set in a document library SharePoint online.
I have a special document set for this : Events
I need to create this event in à webservice Azure, and i try with this code :

    ClientContext clientContext = GetonlineContext();    
                Web spWeb = clientContext.Web;  
                var formLib = spWeb.Lists.GetByTitle("Event");  
                ContentTypeCollection listContentTypes = formLib.ContentTypes;  
                ContentTypeId dsCtId = new ContentTypeId();  
                clientContext.Load(listContentTypes, types => types.Include(type => type.Id, type => type.Name, type => type.Parent));  
                var result = clientContext.LoadQuery(listContentTypes.Where(c => c.Name == "Events"));  
                ContentType docsetCT = result.First();  
                ContentTypeId ctid = docsetCT.Id;  
                DocumentSet.Create(clientContext, formLib.RootFolder, value.name, ctid);  


    private class Configuration  
                public static string ServiceSiteUrl = "https://****.sharepoint.com";  
                public static string ServiceUserName = "*****";  
                public static string ServicePassword = "******";  
            static ClientContext GetonlineContext()  
                var securePassword = …

what is the difference between remote vs local ejb. When to use which one and advantages, disadvantages, practical uses of each.

I am trying below example and author choose remote here which is not clear
As given below i created java project to access above ejb as jar

i included above ejb jar in build path i still get compilation error while recognizing Addition class and AdditionRemote interface as attached.

please advise on how to fix i9tremoteplease advise
Dear sirs,
I am completing a web service whose role is to share data between a desktop application and a web one.
I can upload data (List<?>) using a HTTP POST request, download data using a HTTP GET request.
With a web service, once data is uploaded I can use the same routine to do further processing.
I had an intention to switch to FTP since the data to upload can be large, and send a HTTP POST request to trigger the processing of the data uploaded via FTP.

My concern is this one: if I stick to HTTP, what is the maximum size allowed in a HTTP request.

We are reviewing options for deploying Cross Forest, Users and Computers Certificate Auto-Enrollment.  
Which method is preferred over the other?  What are the Pro / Cons between the two options.  We are leaning towards the Web Services method as it appears to be the modern architecture for future proofing our design.
I need to create a web service in vs 2015. This web service will connect to active directory and get all different kinds of information.
I need to call the same web service from asp.net application, asp.net mvc and classic asp applications. What kind of service is preferred WCF or Ajax enabled WCF? Which is more clean and more secure??  This service is going to host in cloud environment.

Which wcf service is more commonly used in this kind of situation?

Where to begin.  I am not experienced with XML and SOAP so I may be using the wrong terminology.

I am writing an XML oriented Web Service consumer program (VB) using Visual Studio.  I used a text file WSDL, that I was given, to add a suitable web reference which includes one Method and about 10 classes which provide access to Request and Response XML elements.  The request and response both have "control" and "data" areas.

I was told that the web service requires credentials.  I was told that these credentials are to be placed in the Header of the SOAP envelope.  It appears that Microsoft, when creating the web reference, created a "client" oriented class which seems to be providing access to client credentials found in Microsoft's ServiceModel.Description class.

Anyway, when I try to run a simple test, I keep receiving an "OSB-386200 General Web Service Security error" when executing the Process method supplied to me by the web reference.  In WireShark, I see a "Client Hello" and a "Server Hello"...so basic communication is there.

1. Is the ServiceModel's ClientCredentials.Username (username and password) the right place to put the user and password?  Does this put the user / password values into the SOAP's header area?  
2. Is there a way to view the SOAP envelope message that is being sent to the web service from Visual Studio?  This would be very helpful to see if the credentials are being sent with the request data.  I am fairly comfortible with WireShark if…
Here is my code :

import java.io.StringReader;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
import org.springframework.ws.client.WebServiceIOException;
import org.springframework.ws.client.core.WebServiceTemplate;
import org.springframework.ws.soap.client.SoapFaultClientException;
import org.springframework.ws.soap.client.core.SoapActionCallback;

public class SpringWSClientSample {

      private static final String MESSAGE = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope\" xmlns:web=\"http://www.webserviceX.NET\">"
                  + "<soapenv:Header>"
                  + "</soapenv:Header>"
                  + "<soapenv:Body>"
                  + "<web:ChangeMetricWeightUnit>"
                  + "<web:MetricWeightValue>40000</web:MetricWeightValue>"
                  + "<web:fromMetricWeightUnit>milligram</web:fromMetricWeightUnit>"
                  + "<web:toMetricWeightUnit>gram</web:toMetricWeightUnit>"
                  + "</web:ChangeMetricWeightUnit>"
                  + "</soapenv:Body>"
                  + "</soapenv:Envelope>";

      private final WebServiceTemplate webServiceTemplate = new WebServiceTemplate();

      public static void main(String[] args) throws Exception {

            SpringWSClientSample client = new SpringWSClientSample();

      public void simpleSendAndReceive() {
            try {
                  StreamSource source = new StreamSource(new StringReader(
                  StreamResult result = new StreamResult(System.out);
I do not really know anything about REST web services but have some experience with SOAP web services.  A while back a developed a dynamic SOAP Connector that worked by exposing all the APIs in a SOAP web service along with the parameters for each.  This was very useful but I wanted to know if the same thing was possible for REST?  Again, I really don't know anything about REST web services and whether or not it would be possible to build something that would expose all the REST API's and Parameters.    A user of this application would then specify the API and fill in the parameters.  Can someone help me understand the difference between REST and SOAP and whether something like this would even be possible?
Secure Your WordPress Site: 5 Essential Approaches
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

How to call WSDL from Stored Procedure in a SQL Server.
My server crashed and we had to start over.  We recovered the data and now have to add back our main website.

The first thing was to add web services back for an android app.  And were successfully added.  I see the application pool for it.
But I do not see a site for it.  It is running fine.

But then I add our main website and I place it under the default website in IIS (left side pane).
When I add the website (which runs .aspx pages), the site works fine and the .aspx pages work fine, however it interferes with the web services for android app causing those web services no longer to function.

I am looking for a list of possibilities and things to check so that both can run in harmony.
When I run gSOAP client it gives me error :

"Validation constraint violation: tag name or namespace mismatch in element 'com.at.ecbs.CI19.GetOrderDetailsOutput'" Detail: [no detail]

But below is RECV.log :

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
   <ns1:getOrderDetailsResponse xmlns:ns1="com.at.ecbs.CI19.CustomerInformation">
      <supplText>Order details extract successful</supplText>

Client code option set :

 SOAP_CMAC::com_x002ebt_x002eecbs_x002eCI19_x002eCustomerInformationSoapBindingProxy …
Hi Experts,


when i hit the service with username like raom service working fine.

when i try username like ---> rao.m
it is throwing 406 error

how do i get the . symbol along with uri
i have tried to encode url with %2E  but it is not working

Hi Experts,

I am facing cross origin issue when calling rest services.
This site makes use of a SHA-1 Certificate; it's recommended you use certificates with signature algorithms that use hash functions stronger than SHA-1.[Learn More] /

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://lab.Test.com:7443/UtilAction/activitycode/AFC-APPROVE?_=1473946914616. (Reason: CORS header 'Access-Control-Allow-Origin' missing).

How to resolve this issue?
I am using angularjs,java,restwebsevices,tomcat server.

how rest  web service request know HTTP or HTTPS request

Web Services

A Web service is a method of communication between two electronic devices over a network. It is a software function provided at a network address over the Web with the service always on as in the concept of utility computing. A web service has an interface described in Web Services Description Language (WSDL). Other systems interact with the Web service in a manner prescribed by its description using SOAP (Simple Object Access Protocol) messages. There are two major classes of Web services: REST-compliant web services, and Arbitrary web services.