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

Trying to get a session code response from the Betfair site using VB6. My software, which I've written and been using in a particular industry for 20 years, therefore huge amount of code, so trying to do it through VB6, and I've done other XML feeds using the Web Service, which are working really well.

So.... the issue is, i make a call to the site, and the return I get is HTTP ERROR CODE 400 through the response text.

Part of the process, required I create a certificate, using OPENSSL , which worked fine, and the certificate uploaded to my test account on Betfair, and the account has been enabled for access. I've also sent the P12 Key to my certificate store on my local Windows 7 (32 Bit) development computer, which allowed the call to go through without any "Certificate Required" prompts, so appears to get through that part. However, once through the response coming back is "HTTP ERROR CODE 400", in the response text. So it's not making my code fall over in any way, just not returning a session key, which is obviously required to proceed further.

The code is as follows, of which a username and password string is passed to the function from a login form.

Public Function GetBetfairSessionID(sUserName As String, sPassword As String) As BetfairSessionInfo
    Dim myMSXML As MSXML2.XMLHTTP60
    
    Dim AuthURL As String

    AuthURL = "https://identitysso.betfair.com/api/certlogin"
    Set myMSXML = CreateObject("MSXML2.ServerXMLHTTP")
    
    

Open in new window

0
Simple Misconfiguration =Network Vulnerability
Simple Misconfiguration =Network Vulnerability

In this technical webinar, AlgoSec will present several examples of common misconfigurations; including a basic device change, business application connectivity changes, and data center migrations. Learn best practices to protect your business from attack.

Hello Experts
Need to send and receive zip files using web services.
using net visual basic
Regards
0
Hello Experts,
This is the first time I am going to use WEB SERVICES
I have to send one or more XML files inside a folder that is zipped.

and I have a URL address... a username and a password.

also got a Digital certificate and the public key is already uploaded and properly registered.

Can you send me a simple example source code in
visual basic or visual c# on how to do this?

Regards!
0
Microsoft NAV codeunit fails to run when making an external web services call
“A call to System.Xml.XmlDocument.Load failed with this message: Root element is missing”
The web services URL is otherwise working returning XML response through any other means

Please guide through troubleshooting or provide with helpful advice what needs to be changed to make the code work

doc1.pdf
0
I believe my service reference is using Triple DES encryption to communicate with one of our vendor's web services. The server we initiate the call from cannot have the 3DES cipher enabled due to PCI constraints.
How can I set my service reference in C# to use RSA instead?
0
Hybrid Setup with AD Sync.
On-Premise is Exchange 2010

I've created some shared Mailboxes in Exchange Online.  I'm using Exchange Web Services (Managed EWS API) to access the shared mailbox.  My Code is working great and Processing the mail that is set the shared Mailbox without any issues.   I've thrown all types of mail at it and it seems to handle all kinds of cases for different Items in the folder.

I have three of the Shared Mailboxes I'm accessing.   One only gets 1 email a Day, another gets several hundred emails on Tuesdays and the 3rd gets maybe 20 a day.

I've installed the code so it runs Every 5 Minutes and looks for mail in the Shared Mailbox. Each time it runs it opens a separate connection to each of the mail boxes in order.   Now that I'm running it every 5 minutes, I'm getting Errors saying the Mailbox is unavailable.  This is happening with all three Shared Mailboxes at different times of the day.

These are the Various Errors I'm seeing:

Mailbox move in progress. Try again later., Cannot open mailbox.
Active Directory is unavailable. Try again later.
Exchange Web Services are not currently available for this request because none of the Client Access Servers in the destination site could process the request.
The request failed. The operation has timed out

Open in new window


I can trap these Errors and Exit my code so it does not cause an Exception, though I'm curious as to why its happening?  It happen maybe 3-5 times a day though not on every mailbox. 3-5 spread across all three mailboxes.

Is Exchange Online/O365 Moving my mailboxes randomly throughout the day?

