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

I'm using C# to call a Java Web Service.  I'm using Visual Studio 2015 The company gave me wsdl file and I generated the proxy class for wse 3.  I don't know WCF so I did it in wse 3

Here is my  app.config file

<?xml version="1.0" encoding="utf-8" ?>
		<section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
				<add valueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3">
					<sessionKeyAlgorithm name="AES128" />
					<keyAlgorithm name="RSAOAEP" />
			<x509 storeLocation="CurrentUser" />
				<add type="Microsoft.Web.Services3.Security.Tokens.EncryptedKeyTokenManager, Microsoft.Web.Services3, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="http://www.w3.org/2001/04/xmlenc#" localName="EncryptedKey">
					<keyAlgorithm name="SHA2" />
			<trace enabled="true" input="InputTrace.webinfo" output="OutputTrace.webinfo" />
			<detailedErrors enabled="true" />
		<policy fileName="wse3policyCache.config" />
			<mtom clientMode="On" serverMode="always" />

Open in new window

Get Certified for a Job in Cybersecurity
Get Certified for a Job in Cybersecurity

Want an exciting career in an emerging field? Earn your MS in Cybersecurity and get certified in ethical hacking or computer forensic investigation. WGU’s MSCSIA degree program was designed to meet the most recent U.S. Department of Homeland Security (DHS) and NSA guidelines.  

I am new to webservices. I am working on a sample program on the following link
When I run the ant script, it is not generating the next package(com.myfirst.wsserver.jaxws). I am not able to proceed further. I am using eclipse. Need help. Thanks.
Is it possible, in Embarcadero delphi, to be connected to a WEB-Services SOAP (imported with WSDL-Import and with THTTPRIO component ) with a https connection and where the WebServices need a Certificate? How set the certificate?
I need an example.
Nowadays AWS cloud computing has a very scope. Amazon web services, JPA solutions provide is the good platform for learning database storage, content delivery and more learn from cloud industry experts. We have experienced and industry trainer to teach AWS from basic level to advanced level.

Expert Comment

by:Ancy Hollo
Share with you a good site that you can get cheap product keys from there: http://www.vanskeys.com/office-2016-c-185.html, all versions of office keys and office keys can be found in that site.
I have already setup my extended oauth2 connection and I can do an impersonation of anyone in my org.

I can successfully, say, do a

 GET https://www.googleapis.com/calendar/v3/users/me/calendarList/someuser@ourdomain.net

and get a good response.

What I can't figure out is what calls to use in order to set “Share this calendar with everyone in the organization” and Set to “See only free/busy (hide details)”

Thank you in advance for any assistance!
I consume a web services client.
I have a certificate with password. I can retreive the certificate from my store and i can use it in InternetSetOption.
But I don't know how to send the password with the certicate.

Thanks for your hep.

Here is an example:

      LPWSTR pswzFirstCert = L"xxxxx";// Subject of the first certificate.
      LPWSTR pPassword = L"yyyyyy";// Spassword
      HCERTSTORE hSystemStore; // The system store handle
      PCCERT_CONTEXT pDesiredCert = NULL;

      if(hSystemStore == NULL)
            ShowMessage("Not Opened the MY system store.");

// Get a certificate that has the string "Full Test Cert" in its subject.

      pDesiredCert=CertFindCertificateInStore(hSystemStore, MY_ENCODING_TYPE, 0, CERT_FIND_SUBJECT_STR, pswzFirstCert, NULL);
      if(pDesiredCert == NULL)
            ShowMessage("The certificate was not found.");

            CertCloseStore(hSystemStore, CERT_CLOSE_STORE_CHECK_FLAG);

      if( InternetSetOption (Data, INTERNET_OPTION_CLIENT_CERT_CONTEXT, (LPVOID)pDesiredCert, sizeof (CERT_CONTEXT) ) == FALSE )
            ShowMessage("InternetSetOption failed with error.");

      if( InternetSetOption (Data, INTERNET_OPTION_PASSWORD, (LPVOID)pPassword, sizeof (pPassword) ) == FALSE )
            ShowMessage("InternetSetOption failed with error.");

