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
I think I mucked up a decision a few weeks back.
A sparkly girl from Godad called me one morning during a remorseless coding buzz of mine.
She said they had reviewed my godaddy account and were uncertain about my server decisions.
Apparently, they had a new package deal for a "non-VPS" server of my own to handle my games' (plural) needs.
I didn't sense any red flags, so listened on.
I told her I needed a server to handle my games'  traffic and deliver appropriate responses and content to the user.
She didn't object. and told me it would be my own dedicated machine.  - And could do what I needed.
I was admittedly skeptical, bec if this was a special deal for a personal server, they'd need quite a big farm for all the potential global individual clients?
I should have asked her where the location was and how many clients had servers.
Anyway, she said it was a short time offer, and I thought it was a good deal for my needs and I bought the damn thing at $1,000
Can I salvage this blunder? Was it a blunder?
Can I work with the thing the sold me to make phone games?
I have since discovered Amazon web services which would be far better suited to my needs.- only pay for traffic you use.

Does Godaddy have a similar system to AWS? Is it in development?
I can demand a refund for the blunder, and use that money for Godaddy Web Services? Godaddy refunds have to stay within the account.

Thanks
0
Should you be charging more for IT Services?
Should you be charging more for IT Services?

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Hi,
Any idea to convert this java code to C# format.

HttpClient httpClient = HttpClientBuilder.create()
					.setDefaultRequestConfig(RequestConfig.custom()
							.setCookieSpec(CookieSpecs.STANDARD).build())
					.build();

Open in new window


Kind regards,
Pooja
0
I am looking to set up a free DDNS for clients that do not have a static IP, the most I hear from are no ip and DynDNS, I also see more option in my router wondering what is the one you would recommend.
DDNS.JPG
0
How do I handle this scenario:

A web service will receive data and write to a file on a network share.
Another application is running as a service that checks for files, reads the data, processes, saves the data to a database then deletes the file.
This application must run in multiple data centers and on multiple servers in each data center.  How do I ensure that each file is processed
only once.
0
Hello all!  Am having an issue with a web service that I'm trying to debug but it will not "play" within Visual Studio and I can not connect to it on the server with WCF Test client or a test application though adding the service to the test application does work and only breaks when building the application.  The weird thing is that it is currently working in production.  The errors I am getting are a variation of the same...

c:\Users\main\AppData\Local\Temp\Test Client Projects\16.0\908eb97f-72d0-4b17-882a-baac49b3143c\Client.cs(23168,26) : error CS0534: 'System.Data.EntityClient.EntityConnection' does not implement inherited abstract member 'System.Data.Common.DbConnection.ConnectionString.get'
c:\Users\main\AppData\Local\Temp\Test Client Projects\16.0\908eb97f-72d0-4b17-882a-baac49b3143c\Client.cs(23168,26) : error CS0534: 'System.Data.EntityClient.EntityConnection' does not implement inherited abstract member 'System.Data.Common.DbConnection.ConnectionString.set'
c:\Users\main\AppData\Local\Temp\Test Client Projects\16.0\908eb97f-72d0-4b17-882a-baac49b3143c\Client.cs(23168,26) : error CS0534: 'System.Data.EntityClient.EntityConnection' does not implement inherited abstract member 'System.Data.Common.DbConnection.Database.get'
c:\Users\main\AppData\Local\Temp\Test Client Projects\16.0\908eb97f-72d0-4b17-882a-baac49b3143c\Client.cs(23168,26) : error CS0534: 'System.Data.EntityClient.EntityConnection' does not implement inherited abstract member 

Open in new window

0
HI, I am writing a soap web service.
The response that I got is starting with : <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">,
but it require to be : <env:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">.

I tried to add below line code in package-info.java, to replace the soap prefix with env, but it didn't work.
xmlns = {
            @javax.xml.bind.annotation.XmlNs(prefix="env", namespaceURI="http://schemas.xmlsoap.org/soap/envelope/")            
}

any inputs is welcome.

Thanks
1
Trying to get in the right direction.
What knowledge and tools are needed in building and implementing new web services?
What knowledge and tools are needed in developing and supporting Web APIs using REST?
0
I am developing an electronic medical record (EMR) system.

I am designing and implementing the backend APIs using WCF.

Now, I have two system actors: secretary and doctor.

I designed the services according to the actor he/she is concerned.

[ServiceContract]
public interface ISecretaryService
{
}

[ServiceContract]
public interface IDoctorService : ISecretaryService
{
//the doctor has the functions of secretary in case she was absent!
}

Open in new window


The problem is I have duplicate code which is the implementation of the ISecretary contract in doctor service.
0
Need a cost effective alternative to SiteGround Grow Big account.  