Thanks!
0
Hi,

Received error alert as follow:

Alert: AD Op Master is inconsistent
Source: HQAD1
Path: HQAD1.SMRTNET.ADS
Last modified by: System
Last modified time: 7/23/2018 4:42:21 PM Alert description: While running 'AD Replication Partner Op Master Consistency' the following consecutive errors were encountered:

The script 'AD Replication Partner Op Master Consistency' failed to execute the following LDAP query: '

<LDAP://cldadsvrp1.smrtnet.ads/CN=Schema,CN=Configuration,DC=SMRTNET,DC=ADS>;(&(objectClass=dMD)(fSMORoleOwner=*));fSMORoleOwner;Subtree'.  

The error returned was 'Table does not exist.' (0x80040E37)

The number of FSMO Role inconsistencies registered so far has exceeded the configured threshold.
The FSMO Role inconsistency threshold (failure threshold) is 4


Encountered issue on the AD1 for 2003 server users unable to ping to AD1 with follow error


event id: 1108
Active Directory Web Services cannot be started due to a locked or invalid configuration file.
 The error returned was: Unrecognized configuration section system.serviceModel. (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 134)

Services of Active Directory Web Services is unable to start. See attached error.

Tks.
ad1_adw.jpg
0
im getting this error message in my ruby on rails blog app and i have no idea why

this is my controller file:

class PostsController < ApplicationController
  def index
    @posts=Post.all.order("created_at DESC")
  end

  def new
    @post=Post.new
  end

  def show
    @post=Post.find(params[:id])
  end

  def create
    @post=Post.new(post_params)
    if @post.save
      redirect_to @post
    else
      render "new"
    end
  end

  def edit
    @post=Post.find(params[:id])
  end

  def update
    @post=Post.find(params[:id])
    if @post.update(params[:post].permit(:title, :body))
      redirect_to @post
    else
      render "edit"
    end
  end

  def destroy
    @post=Post.find(params[:id])
    @post.destroy
    redirect_to posts_path
  end

  private

  def post_params
    params.require(:post).permit(:title, :body)
  end

end

Open in new window


and this is my edit file: (i get the error when trying to delete a post and the link to the destroy path is on my edit page)

<font color="#BD004B">
    <h1 class="smallBorder">Edit Post</h1>
</font>
<br/>
<hr size="10" width="auto" color="#BD004B">

<%=render "form"%>

<ul>
  <li>
    <%=link_to "Delete", posts_path(@post), method: :destroy, data:{confirm:"Are you sure you want to delete this post?"}%>
  </li>
</ul>

Open in new window

0
Recently got frustrated trying wsimport on several old SOAP sites. Found out its all been deprecated so no SOAP sites to run wsimport on.
Can anyone give me a few just to see that wsimport is working as I expect it should?
I would appreciate a chance to test these things also .
So other than web pages processing JAX-RS(Restful) links exactly what if anything is equivalent to WSDLs in the JAX-RS world
I mean put, post, get delete insert? httpd protocol.
Help ASAP
0
Is there any open source tool to perform a web service load test?
0
Become a Microsoft Certified Solutions Expert
LVL 12
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

I am very new to asynchronous programming, I am using the amazon web services SDK (AWSSDK) in C#. More precisely the AWSSDK.SimpleMail SDK  

I am creating a function to run on the AWS Lambda function platform. This requires the use of .NET Core which apparently means everything needs to be asynchronous.

I am trying to send an email using the SAWS Simple Email service. There is a method in the AmazonSimpleEmailServiceClient class called SendMailAsync

I am not sure if I am calling this method correctly as it doesn't seem to work.  I'm getting a Task Cancelled Response.

I have attached my function code and here is the output of a log I have captured.

If anyone can help me out and point me in the right direction, that would be appreciated.

Async Error message: System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at System.Net.Http.HttpClient.<FinishSendAsyncUnbuffered>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at 