Our company is moving some components to our internal cloud and I am working in a project and one of the task is to expose an existing legacy java class as soap web service. Can anyone please help me stir in the right direction? How can  I write a soap Producer on existing new class and methods? Should I write a new class and extend this class or should I write a subclass? What is the best  way  to approach  this?I  am new  to integration projects. The company is using  Mule  Esb as an integration solution? Also how Mule esb fitst together  with all this?I am new to  Mule  esb.
Can I use the Telegram Bot API for listetning to message on a private invite-only channel?

Background information:
I was hired to do a gig for doing a Telegram bot that could parse messages and saved them into plain text. Now, I was told that the bot is required to listen to message in invite-only  channels. While doing some research, looks like this is a bit of an issue. I heard some suggest to use the Telegram Client API (instead of Bot), can someone confirm this is possible on the Bot API, or if I actually ave to switch towards Client?
Are there any user's out there familiar with CT FreitRater v 3.0 and interacting with the web service via JSON?
Hi All,

I created a proxy class from a  wsdl DealSplits.asmx  .  I  am getting  below error when I invoke any method.   The endpoint is https.

Error Message
There was no endpoint listening at https://****/DealSplits.asmx that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
The InnerException is  The remote server returned an error: (403) Forbidden.

 Looks like security tag error in the binding. I tried to change security Mode="None" and it did not work.

        <binding name="ImportDealsplitsSoap" closeTimeout="00:01:00"
          openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
          maxBufferPoolSize="5120000" maxBufferSize="5120000" maxReceivedMessageSize="5120000">
          <security mode="Tranport">
            <transport clientCredentialType="None" proxyCredentialType="None"
              realm="" />
          <dataContractSerializer maxItemsInObjectGraph="5124000"/>
          <serviceMetadata httpGetEnabled="True" httpsGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="True"/>
 <endpoint address="https://**/DealSplits.asmx"

Open in new window

A proven path to a career in data science
A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

The scenario is that I have a PHP function which makes call through third party library to a third party url and it is noticed that it gets timeout due to heavy traffic.

I have put a Circuit is open check condition in my try block and in catch block I have added code to raise exception in circuit breaker library i.e. whenever I get Connection timeouts Exception from third party library I raise a PHP exception in circuit breaker command by passing a boolean flag.

The issue I am getting is that short circuits happens at requests early than the threshold.

With below configurations only for this command

'circuitBreaker' => array(
   'errorThresholdPercentage' => 50,
   'requestVolumeThreshold' => 10,
   'sleepWindowInMilliseconds' => 10000,
   'rollingStatisticalWindowInMilliseconds' => 20000,
I am getting this exception message
Message = "You must write ContentLength bytes to the request stream before calling [Begin]GetResponse."

Here is my code (Partially)
GlobalOneResponse objCharge = new GlobalOneResponse();
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URL);
request.Method = "POST";
request.ContentLength = xmlString.Length; 
request.ContentType = "text/xml";
StreamWriter requestWriter = new StreamWriter(request.GetRequestStream(), System.Text.Encoding.UTF8);
WebResponse webResponse = request.GetResponse();
Stream webStream = webResponse.GetResponseStream();
StreamReader responseReader = new StreamReader(webStream);

responsedata = responseReader.ReadToEnd();                      
responsedata = responsedata.Replace(System.Environment.NewLine, null);

Open in new window

The bad line is highlighted here
I am using Spring Boot and want to create a client that uses SOAP1.1 as the SOAP VERSION.

I am not sure how to check my current SOAP version and how to switch it to SOAP1.1 for the client.

Does anyone have idea as I cannot find this online anywhere.........
I have an Oracle .dmp file (65 GB) that I have transferred to a remote Amazon Web Services RDS Oracle instance.  The file is an original export (pre version 10) and cannot be imported using the data pump (impdp) commands - unfortunately I also don't have the option to get the file exported using the data pump or I wouldn't be asking this question.  I am currently connected to the Oracle instance using SQLPlus on a windows machine at my home office.  I was able to create a linked server and transfer the file to the remote server into the data pump directory.  However where I am getting stuck is the imp (not impdp command) gives me a cannot open file for read error when I specify the following import command:

imp username/password@remoteserverinstancepath file='/rdsdbdata/datapump/dumpfile.dmp' touser='import_user' fromuser='export_user' log='C:\Temp\importlog.log'

