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.

Hello,  This question has been bugging me, so I better ask to get it off my mind.  During an interview I was asked this question; A company having several/many web sites, their customer service phone number was in error.  the web sites consisted of legacy code and newer web service code.  How would the CS phone number be easily corrected in both the old web sites and the new web sites?
I won't post what my response was, let's see how close I came to answering this correctly.
0
I've built the default Visual Studio 2015 C# WCF Service Application.  Runs fine with the included client using the default connection http://localhost:50127/Service1.svc

For further testing I'm using Terra Term with the same URL, with and without the service1.svc, http, :50127 etc. Always get an Invalid Host error!

When I publish to a server (with its own IP) I have the same problem

Might this be related to the 50127 port and if so how would I change that?
0
First of all, apologies if I chose the wrong topics/keywords. I wasn't sure how to best tag this question.

My question is a general one about web hosting companies:
I noticed that some companies offer more bandwidth or storage space in their reseller hosting plan than in the shared hosting plan.
Sometimes, the price difference between these plans is minimal.

What would stop someone who is interested in getting a good price/bargain from subscribing to a reseller plan?
Wouldn't he be able to set up a great web site etc with a reseller plan?
0
I have a client who wants me to send me authentication information in the header of a web service call.

They say I need to authorize it via IIS. I don't want to have to setup authentication for every web service that accesses my site, because all others pass the authentication within the web service XML or JSON.

Does anyone know how to authenticate via IIS for this one webservice?

Otherwise, I'll just see if I can pull it from the header and authenticate it that way, but they said to do it via IIS, so I'm checking.

thanks!
Starr
0
Hi Experts,
I just inherited a SOAP Web Service App (.Net) that connects to a SQL Server application.
It has been a while since I worked on a SOAP Web Services.  How do I find the connection string on the web service?  I have been looking and can't find it anywhere.  

Thank you in advance.
mrotor
0
I have used Ebay to sell items but create the listing by hand. What capabilities does Ebay have for me to insert a large number of items to auction, but do so from a database of items?

I assume this means using their API, if they have one.

Please let me know.

Thanks
0
Hi,

web services creation SOAP does not use HTTP? Only Rest use HTTP. Even non rest web services are also accessed by HTTP URL right like weather service or stock service etc? Please advise?
0
Does the returning json message have to be received by the javascript portion of the client. Client being a C# web application.

And if the client is a C# windows application, can the json from the  soap web service be received by the windows application?
0
Using C#, MVC and .NET Framework, what options are there for Authentication of Web Services?

Does NetSQLAzMan have any relevance?
0
I am new to the term and need to understand it...
0
if auto discover is working fine and for some reason active sync or OAB is not working,

so one should trouble shoot exchange web services directory?

but let us say auto discover is working fine, how we know that there is no problem with auto discover but Exchange active sync Or EWS as a whole

I believe exchange web services virtual directory controls OAB, ACTIVE SYNC??
0
We're developing a custom integration process to move data between an Oracle 11gR2 database and a Microsoft Dynamics 2016 on premise implementation (MS SQL Server 2008).  We are only dealing with Contact information and looking to have a nightly job run.   We are wondering which method is preferable and what would be considered best practice:

1) A direct export from Oracle and import into the CRM SQL Server database, mapped by fields, and managed by some SQL code;
2) An import into CRM which utilizes the various web services managed by more .Net type code.

Thanks!
0
The architecture of the web project is as follows:
  1. There is a Spring MVC restful web service running to serve HTTP Restful APIs.
  2. A node.js express service is running to serve web pages with AngularJS. It also offers some HTTP resful service for the AngularJS to call, which bascially calls the Spring Restful API and returns the result to the front end AngularJS.

The call flow is:

  1. The AngularJS on the page initiates API calls to the express restful service.
  2. Then the express service calls the Spring MVC restful service to get the needed results.
  3. The express service returns the result to the front end AngularJS. Before getting back to Angular, it can post-process the data in order to fit the need of front end.

How can I only allow the users who logged in at the front end (also by calling the login restful API) to make subsequent calls to other services offered by the Spring MVC restful service?

