[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

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 developing a web application to to fetch data from 'https://api.ebay.com/sell/analytics/v1/traffic_report'

I've a ebay developer account with ClientId: MyClientId ClientSecret: MyClientSecret AppId: MyAppId

To achive this, I need a OAuth token

To get OAuth Token I do the following steps.

I browse the url bellow

https://signin.ebay.com/authorize?client_id=MyClientId&redirect_uri=RuName&response_type=code&state=analytics&scope=https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.analytics.readonly

It goes to

https://signin.ebay.com/ws/eBayISAPI.dll?VAppJanessa&reqinput=reqinput - auto generate

after sign in it redirects to 'Grant application access to MySiteDisplayName' page.

After I Agree it redirects to 'https://my_site.com/?state=analytics&code=code' I've preapared a post request after collecting the code

I've executed the post request using POSTMAN like bellow

Post URL: 'https://api.ebay.com/identity/v1/oauth2/token'

Headers:

cache-control: no-cache

Content-Type: application/x-www-form-urlencoded

Authorization: Basic Base64 value of 'MyClientId:MyClientSecret'

Body:

grant_type: authorization_code

redirect_uri: RuName

code: code returned from previous request

After post request I've got the result

{ "error": "invalid_grant", "error_description": "the provided authorization grant code is invalid or was issued to another client" }

Please tell me what is missing or wrong.
0
Big Business Goals? Which KPIs Will Help You
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Hi,

We have a HP PageWide Pro 477dw printer which we use for scanning and printing and have no problems with printing word or excel documents.

When we go to print a report from Linkedln using our Windows 10 Pro PC, we get a page printed out which states "PCL XL Error" with "Error: InsufficientMemory".

How do we resolve this problem?

Thanks,
Robbie
0
I need to convert the CURL POST command below to vba (access).  I'm very proficient with access vba but not anything web-based so any direction on learning materials would be also appreciated.  I found and modified an example that I thought might work (code below), but it just gives the error "ActiveX can't create the object.  Suggestions?

CURL COMMAND:
curl -X POST -H "Content-type: application/json" -H "Accept: application/json" -d '{"shop": "9999999999","client_code": "88888888888.","lastname": "Ender","phonenumber": "5555555559","vehicle_year": "1999","vehicle_make": "JEEP","vehicle_model": "something" }' http://somewebsite.com/api/customers

VBA CODE (Fails with error above):

Private Sub cmdCreateAutoTextCustomer_Click()
Dim sURL As String, sHTML As String
Dim oHttp As Object
Dim Body As String
'‘Add a reference to the MSXML type library
Set oHttp = CreateObject("MSXML3.ServerXMLHTTP")

'‘The website to post to
sURL = "http://somewebsite.com/api/customers"

'‘ The json string to send.
Body = "{""shop_number"": ""9729925026"",""client_code"": ""142KukK231k."",""lastname"": ""Ender"",""phonenumber"": ""5555555559"",""vehicle_year"": ""2009"",""vehicle_make"": ""JEEP"",""vehicle_model"": ""something"" }"

oHttp.Open "POST", sURL, False
oHttp.setRequestHeader ' "Content - type", "application / json" '
oHttp.setRequestHeader '"Accept”, "application / json"'

'‘Send the json
oHttp.send (Body)

'‘Server response.
sHTML = oHttp.responseText

0
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
I've messed up. Entered an incorrect string into the Web Services Configuration under ciphers and now the cPanel will not connect saying invalid connection. How do I get into the cipher section of the Web Services Configuration using SSH and command line please? This is the silliest thing I think I've ever done on a CentOS 6.x server - it's a live server so my clients are now not able to see their websites.

I tried to move the sites on the server to another server using the Transfer tool but that fails too, saying SSL connect attempt failed - unsupported protocol.

I can ssh into the server so I'm hoping that I can resolve the issue by using SSH from the command line.

Any urgent responses greatly appreciated.
0
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
Need to create a page in WordPress that would connect to the API and display a search form and list of items from an external API:

Example that needs to be achieved:

http://www.pharmachoice.com/health-advice/medical-conditions

Info about Webservices:

Conditions
Specification: http://webservice.mediresource.com/mridisease.asmx?WSDL

URL: http://webservice.mediresource.com/mriDisease.asmx?op=GetDiseaseInfo

Changeable Variables:
•      strDiseaseInput – any text string (ie. cancer, blood, nose, etc.)
•      intDiseaseID – disease id
•      strAlpha – letter of the alphabet (ie. a, b, c, etc.)

Set Variables
•      intChannelID = 0
•      intLanguageId = 0 (English) / 1 (French)
•      intCountryID = 0
•      strWsKey = {removed}
•      intCaptureOne = 0
•      intCaptureTwo = 0
•      intCaptureThree = 0
•      intCaptureFour = 0
•      intCaptureFive = 0

I have not had the chance to work with API's in the past, so any insight will be very helpful.

Thank you very much!
0
I am trying to reverse engineer someone else's Apache web server configuration setup.      

There are two RHEL 6 servers running 2.2 Apache web services.   Apache is being used to front-end a JAVA tomcat application.
On one server, the Apache log files are owned by the tomcat user.  
On the second server, the logs are owned by root.    

By corporate standards, the designated Apache log directory only allows 2 GB worth of data.   We exceed that on a regular basis and must route the logs to a subdirectory of the application and allow that application's log maintenance system to periodically archive the files.   However, the root owned log file permissions do not allow the tomcat user to perform cleanup maintenance.   Making the tomcat user the log owner resolves that problem.

ps aux show that both servers run apache using the apache user.    


I've looked in httpd.conf (and secondary files included by it)  and logrotate.d and cannot find a config file entry which explains the difference in log owner.   Can someone point me to a likely suspect?   The tomcat application's documentation does not address this problem.

Thank you.
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
Identify and Prevent Potential Cyber-threats
Identify and Prevent Potential Cyber-threats

Become the white hat who helps safeguard our interconnected world. Transform your career future by earning your MS in Cybersecurity. WGU’s MSCSIA degree program was designed in collaboration with national intelligence organizations and IT industry leaders.

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
Experts, I am looking for a paid CA Devtest Service Virtualization tutorial online. The tutorial offered by CA requires me to provide a company email address which I can't at the moment. Does anyone have information about any websites that offer the training? Any inputs appreciated.
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
I am setting up an integration with a third party.   They already have an existing POST to a former affiliate, so I ask them to just put my URL in there and hit our site.  I figured I would just deserialize the JSON and see what comes in, then code to that.  

So I created a   index.cfm file (Coldfusion 11)  on    www.mysite.com/api/order/    

The index.cfm file does nothing but email me a CFDUMP of the URL and FORM variables.
I gave the URL to the company and they hit it.   I receive the email and both CFDUMPs are empty structures.   No URL variables, no FORM variables.

They say they are doing a POST call to the site.   And are using this path:     www.mysite.com/api/order/   

They have hit it multiple times, they get a 200 OK response.   But each time, my mailed dump show empty values even though they are sending JSON over.

What am I missing?    What do I have to do differently to see the data they are sending?

Thanks!
0
I wrote a web service in delphi (10.2.3), when I try to import the wsdl generated by the service with wsimport I get some errors like:

  [ERROR] undefined simple or complex type 'soapenc:Array' 

Open in new window


 How can I avoid these errors?

Attached the wsdl file of the service
 wszeus.wsdl.txt
0
Looking for a way to automatically add Google calendar events from a website that is filtered for my state.  This Website Events Page    

I have looked into IFTTT, and general google searches and have not found anything thus far.   I have IT scripting/automation background but have little experience in this realm.  Looking at the page through the developer tools in chrome, I didn't see an easy way to pull the data.

Is there a tool or way to pull this data, perhaps coupled with an online tool such as IFTTTT, that would create /update events in a secondary calendar in google?
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
Increase Security & Decrease Risk with NSPM Tools
Increase Security & Decrease Risk with NSPM Tools

Analyst firm, Enterprise Management Associates (EMA) reveals significant benefits to enterprises when using Network Security Policy Management (NSPM) solutions, while organizations without, experienced issues including non standard security policies and failed cloud migrations

sample.phpRunning, or utilising PHP scripts from VB6.

I have a large VB6 application which I developed over many years, and has been operating for many many years now.

My software has no issue consuming Web Services using MSXML2 to call various XML and JSON feeds.

However, in this instance, I need to communicate back and forward, and I'm slightly stumped as to best way to move forward. I've been presented with a PHP code which (a) has a login function to get a authorisation code, and (b) using that authorisation code, I need to send variables to submit a transaction, which supposedly will return a response.

I've attached the basic (modified) PHP script, and I'm looking for "nudges" in the right direction. The variables needed to pass to the login function, and order function are contained in my vb6 software.

Much Appreciated any assistance.
0
Is there any open source tool to perform a web service load test?
0
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
can anyone explain how to create REST API using PHP
0
We have an own PKI.
I have created a new certificate for some web services.
I just want to get rid of the cert warnings when I open the site.

When I open the site with IE all is fine and no warnings.
But with CHROME I still have this warnings.

Do you know what I can do ?
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.