I was able to start up the import from my machine using a the same file but in a local directory on my pc but this is has been running for almost a day and is going very slowly and I may need to abort this import as it looks like it will take days if not a week to complete.  My hunch is my file path is not lining up in the imp command and needs to identify the linked server somewhere in the path.  Unfortunately I cannot find any information on performing a remote import using the original imp commands.  Any help would be appreciated.
Using InfoPath 2013 with SharePoint Office 360, I want to create an item in a SharePoint list just ahead of creating an item in the SharePoint list for the form being displayed.  I am trying to create a Web services submit connection in InfoPath to do this.  I am uncertain of the url to use in the connection. Here are a few details:

1.  Main data connection is for List 1 in site A.
2.  The form displayed is for data in List A.
3.  When the submit button is pressed, I want to create a new item in List B, then create the item in List A.
4,  When I attempt to set up a submit data connection, I am using https://<tenant>.sharepoint.com/<site>/_vti_bin/<service>.asmx?WSDL.  That works when <service> is lists or webs, but then I don't see add item or anything similar.  And even if it did, how would it know which list to add the item to?

I can't readily locate services for Web services, and am still puzzled by not using a list name.  Is this kind of item creation even possible in InfoPath 2013?  (converting to PowerApps but need something right away).

I found various tutorials on how to create a web server/web API (I think these are one in the same). The tutorials I found use C# to demonstrate the tutorial. I believe the tutorials assumed knowledge the student has an understanding of protocols in order to understand the tutorial such as XML, JSON, etc..

I've written code for 46 years, however, I have not kept up on protocols for web services/web APIs. I'm looking for a beginners tutorial on how to create a web service/web API for a web application. This code will specifically allow me to interact with UPS (United Parcel Service).

Any assistance is most welcome using VB.NET.

Much thanks,
David Bach
Excuse my ignorance on this subject but is there a standard used when creating a JSON object as a data-layer for a web application from a web service?  The part I don't understand is if I have a web service that returns data and the end result is to create a JSON object used as a  data-layer, Is it usually the Web application takes the data from the web service and creates the data-layer or is it the web service returns the JSON object complete? Or could it be either way?


In declaration, set the following variables:
Dim service As ILoadComplements_n0 
Dim data As DataComplemntSingle64_n3
Dim response As Statusreturn_n3

Open in new window

Dim content As String

Within initialize I declare the following:
Set service= New ILoadComplements_n0()
Set data = New  DataComplemntSingle64_n3()

Open in new window

content = "asdu7282368jd5hd6zxPasdg"
Call data.Setvaluefromstring(content)
Set response = service.LoadsingleComplemet64(data)
Print response.status.Getvalueasstring()
Print response.reason.Getvalueasstring()

Open in new window

My problem is the service returns me:

Estatus -> False
Motivo ---> the payment plug-in XML that is being loaded is empty

That False is back to me is fine, the problem is that he tells me that the content chain that I sent him is empty and it is not like that. A solution or explanation of why my web service receives an empty string?

I feel that my problem is in this line but I do not know why:
Set response = service.LoadsingleComplemet64(data)

Open in new window

only 1 user is having issues with OOF , it goes on and off on its own,

 ERROR WHILE running test email auto configuration: local autodiscover failed through SCP

I ran test outlook web services and found the result (attached)

RunspaceId : 99504627-2906-4b82-89a2-54456e84723f
Id         : 1012
Type       : Warning
Message    : XML>Unknown Node:OwnerSmtpAddress OwnerSmtpAddress Line:http://schemas.microsoft.com/exchange/autodiscover

RunspaceId : 99504627-2906-4b82-89a2-54456e84723f
Id         : 1012
Type       : Warning
Message    : XML>Object being deserialized: Microsoft.Exchange.Management.SystemConfigurationTasks.AutoDiscoverAlternat

RunspaceId : 99504627-2906-4b82-89a2-54456e84723f
Id         : 1012
Type       : Warning
Message    : XML>Element

While other users are not getting any errors.
The Firewall Audit Checklist
The Firewall Audit Checklist

