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

The code below is executed when a user clicks a button.
It asks the user for a username/password and tries to upload a file to a webservice.
When the username/password combination is correct, everything works fine. But when the user types an incorrect username/password combination, this functions crashes. ( which is normal, because authentication failed...) .
After such a crash, the code no longer works, even after rerunning the same procedure this time with the correct username/password combination.

The only solution I found is to restart the whole application... There has to be a better way?
Does the HTTPRIO object cache my incorrect username/password? Or .... ?



RIO := THTTPRIO.Create(nil);
RIO.HTTPWebNode.UserName :=Username;
RIO.HTTPWebNode.Password :=PassWord;
webserver := GetCRS( True, '' , RIO );

 // get file to upload and encode it in base64
 myFileToUpload := TByteDynArray( TEncoding.UTF8.GetBytes( xml.XML.Text ) );

// create upload file request object
myUploadFileRequest := UploadFileRequest.Create;
myUploadFileRequest.UploadFile := PayLoadType( myFileToUpload );

// upload file to server
 myUploadFileResponse := webserver.uploadFile_A2A( myUploadFileRequest ); --> Crash

Open in new window

0
Put Machine Learning to Work--Protect Your Clients
Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as the high-speed power of the cloud.

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
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
Hi all,

We use our internal CA using a SHA1 to create certificates for internal web services. We are now tasked with upgrading this to SHA2. My colleague has suggested we renew all SHA1 certificates so that nothing is set to expire within the next 12 months. We will then look to upgrade the rootCA but im concerned that once we do that all the web certificates will need to be upgraded?

Can someone clarify what happens when the ROOTCA is upgraded to SHA2?

It will be difficult to know whether all web services are SHA2 compatible, is there a way to create a separate SHA2 ROOT CA?
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
I have a WP site and am considering hosting a video there. What is required for this to happen? If I use Amazon Web Services to host my site, might many views of the video cost me a fortune?
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
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.

what is exchange web services integration in exchange 2013, how it works does it a have to do anything with autodiscover?
0
Hi all,

I'm look for the best  image resizing web service that can handle  the most various image type (Jpeg,bmp ..) and image header.
What is the most effective technology/plateforom  (JAVA,C#,PHP,Python,Ruby etc ...) to use to do this ?
Any  feedback  are welcomed

Thanks for your return
0
Guys:

This is the direction we are heading; good ole' AWS. Thinking ahead; (kind of hard to ask with providing you more) do you guys who have done this have a road map or sample config that would show how to setup a Site to Site VPN to Amazon Web Services?

Thanks ahead of time Experts!!!
0
Hi Experts,

We are setting up a new automatic deployment environment.
After the process runs and everything gets deployed, we need to check
the health status of a list of windows and web services whose names we will have in some table or XML file.
For ex. there are 50 windows services say service1 to service50 in the xml for windows services.
We need to find the status of all those...and also names of those which are there in xml but did not get installed or deployed by automation process.(delta of services present in xml and not under services.msc).
Similary we need to test all web services listed in xml.
Please help with suggestions and sample code or articles.

Thanks,
0
I am a C# MVC .NET developer but have not yet heard much about what MicroSevices are.

Please enlighten me.

Thanks.
0
I verified the hosted version of the RestClient is running from the browser...

But I get the error:

The remote server returned an error: (400) Bad Request.

An exception of type 'System.Net.WebException' occurred in System.dll but was not handled in user code.

Suggestions?

Thanks.
0
Hi EE,

I have designed simple web application which use the concept of cascading combobox.

First of all I created web service .asmx file and included in my project (Visual Studio 2015 - VB.NET/MYSQL).

Sample program attached with this...

I have also added web reference to my project and configured web.config file.

At the time of running the application, while I click on the dropdown it displays [Method Error 500] instead of data.
Please help...
Capture.JPG
Your help will greatly appreciated.
Regards,
D Patel
0
Example for WinRM  API using SOAP
0
For the past few months I've been a Beta tester for a new service called DNS Spy.  It's a service that Monitors, validates and verifies your DNS configurations.  

It might be worth a look if you are looking for something that monitors your External DNS.  Link below:
https://dnsspy.io/
1
Threat Trends for MSPs to Watch
Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

I've been asked to push some data to an external web service using Access 2010. After researching this all day, it looks like many suggestions point to using Visual Studio to create a dll that utilizes VS's ability to auto generate the web services protocol code, reference then dll in Access and then call it from my Access 2010 VBA code. The web service code works great when bundled as a standalone exe. However, when I compile it into a dll, reference it within Access and then call it from by Access VBA code, I get the following error:

"Could not find the default endpoint element that references contract 'ServiceReference1.NameOfMyDllClass' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element."

After a little more digging, it appears that creating a dll does not include the app.config file that contains this configuration information so I'm guessing my DLL can't find the configuration information it needs to initiate the web service transfer. Most recommendations seem to suggest adding the info in the app.config file to the host's app.config but off course Access does not have anything like that.

With so many recommendations to use dlls that wrap the web services when using Access, it sounds like a great way to go but I must be doing something wrong. Any help to get me pointed in …
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
I need help in setting up a proper multipart/related HTTP request in VBA. If you can PLEASE show me samples in VBA of one.  A picture (Or Code) is worth a thousand words.

Here is my code for sending XML over HTTP currently:

Option Compare Database
Option Explicit

Public Function EbaySenderXmlAddFixedPriceItems()
Dim reader As New MSXML2.XMLHTTP40
    Dim doc As New MSXML2.DOMDocument 'If you want to load the XML Document instead of creating it.
    Dim TokenValue As String
    Dim APICALL As String
    
    '*************************************************************************************************************
    'API Call Name!
    '*************************************************************************************************************
      APICALL = "uploadFile" 'Place the API Call Name here within the parenthesis.
    '*************************************************************************************************************
    'Place Token Value Here Below!
    TokenValue = "TOKEN GOES HERE Like ujhuhuaeuyaeyayuo8i"
    '*************************************************************************************************************
    doc.Load "C:\Users\Station\Documents\Access XML Save Files\uploadFile.xml" 'Document Location of the XML File With Items Being Added
   
   
    '*************************************************************************************************************
    'Set The Headers Up!
    

Open in new window

0
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

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.