The tricky thing is that the front end (AngularJS + Express which serves the page and also proxies the service call to Spring Restful) and the back end (Spring Restful service) are separated parts. So I am not sure if Spring Security can do the job. Or can I use some other way? Your thoughts will be greatly appreciated.
0
what technologies offer Authentication over Web Services when created with

.NET MVC framework and WebAPI?

And how much os this is provided by the .NET Framework?

Thanks
0
Hello experts,

I plan to make a tool to connect my home computer to my laptop and android phone that I carry around. The connection would basically include some features like showing up status of download progresses, capturing images using the webcam, etc.

I was asked to use port forwarding but that is not an option, as my home computer uses a cable internet connection that does not give access to the public ip, and the phone and the laptop both use my phone internet connection which does not provide me a public ip either. So, while looking for solutions, I came to know, setting up web services might be of help.

Now, what I want to know is that, is it possible to set up a web service on cloud such that I can ping the web service from my phone with specific commands when I want, and my home computer on the other hand keeps looking for requests at the web service every minute and as soon as it finds a ping from my phone, it executes the command requested and forwards it to the service, which forwards the result to my phone?

In case that is possible, can free webhosting sites be used to host such services??

P.S.- I plan to write a simple SOAP service using PHP if this can be done, and I would need some help in setting that up too.

Help is much awaited.

Thanks in advance.
0
I have a client using a MySQL database on Amazon Web Services RDS. I need to connect to that database from my own shared hosting server on Namecheap.com. I have been able to connect from my desktop successfully using MySQL Workbench and have created a php connection script in Workbench. However, my connection is being rejected with the following error:
mysqli::mysqli(): (HY000/2003): Can't connect to MySQL server on 'removed4security.us-east-1.rds.amazonaws.com' (110)

Open in new window

The user privileges are set to accept connection from host %.

I have avoided using AWS in the past as they seem to have reinvented the wheel in hosting administration. Nothing, and I mean nothing, in the AWS control panel even resembles anything I've ever used before. Even the terminology is unfamiliar. Even though I've set up dozens on databases for remote and local access, I am in unfamiliar territory with this system.

Any suggestions?
0
I want to take the output of a web service from webserviceX and assign it to a local variable in an application.

Currently this is done by using groovy script to read the output of the Weather Service WS.  The script is shown below:-

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;

import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;

// Clean response xml document
responseDocumentBody.normalizeDocument();
// Get result node
NodeList resultList = responseDocumentBody.getElementsByTagName("GetWeatherResult");
Element resultElement = (Element) resultList.item(0);
String weatherDataAsXML = resultElement.getTextContent();

// Check for empty result
if ("Data Not Found".equalsIgnoreCase(weatherDataAsXML))
    return null;

// Parse embedded XML of result
DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
InputSource inputSource = new InputSource();
inputSource.setCharacterStream(new StringReader(weatherDataAsXML));
Document weatherDataDocument = documentBuilder.parse(inputSource);
Node weatherNode = weatherDataDocument.getDocumentElement();