Preparing for a firewall audit today is almost impossible.
AlgoSec, together with some of the largest global organizations and auditors, has created a checklist to follow when preparing for your firewall audit. Simplify risk mitigation while staying compliant all of the time!

I have two WSDLs that I would like to generate into apex classes using the "Generate from WSDL" button in Salesforce, but I'm getting an initial error that the schema is incorrect.

Unsupported schema type: {http://www.w3.org/2001/XMLSchema}anyType

Open in new window

I have limited knowledge of working with WSDL files and wanted to see if this is an error that can be fixed or if the WSDL cannot be converted to an apex class due to types that are simply not supported in the apex language.

If so, are there other alternatives to create the apex class/methods needed? Or, is it just a manual process?

I've attached the two WSDL files saved as flat files.

Thanks for any help.

I have a webservice that I,m trying to apply a custome security, when I try to call the service it display the following error:


At least one security token in the message could not be validated.

To add the security I modify the service config file:

[b][b]<services> <service name = "WcfService1.Service1"> <endpoint address="" binding="customBinding" bindingConfiguration="customBindingOasis" contract="WcfService1.IService1"> <headers> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <wsse:UsernameToken> <wsse:Username>USERNAME</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">PASSWORD</wsse:Password> </wsse:UsernameToken> </wsse:Security> </headers> </endpoint> </service> </services> <bindings> <customBinding> <binding name ="customBindingOasis"> <security authenticationMode="UserNameOverTransport" includeTimestamp="false" messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10"> <secureConversationBootstrap /> </security> <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16" messageVersion="Soap12" writeEncoding="utf-8"> <readerQuotas maxDepth="32"
Hi, I'm trying send to using SOAP to data,but it's keep sending the same value. I created array ,but didn't work

My code
OMS.OfferOrdered oOfferOrdered = new OMS.OfferOrdered();
            newOrders.Offers = new OMS.OfferOrdered[TotalNumberLine];
            OMS.OfferIDHeader oOfferIDHeader = new OMS.OfferIDHeader();
            OMS.OfferID oOfferID = new OMS.OfferID();

  while (reader.Read())

 newOrders.Offers[i].Offer.Header.ID = reader["OfferHeaderID"].ToString();

Open in new window

Web services  Code

  public partial class OfferOrdered : PMObject {
        private OfferID offerField;


public partial class OfferOrdered : PMObject {
        public OfferOrdered[] Offers {
            get {
                return this.offersField;
            set {
                this.offersField = value;
public partial class OfferIDHeader : PMObject {
        public string ID {
            get {
                return this.idField;
            set {
                this.idField = value;
 public OfferIDHeader Header {
            get {
                return this.headerField;
            set {
                this.headerField = value;

Open in new window

Any idea much appreciated. Just want to know why is keep recording last number in the all the array.

For example

if in the order having ID 500,800,900.
It will keep saving in the array 900 for all the array[0],array[1] and  array[2]

MAny Thanks
I've been tasked with updating remote MS SQL database tables. I'd like best ideas for utilizing our IBM i to do this. I'm primarily and ILE-RPG, RPG Freeform programmer, but have worked using RPG-XML (which we have) and consuming  web services via a local MS SQL database. I'm also familiar with SQLLERPG to a degree.    

I have access to 'data source', 'Initial Catalog', 'User ID', and 'password' for the remote database tables.

All ideas are welcome and will rewards points accordingly.


Phil Knox

Currently, I am working on a .net web application(Customer Portal)  that has a html5, angular 2.0 and web api controller etc.
Since the database is very slow, downloading a year data to a PDF takes longer time(more than 2 min).
So planning to send it as a CSV files to the customer email address. No need to maintain a queue or database, since a maximum of  30 requests comes per day.

What is the best approach to do this?
I was thinking to write a separate window service.
But maintenance will be there.  We will be maintaining a seperate application.

Is there a way to add a service to the Customer portal web application and maintain as a single application?

I have this WCF service that works fine using soap1. I'm trying to change it to run in soap1.2 but I have not been able.

I have try changin diferents things in the webconfig.

First I change the basicHttpBinding for wsHttpBinding.  I also change the protocol , remove the soap1.1 and add the soap 1.2

How I can made that my WCF web service run in soap1.2?

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.