We help IT Professionals succeed at work.

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.

C#.MVC What Controller for MP3 Upload Web Service?

I need a web service that accepts an MP3 file and kicks off a series of steps. So, what is the best type of Controller object to use?

And what kinds of configurations will be best for this? Does this require configurations available only through WCF?

Thanks
0
I have a webservice that runs a loop through a client's employees.

When it is done, I want it to then call the webservice again to do another client's employees, and then close out the current web services connection.

Reason is: If I call the webservice to run until everything's done, everything does not get done, like there is a timeout.

If I run so many at a time, and then use a schedule to trigger the webservice again, apparently some clients take 4 minutes and some take 30 minutes for the same 500 employees (because some have much more data to process), so we have overlaps with the schedule with too many sessions running at the same time, or not enough running because one quit early and so time is wasted waiting for the schedule to trigger again.

So I was thinking, if I start up the webservice 6x at midnight, and then have each webservice session call the webservice again when it is done, that way there will constantly be 6 active sessions until I stop calling it at 5AM.


So if I do have a webservice call itself, that first webservice will end gracefully because it's done anyway, right? no problems?

thanks!
asp.net
0
I am struggling with connecting with our salesforce sandbox.

For example, in Postman, what would a valid request look like using oauth token?

Should there be a callback URL (does there need to be?)
0
Need a C# Web Service to call external Web Services. How?

I need to create a back-end web service which then calls a small handful of external web services in order to complete the calculations. Is this a simple task? Using C# to execute an external web service?

How would I call four different such calls at the same time? Does this qualify as "parallel processing"? Anything fancy needed? Or, can I quickly call one after the other, then get a callback for each?

How does this work?

Thanks
0
Hi
I think I am ready to roll on my final proper game coding.

I can get html/javascript code running from my local OS X XAMPP  7.2 local server, of course, w MacBook IP address..but is isn't always-up, and I need it always on.

But, for an intended final product, I've been looking at the options for a real-world type dev system.

It looks like Amazon Web Services has very reasonable options for eventual monthly billing. here

I'll use the free tier.
For now, I need only the ability to put a simple page up that can load a device .io game in html and serve the game code to the player browser / device correctly.
Is that what gameLift is suited for? If I put my working .io game directory in my Godaddy space, it doesn't work. I apologize for bringing up Godaddy again. It'll be the last time, I hope. So, gamelift can serve an .htm that pulls up its .io code?
Is gamelift mainly for MMO games / games w player accounts?
I'd say that - My first game - .io game - is most similar to games like word-scapes and Drag-'n-Merge, not yet fortnite or Slither.io

Thanks
0
Ran MS Remote Connectivity Analyzer - testing on premise EWS -Exchange Web Services synchronization, notification, availability, and Automatic Replies.
The Problem is on two new exchange servers in the Org any mailbox in the problem servers cannot lookup free/busy or mail tips.

Message: The request failed. The remote server returned an error: (403) Forbidden.
Type: Microsoft.Exchange.WebServices.Data.ServiceRequestException

Thanks
Adam
0
I have an Ubuntu server running 10.04.6 LTS.  It is providing web services.  I have setup sftp and given permission to an 'sftp' group to login but have set their root directory to be /var/www/html.  They are able to connect to the server but cannot write to the folder.  I use setfacl to give the group write permission.  If they are already logged in, they can now create folders and files.  However, once they logout, they can no longer login.   If I remove the acl, the condition reverses again.  It is not limited to acls though.  I even tried just giving 'other' write-access.  Same thing happened.

sshd_config snippet:
Match group sftp
ChrootDirectory /var/www/html
X11Forwarding no
ForceCOmmand internal-sftp

Error when trying to write:
Permission denied.
Error code: 3
Error message from server: Permission denied

Error when trying to login (from session log):
! 2019-12-11 08:23:42.538 Using username "ddinkin".
. 2019-12-11 08:23:42.569 Server offered these authentication methods: publickey,password
. 2019-12-11 08:23:42.569 Prompt (password, "SSH password", <no instructions>, "&Password: ")
. 2019-12-11 08:23:44.955 Sent password
. 2019-12-11 08:23:44.963 Access granted
. 2019-12-11 08:23:44.963 Opening session as main channel
. 2019-12-11 08:23:45.127 Network error: Software caused connection abort
* 2019-12-11 08:23:45.181 (EFatal) Network error: Software caused connection abort
* 2019-12-11 08:23:45.181 Authentication log (see session log for …
0
Experts,
Seeking your inputs please. The situation is as follows:

1) I have a HTTP listener running on a port (say 8083) on a Windows 2012 Server.
2) A client application continuously sends SOAP request to and receive a SOAP response from my listener.
3) There are instances when two successive requests are sent within a span of 10ms
4) The second request on the client application always results in the error 'Connection Refused' in the client logs. The owner of the client application believes my listener refused to accept the connection.
5) I am kind of confident it did not reach the listener, but not entirely sure if the connection was refused by the OS on the server.

Can I please know if there is a way to check if such a request was ever received at the listener port? Any kind of Windows logs or internal tools that can help me here?

Thanks.
0
Hello Experts,
I have built few HTTP 1.1 listen service mocks using SoapUI and CA DevTest tools. Every request to the service from a client like Postman is established as a new connection. Inserting a custom header Connection:Keep-Alive into the request and also the response is not making any difference. Can I know is there more to be done to have the socket open for successive connections happening within a second?

Thanks.
0
Hi all,

We have been asked by a client to open private access to our API. This will be monetized, and they would like us to provide a pricing model.

I have no idea where to start, i know the types of ways we can charge them (per user, usage, requests, etc), but i have no idea which is best for our use case, and how do we even go about building a mechanism to monitor usage for billing.

Our API is REST based (currently for internal use of a webapp and mobile app) and sends data to the cloud to be run against ML models which then spit back confidence scores to the applications.

My next question is regarding architecture, would we implement a layer between our ML Service and our clients that would implement oauth2/monitoring of API usage?
1
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
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
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

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.