Open in new window

0
I created a web service with jax-rpc 1.1 for a QCM. The main class is defined as:

public class QCM_WebService  implements Serializable{

    public void fillQcm (QCMUserResponse [] userResponse) {

    }
 }
Class QCMUserResponse:

class QCMUserResponse implements Serializable{
     private int questionID;
     private QcmResponse [] qcmResponseList;    
 }
Class QcmResponse:

class QcmResponse implements Serializable{

    private int responseID;
    private String response;
}
This is an example of SoapUI request generated by the WSDL of this service:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
   xmlns:ws="http://org.example" xmlns:qcm="http://com.Test">
  <soapenv:Header/>
 <soapenv:Body>
  <ws:fillQcm>
     <!--Zero or more repetitions:-->
     <ws:userResponse>
        <qcm:questionID>14</qcm:questionID>
        <!--1 or more repetitions:-->
        <qcm:qcmResponseList>
           <qcm:responseID>1</qcm:responseID>
           <qcm:response>true</qcm:response>
        </qcm:qcmResponseList>
        <qcm:qcmResponseList>
           <qcm:responseID>2</qcm:responseID>
           <qcm:response>false</qcm:response>
        </qcm:qcmResponseList>
            <qcm:qcmResponseList>
           <qcm:responseID>3</qcm:responseID>
           <qcm:response>false</qcm:response>
        </qcm:qcmResponseList>
     </ws:userResponse>
    </ws:fillQcm>
 </soapenv:Body>
</soapenv:Envelope>
When I try to test…
0
I am considering building an app  which one of the functionality is to connect to the clients bank accounts and obtain some necessary information . How can I connect to the bank account?Do most banks expose web services to consume?What about security?And what about the legality of all this?sorry I am new to this area I have been programming for a while now though but I have never built a web app where you are required to connect to the bank accounts.Thanks in advance
0
Our HRIS system is hosted by Ultimate Software.  I have a need to pull via their WEB API our employee database from them.

Their API works great using C#.  No problems.

The question I have is regarding WEB API pagination.  We have over 6,000 employees, but to get the records, I have use paging properties, which means I can only get those records in chunks of about 100 each.  This is REALLY untenable for a production system.

Does anyone know how I can pull an unlimited number of records from a WEB API call using C#?

The code snippet below is where I have to set the query and page properties to make the API work.  I can post the whole program I used to test with, if it will help.

Thank you in advance,

                   // Create a query object to find the employees:
                    var employeeQuery =
                        new EmployeeQuery
                        {
                            // Set one or more properties to search:
                            LastName = "LIKE (g%)",
                            FullOrPartTime = "=F",

                            // Set paging properties:
                            PageSize = "10",
                            PageNumber = "1"
                        };

Open in new window

0
I'm using EncryptedXML to decrypt a SOAP message.  I'm loading the certificate manually and trying to decrypt the message.  But I'm getting the following error:

Unable to retrieve the decryption key.

Open in new window


Here is my code:
stream.Position = 0;
var doc = new XmlDocument();
doc.PreserveWhitespace = true;
doc.Load(stream);

var clientCertEnc = new X509Certificate2(@"C:\certificates\xxxxxt.pfx", "xxxxxx");
var privateKeyRSAA = (RSACryptoServiceProvider)clientCertEnc.PrivateKey;

var exml = new EncryptedXml(doc);
exml.AddKeyNameMapping("KeyIdentifier", privateKeyRSAA);
exml.DecryptDocument();

Open in new window