Most of the time they seem like a good solution, but then something happens usually around DNS updates and they just fall apart.  My latest headache with them involves moving an SNPP (Port 444) connection into AWS with the host name in Route 53 and the connection in the Dynamic Load Balancer.   Well that apps, been done all day.  They don't allow you to DIG, PING or NSLOOKUP from the SSH CLI, and they always seem to feel that they should own the DNS registration.  

This is the third time this year already I have had similar issues and I need to look again.  Might move to AWS, but the nature of the sites seem to imply a variance in cost month to month and possibility of a HUGE surprise one month.  

Mostly a mix of PHP, Static HTML and WORDPRESS (Gravity and Genesis Enterprise) ..

I am out Tuesday, so will apologize in advance for any slow responses.

TIA -
0
Hey

I am new here and in my spare time (as a hobby) I try to make utilities for use at my school (I work at a school administration). For this I use Delphi XE7. But now I have a problem that I can't find a solution for. Hopefully you can help me with that.

I have recently been forced to communicate via a web service. For this I have to use the "sendmsg" function. In the imported supplied WSDL file, the function is defined as follows:

function  sendMsg(const accesscode: string; const userIdentifier: string; const title: string; const body: string; const senderIdentifier: string; const attachments: Variant; const coaccount: Integer; const copyToLVS: Boolean): Variant; stdcall;


The server with which I have to communicate describes the function as follows:

sendMsg

With this method you can send a message to the main account or a co-account of a specific user. Specifying the sender and / or attachment is optional.
•      string $accesscode: Web services password
•      string $userIdentifier: Unique field user of the recipient
•      string $title: Title of the message
•      string $body: Text of the message
•      string $senderIdentifier: Unique field user of the sender (optional)
•      mixed $attachments: Attachments (1 or more) in base64 encoding (optional)
•      integer $coaccount: Type of account ('0' = main account, '1' = co-account 1 or '2' = co-account 2…). $ coaccount is optional: if this is not specified then the message will be sent to the
0
Angular Fundamentals
LVL 13
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

Hi,

I have a question. I have a existing WCF type framework that has like 8 difference .svc's and in each one of those .svc's there are like 40 different web services (methods) that are called.  This is in ASP.NET and C#.

I am going to start implementing REST aspects as well with ASP.NET and C#.

Is it wise to maintain 2 separate frameworks? One for REST methods (could also be 10-20 different methods) and that over existing SOAP svc's? Or do I combine the REST calls/process into the existing WCF?

If the suggestion is 2 separate frameworks... does anybody have an example of how that would be done in REST?

Any information would be greatly appreciated.

Thanks!
0
I'm working on a Windows Forms project and it calls Web Services. This is how the project is setup (my new job)

1. The Windows Forms solution
2. Web Services solution
3. Windows Forms solution has references to the Web Services . Screenshot below (not the best naming convention, I know)
e1.png
4. I downloaded Fiddler to see if I can see what Web Services method is being called. I see some logging but not Web Services.

Anyway I can see  which web services method is being called?
0
What are some of the good web service testing application I can use? I would like to use a tool to test web services before I start any development work.
1
Looks like I'm back again.

I created a new domain on my Windows Server 2016 Essentials domain controller, and transferred all my users to it. Everything seemed to be going well until I took off the static ip I had set on one of my user machines.

This led me to check my Server Manager on my one and only domain controller, and I found the following errors.

Error 1202: DFSR
Additional Information:
Error: 160 (One or more arguments are not correct.)

Error 1202: ADWS
This computer is now hosting the specified directory instance, but Active Directory Web Services could not service it. Active Directory Web Services will retry this operation periodically.
 
 Directory instance: NTDS
 Directory instance LDAP port: 389
 Directory instance SSL port: 636

Warning 4013: Microsoft-Windows-DNS-Server-Service
The DNS server is waiting for Active Directory Domain Services (AD DS) to signal that the initial synchronization of the directory has been completed. The DNS server service cannot start until the initial synchronization is complete because critical DNS data might not yet be replicated onto this domain controller. If events in the AD DS event log indicate that there is a problem with DNS name resolution, consider adding the IP address of another DNS server for this domain to the DNS server list in the Internet Protocol properties of this computer. This event will be logged every two minutes until AD DS has signaled that the initial …
0
Setup WizardI have Questions on the setup Active Directory Lightweight Directory Services.  I am setting up on a Server 2012 R2.  The purpose will be to support web services for Great Plains.  The wizard is asking about an Application Directory Partition, do I create one to support web services for Great Plains?  If so,  the example shows CN=Partition1 ,DC=Woodgrove, DC=COM.

Does this mean that:
DC would be Local domainname?
DC would be LOCAL instead of COM if the AD is domainname.local?
0
Experts,
 I have sharepoint 2013 environment and i was working on to find current user belongs to AD group or not by java script. We have web services created to check current user  part of AD or not by passing Groupname ,  Domain and username.  For some reason i am not getting username if user does not have access. But I am getting userid from _spcontext.

