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

Hi Experts,

I did a Nessus scan and received a high vulnerability finding and have a few questions.

This result was from scanning our domain controller(wind 2012 R2).

First how did a certificate get generated when we do not use IIS on this DC? as i do not understand why a certificate would need to be generated on the DC or how it would be? We do not have a CA.



SSL Certificate Cannot Be Trusted

Description

The server's X.509 certificate cannot be trusted. This situation can occur in three different ways, in which the chain of trust can be broken, as stated below :

 - First, the top of the certificate chain sent by the server might not be descended from a known public certificate authority. This can occur either when the top of the chain is an unrecognized, self-signed certificate, or when intermediate certificates are missing that would connect the top of the certificate chain to a known public certificate authority.

 - Second, the certificate chain may contain a certificate that is not valid at the time of the scan. This can occur either when the scan occurs before one of the certificate's 'notBefore' dates, or after one of the certificate's 'notAfter' dates.

 - Third, the certificate chain may contain a signature that either didn't match the certificate's information or could not be verified. Bad signatures can be fixed by getting the certificate with the bad signature to be re-signed by its issuer. Signatures that could not be verified are the…
0
Get proactive database performance tuning online
LVL 2
Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Hello,
What other programming languages for web service development?  Which is better PHP or html?
0
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
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 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
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
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
Get MongoDB database support online, now!
LVL 2
Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

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

There is also helpful tutorials on BlazeMeter.com for JMeter, you don't have to use BlazeMeter but they do allow you to import your JMeter .jmx file and run tests if that is a route you want to go.

I am reading as above. I wonder what are difference between JMeter Vs BlazeMeter, advantages, disadvantages, practical uses.Please advise
0
Hi,

I am going through below link

http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/index.html

I was not clear on DTDs and Java version relationship and which one to use in WEB.XML.

Please advise
0
I am trying to debug a permissions problem with a web API I am using.

Two of the rules are here...

-  The batch upload and download processes must be initiated from the machine on which the
Class 1 digital certificate resides. The batch XML document cannot be authenticated if the
upload is not initiated from the machine on which the certificate resides.

- A Class 1 digital certificate must be used utilizing at least 128 bit encryption.


There are rules (about 20)  to use the API and I am wondering if there is a way to create some sort of visual model of them. I can see interesting things that might be useful in tracing the next required step, based on a database of prior events.

IO am thinking about some sort of AI system that tracks the next step based on what other steps have been performed by other registered developers.

 hope to see if there has been this need beforehand and if some tool existed already, or hear suggestions.
0
Hello

I would like to learn more about API's.

I understand there are REST API's, SOAP, web services, GRAPH API's etc.

CONFUSED!

1. What is the difference between an API and a web service

2. What is the difference between REST and SOAP

3. Where would one use REST and one use SOAP and one use Web Services

4. Anything else useful ;-)

Can someone explain in layman's terms or point me in the right direction?
0
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.

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
SRCarrierInfo.CarrierAgentActInfoServiceClient cgsClient = new SRCarrierInfo.CarrierAgentActInfoServiceClient();
cgsClient.GetCarrierWebsiteInformation(); //this is custom class library it will be returned. The name is likes: List<Domain.Carrier>


how can i expose my class library to the public? I use DNN 8 as client to call above object. and I can not reference my custom class library inside of DNN module project.
0
Hi,

I am new to jmeter. How to use it. What all different uses of jmeter. How to do soap web services testing using jmeter. please advise
0
I have  a method which insert record into the database using entity framework.
 We are build a Soap based web services. I would like to know how we are going to test
this web service as  project object  as a parameter. Any tool or any way to do that.


public IHttpActionResult PostProject(ProjectDTO project)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            Project entity = new Project()
            {
                ProjectNumber = project.ProjectNumber,
                ProjectDescription = project.ProjectDescription,
                CreateDate = DateTime.Now,
                CreateUser = project.CreateUser,
                Latitude = project.Latitude,
                Longitude = project.Longitude,
                ProjectStatus = project.ProjectStatus,
                HoursPerShift = project.HoursPerShift,
                TimeZone = project.TimeZone,
                StandByWBSElementNumber = project.StandByWBSElementNumber,
            };

            db.Projects.Add(entity);

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateException)
            {
                if (ProjectExists(project.ProjectNumber))
                {
                    return Conflict();
                }
                else
                {
                    throw;
                }
            }

Open in new window

0
I am programming a gateway for the current website I am working on .

The callback posting from the gateway requires a web service query to eliminate man in the middle attacks.

When the call back is posted, the following information is sent

$gtpay_tranx_id = $_POST['gtpay_tranx_id']//Transaction id
$gtpay_tranx_status_code = $_POST['gtpay_tranx_status_code']//'==> 00
$gtpay_tranx_curr = $_POST['gtpay_tranx_curr']//'==> NGN
$gtpay_tranx_status_msg = $_POST['gtpay_tranx_status_msg']//'==> Approved by Financial Institution
$gtpay_tranx_amt = $_POST['gtpay_tranx_amt']//'==> 140000.00
$gtpay_cust_id = $_POST['gtpay_cust_id']//'==> destiny@icecoolcontracts.mx
$gtpay_echo_data = $_POST['gtpay_echo_data']//'==> Transaction ID:AS20170222150106;ClientName: Destiny Amana [Icecool Contracts Limited]: Purchase of Basic Plus
$site_redirect_url = $_POST['site_redirect_url']//'==> /gtpayresponse.asp
$gtpay_gway_name = $_POST['gtpay_gway_name']//'==> webpay
$gtpay_tranx_hash = $_POST['gtpay_tranx_hash']//'==> CDFB59FDBCE4DCCC7A1348EFF165AC2AA1438356FE042D0DCD5F39DD4DF3F7F4C79BDCF586B858626748CCD0D79B6A39D9A1532949FA5FB7C4E4CBAD3774D335
$gtpay_verification_hash = $_POST['gtpay_verification_hash']//'==> 7CBC424420E73377B6BB1B93979CED3D2A7C53576B13EC61B8F271CCF0025B1EFB4553592382559667560D8FCD3405FA2DC53AF18B6938AE55A67F37AB11F1F1
$gtpay_full_verification_hash = $_POST['gtpay_full_verification_hash']//'==> …
0
I am trying to access an online CRM 2016 organization to create a report using Visual Studio 2012.  The format I used in CRM 2015 (https://apolloconsulting.api.crm.dynamics.com/XRMServices/2011/Organization.svc) apparently has changed:

I found a post that discusses this but I am still not able to access to the organization.  

I need someone to make me smarter on how to access an CRM 2016 using the organization service.

Thanks
0

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.