// Save weather data
Map<String,String> data = new HashMap<String,String>();
NodeList childNodes = weatherNode.getChildNodes();
for (int i=0; i<childNodes.getLength(); i++)
{
        Node node = 

Open in new window

0
I am using SpringSource Tool Suite to deploy a jax-ws client application under Tomcat v7.0.

I am getting this log:

Oct 27, 2016 2:07:59 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:gaje-2.0' did not find a matching property.
Oct 27, 2016 2:07:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version:        Apache Tomcat/7.0.70
Oct 27, 2016 2:07:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          Jun 15 2016 16:27:45 UTC
Oct 27, 2016 2:07:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number:         7.0.70.0
Oct 27, 2016 2:07:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:               Windows 7
Oct 27, 2016 2:07:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:            6.1
Oct 27, 2016 2:07:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:          amd64
Oct 27, 2016 2:07:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:             C:\Program Files\Java\jdk1.8.0_101\jre
Oct 27, 2016 2:07:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:           1.8.0_101-b13
Oct 27, 2016 2:07:59 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:            Oracle Corporation
Oct…
0
Hi,

what are difference bewteen micro services vs rest web services . When we use which one along with SOAP webservices. How to learn more about these topics.Please advise
0
Hi experts,

I have a ASP.NET/VB.NET app developed in VS 2005 that needs call a web service. The problem is that, depending on my customer, the AMSX file and its methods have different names. I found in Web several tips about how to call a web service dynamically, but none about how to call methods dynamically.

I create a little  ASP.NET/VB.NET app to demonstrate my intention that is in this link.

It has two web services, one named "FirstWebService" with two methods "CommonFunction" and "firstFunction", and other named "SecondWebService" with two methods "CommonFunction" (same name of the first) and "SecondFunction".

When executed it, a page is shown to choose the web service name, the method name to be executed and and the field "Name" just to test parameters to the method.

When I press the "Execute" button with "First" in Web Service DropDownList, work fine for any options in "Function" DropDownList. But, when I select "Second" in Web Service, the error message "An exception was thrown by the target of a call" is shown. What am I doing wrong?

Thanks in advance,

Camarate
0
I need to gather the SOAP calls for an API.  What would be the quickest option to gather this information?
0
I have developed a mobile application that connects to a web service to insert data into my SQL database. I am attaching images using the device's camera, and I convert this image into a base64 as a parameter inside the URL. I have been trying to send it to my web service, but I get this error:

HTTP Error 414. The request URL is too long.

The URL is approximately 22000 characters long. I am using post. I already maxed the web.config maxAllowedContentLength and maxUrl and all those.

I am also using angularjs and ionic.
0
Probably easier if I start with some background info. I have a property portal website and normally an agent would provide me with a link to an xml file containing details of their properties. I set up a cron job and collect their xml file from the url and update our database. Easy.

However, several of our agents are switching to an Estate Agent software package called Hecktor via http://www.la-boite-immo.com/. When requesting a link to an xml file they then referred me to krier.fr who provided me with login details to their SOAP web service and directed me to this page http://alize.krier.fr/AlizeWS/ExportXmlWs.asmx. After several exchanges of emails I was finally able to see the xml data in a browser window by going to this page and entering the login details http://www.soapclient.com/soapclient?template=/clientform.html&fn=soapform&SoapTemplate=/SoapResult.html&SoapWSDL=http://alize.krier.fr/AlizeWS/ExportXmlWS.asmx%3Fwsdl&_ArraySize=2
(Obviously I can't give any log in details)
This is a snippet of what I'm seeing
soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetXmlDataResponse xmlns="http://tempuri.org/">
<GetXmlDataResult>
<lots>
<lot>
......
</lot>
<lot>
.......
</lot>
etc...
</lots>
</GetXmlDataResult>
</GetXmlDataResponse>
</soap:Body>
</soap:Envelope>

Open in new window


What I want to do is capture the data and save it (Basically everything between <lots></lots>). I can then parse it and update our database.
After hours of trawling the internet I have got this far

Open in new window

0
Hi, I have recently created a REST service using C# console and OWIN.    It works fine but I wan't to take it a step further and I don't know how I can achieve my goal.    

Below is my code, as you can see I'm using ApiController to read the json data received.    What I would achieve is to read the json variable "type" to know what I have received and then depending if it's a customer, product or else I would like to read the variable "content" knowing what to expect so I can cast "content" as a Customer object for instance.

The actual json content I would like to send is this, I can read the "type" field but I don't know how to get "content" and send the values to the "customer" object I have.   I'm pretty sure it can be done, it's a matter of getting the POST parameter, analyse it and read it as a json content.    Currently I can only achieve reading json as a content automatically when receiving a POST command.

    {
        "type": "customer",
        "content": {          
          "Name": "test",
          "Adress": "test adress",
          }
    }

Here is the APIController:

    public class MyApiController : ApiController
    {
        public void Post(JsonStruct json)     // [FromBody]
        {
        if (json.type.Equals("customer", StringComparison.OrdinalIgnoreCase))
             {
                    // read content as a Customer class
        }
       }
    }      

Here is the expected fields:
    public class JsonStruct
    {
        …
0
I am increasing the number of technicians and salespeople in the field and we need something that helps us manage them.  

Inexpensive options are greatly appreciated.

My thinking was that it would be an app, that once installed, kept techs aware of projects that arose.
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.

Top Experts In
Web Services
<
Monthly
>