I have a rest api to get the username from userid. It's not getting 401 error who does not have access to that site so i am planning to use server side code with Runwithelevated access.

Can you please help me to write code so i can just pass userid and it's retrieve username and domain form user profile?

var userid= _spPageContextInfo.userId;
var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/web/getuserbyid(" + userid + ")";
var requestHeaders = { "accept" : "application/json;odata=verbose" };
$.ajax({
    url : requestUri,
    contentType : "application/json;odata=verbose",
    headers : requestHeaders,
    success : onSuccess,
    error : onError
});

Open in new window



Over all Code

Open in new window

0
Hi Experts,

I need help on restful web service testing in the soap UI.

Request type : POST

How to add the json structure in the multipart/mixed request to test in the soup UI.
in the soup UI - we have the media type - any one we can choose from the drop down.. but is there any way that we can pass json structure in the multipart/mixed request .

Let me know if you have any questions.

Regards,
Kumar
0
Hi Experts,
I need a help to write the code in C#
how to connect the restful api in the C# code.
I have the restful url and credentials.

Can you please share me the sample code .

Regards,
Praveen
0
I'm trying to add headers to a HttpWebRequest

The code I'm trying to emulate (from PHP), to vb  is:

$ENCODE_CREDENTIALS = base64_encode("username:password");

$options = array(
'http' =>
  array (
    'method'        => 'POST',
    'header'        => 'Authorization: Basic ' . $ENCODE_CREDENTIALS,
    'ignore_errors'  => true,
  )
);
$context = stream_context_create( $options );
$response = file_get_contents(
  "$SERVER_ADDRESS:$PORT/login",
  false,
  $context

Or CURL:

curl -u "LOGIN:PASSWORD" -X POST "SERVER_ADDRESS:PORT/login"

Open in new window


I can access the web services but can't login. How do I add the header?

So far I've:

request.Method = "POST"
request.ContentType = "application/x-www-form-urlencoded"
Dim name As String = "admin:pwd"
Dim userInfo As String = Convert.ToBase64String(System.Text.Encoding.[Default].GetBytes(name))
request.Headers(System.Net.HttpRequestHeader.Authorization) = userInfo
res = serviceRequest.DownloadString(New Uri(url))

Open in new window

0
what is Exchange Web Services and is it on by default in O365? I am in a hybrid environment, Is the base EWS the same as Exchange Web Services Push pull subscription on? Can EWS subscription be disabled? What problems would I have if it is disabled
0
I have a very basic ACL Question.  I have set up a ACL in a VPC in AWS.  I have entered the IP addresses that I would like to have access.  I have a range of IP addresses I would like to enter, for example 215-145-203-190 to 215-145-203-206.  (Fictitious).  How do I enter that in one rule?  
Thank You
0
Need a quick overview of WebAPI.

I am a .NET Full Stack developer and have supported numerous web services, but have difficulty answering interview questions about WebAPI.

Please refresh my memory.

Thanks
0
Using VBA - I need to write a REST/POST command with JSON parameters.  However, I can't seem to find a simple example that I can follow.  Does anyone have anything?
0
I am running Ubuntu 14.04.5 LTS in Amazon Web Services with an Elastic IP and an inbound connection for my Static IP.

I need to simply copy files from Ubuntu (Ubuntu 14.04.5) to my local mac (running OS 10.14.2) and then copy them back, both using a Terminal window and SSH.

I've tried scp, but can't seem to get the command correct as the error I'm getting is:

"ssh: connect to host **.*.**.*.** port 22: Connection timed out" (This IP is the Elastic IP).

What am I doing wrong? Help! Thanks in advance. :-)
0
Hi Guys,

I'm having good fun doing my first web services and learning java, but I need your help ( again ).

Just to recap what I've done so far
1. using eclipse java ee I created Dynamic Web Project
2. I imported  a wsdl file to the project and generated web services (Top down Java bean ones)
3. I can take parameters from received requests and loaded them to Oracle database, which connection details are stored in config.properties file ( this pretty much works :) )

I've just been asked if it would be possible to grab a SOAP body and load it to an oracle table.

This is my class where web services requests are being consumed

/**
 * BasicHttpBinding_MS_aaa_WMS_ServicesImpl.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
 */

package com.bbb.WebServices;

import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.Statement;

import org.datacontract.schemas._2004._07.Dft_aaa_WebService.WMS_RequestData;
import org.datacontract.schemas._2004._07.Dft_aaa_WebService.WMS_RequestInfo;

public class BasicHttpBinding_MS_aaa_WMS_ServicesImpl implements com.bbb.WebServices.MS_aaa_WMS_Services{
    public com.bbb.WebServices.SendPing_WMSResponse sendPing_WMS(com.bbb.WebServices.SendPing_WMS parameters) throws java.rmi.RemoteException {
try {
			
			Connection con = null;
			

Open in new window

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.