Web Services

3K

Solutions

10

Articles & Videos

5K

Contributors

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

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)?

Thanks,
0
Why Off-Site Backups Are The Only Way To Go
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

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.
0
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.
0
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.
0
I have a SOAP web service on another server and it returns XML as response when called from SOAP UI software.
I need to develop a web console application.
How can I input the XML directly into codes ?  

Please send me a sample code or tutorial.
0
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.
0
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.
0
Example for WinRM  API using SOAP
0
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

================================================
CURRENT REQUEST:

<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">
   <soapenv:Header/>
   <soapenv:Body>
      <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-->
             <Code>21</Code>
                 <UserName>TestUser</UserName>
             <Password>Password123</Password>
         </HotelCredentials>
      </urn:GetRoomTypes>
   </soapenv:Body>
</soapenv:Envelope>
====================================
THE WAY I NEED IT:

<?xml version="1.0" encoding="utf-8"?>
<GetRoomTypesRQ>
       <Token>1c056556-510b-4bda-8103-b595928b990a</Token>
       <HotelCredentials>
              <Code>21</Code>
              <UserName>TestUser</UserName>
              <Password>Password123</Password>
        </HotelCredentials>
</GetRoomTypesRQ>

============
============
CURRENT RESPONSE

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" …
0
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

0
Don't Cry: How Liquid Web is Ensuring Security
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Hello,
 
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"));  
                clientContext.ExecuteQuery();  
                ContentType docsetCT = result.First();  
                ContentTypeId ctid = docsetCT.Id;  
                DocumentSet.Create(clientContext, formLib.RootFolder, value.name, ctid);  
                clientContext.ExecuteQuery();

 

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

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
http://www.ejbtutorial.com/j2ee/hello-word-tutorial-for-writing-stateless-session-enterprise-java-bean-ejb
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
build.png
0
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.

Regards
0
Hi,

I am going through below link
https://www.ibm.com/developerworks/library/ws-whichwsdl.
which wsdl binding style to use which time. i wonder which wsdl element wraps all operations?
 Please advise
0
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.
0
Hi,
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?

thanks
0
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…
0
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();
            client.simpleSendAndReceive();
      }

      public void simpleSendAndReceive() {
            try {
                  StreamSource source = new StreamSource(new StringReader(
                              MESSAGE.toString()));
                  StreamResult result = new StreamResult(System.out);
                  
0
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?
0
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.
0
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.
0
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/"
                   SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xmlns:typens="http://si.nat.at.com/WSAI/STAA/type/"
                   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP-ENV:Body>
   <ns1:getOrderDetailsResponse xmlns:ns1="com.at.ecbs.CI19.CustomerInformation">
    <com.at.ecbs.CI19.GetOrderDetailsOutput>
      <supplCode>I25101</supplCode>
      <supplText>Order details extract successful</supplText>
      <pck>PCK&lt;01069FSGetOrderDetls3OSD1234567892017777777102126820072FlowStream123456</pck>
    </com.at.ecbs.CI19.GetOrderDetailsOutput>
   </ns1:getOrderDetailsResponse>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Client code option set :

soap_mode iomode(SOAP_IO_KEEPALIVE| SOAP_XML_STRICT | SOAP_XML_TREE | SOAP_XML_IGNORENS);
 soap_mode omode(SOAP_IO_KEEPALIVE | SOAP_XML_TREE | SOAP_XML_DEFAULTNS );
 SOAP_CMAC::com_x002ebt_x002eecbs_x002eCI19_x002eCustomerInformationSoapBindingProxy …
0
Hi Experts,

uri:
http://localhost:8080/SpringRestExample//rest/emp/901/rao.m

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

Thanks,
0
Hi Experts,

I am facing cross origin issue when calling rest services.
Error:
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.

Thanks,
1
how rest  web service request know HTTP or HTTPS request
0

Web Services

3K

Solutions

10

Articles & Videos

5K

Contributors

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.