Here is my xml:
<s:Envelope 
        xmlns:s="http://www.w3.org/2003/05/soap-envelope" 
        xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
        <s:Header>
            <VsDebuggerCausalityData 
                xmlns="http://schemas.microsoft.com/vstudio/diagnostics/servicemodelsink">uIDPo4tYpt6X40FEk+VSAe5mc8MAAAAAP497cBuXfk+uFIOY80O0iuLtIW56q7hLktgVYPhbnHMACQAA
            </VsDebuggerCausalityData>
            <o:Security s:mustUnderstand="1" 
                xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
                <o:BinarySecurityToken u:Id="uuid-10490fb0-8ee0-4a4c-a8db-77242c9a3b7f-2" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" 

Open in new window

0
I'm using C# to call a Java Webservice.  Fiddler gives me a status of 200. So my call to the service is good.  But something in the .NET does not like my MTOM message.  Any ideas?  Here are all the details.  

I'm getting this error:
MTOM messages must have type 'application/xop+xml'.

Open in new window


The stack trace says:
Server stack trace: 
   at System.ServiceModel.Channels.MtomMessageEncoder.MtomBufferedMessageData.TakeXmlReader()
   at System.ServiceModel.Channels.BufferedMessageData.GetMessageReader()
   at System.ServiceModel.Channels.BufferedMessage..ctor(IBufferedMessageData messageData, RecycledMessageState recycledMessageState, Boolean[] understoodHeaders, Boolean understoodHeadersModified)
   at System.ServiceModel.Channels.MtomMessageEncoder.ReadMessage(ArraySegment`1 buffer, BufferManager bufferManager, String contentType)
   at System.ServiceModel.Channels.HttpInput.DecodeBufferedMessage(ArraySegment`1 buffer, Stream inputStream)
   at System.ServiceModel.Channels.HttpInput.ReadBufferedMessage(Stream inputStream)
   at System.ServiceModel.Channels.HttpInput.ParseIncomingMessage(HttpRequestMessage httpRequestMessage, Exception& requestException)
   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
   at 

Open in new window

0
I am requesting a web service through an xml, I verify the answer with the Fiddler tool and it returns an Http 200, but the answer as such does not return the information that the web service should send me but it returns the wsdl of the same. I do not know if you are making any mistakes in the programming, please help me.

private void SendXmlToWebService()
        {            XmlDocument xmlDoc = new XmlDocument();
            xmlDoc.Load(@"C:\inetpub\wwwroot\WsSAt\XmlPeticion.xml");
            StringBuilder rawXml = new StringBuilder();
            rawXml.Append(GetXmlString(xmlDoc));
            PostXml("http://10.181.236.3:9094/axis2/services/SISE_IDC?wsdl", rawXml.ToString());
        }

        static string GetXmlString(XmlDocument xmlDoc)
        {
            StringWriter sw = new StringWriter();
            XmlTextWriter xw = new XmlTextWriter(sw);
            xmlDoc.WriteTo(xw);
            return sw.ToString();
        }

        public void PostXml(string url, string xml)
        {
            byte[] bytes = Encoding.UTF8.GetBytes(xml);
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
            request.Method = "POST";
            request.ContentLength = bytes.Length;
            request.ContentType = "text/xml; charset=utf-8";
            request.Host = "10.181.236.3:9094";
            request.Accept = "gzip,deflate";

            using (Stream requestStream =
0
hi,
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.
Thanks,
0
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;

      hSystemStore = CertOpenStore(CERT_STORE_PROV_SYSTEM, 0, NULL, CERT_SYSTEM_STORE_CURRENT_USER,L"MY");
      if(hSystemStore == NULL)
      {
            ShowMessage("Not Opened the MY system store.");
            return;
      }

// Get a certificate that has the string "Full Test Cert" in its subject.
      if(pDesiredCert)
            CertFreeCertificateContext(pDesiredCert);

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

      if(hSystemStore)
            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.");

      if(pDesiredCert)
            …
0
Newly released Acronis True Image 2019
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

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?
0
Are there any user's out there familiar with CT FreitRater v 3.0 and interacting with the web service via JSON?
0
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,
)
0
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).
0
I SHARE YOU PART OF MY CODE:

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

0
Hi,

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