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 would like to deploy an old asmx web service to azure from visual studio 2017.  Need to deploy the database as well. I can create the database using sql and populate it using sql if that is easier.  Please advise best recommendation.  Thanks in advance.
0
Ensure Business Longevity with As-A-Service
Ensure Business Longevity with As-A-Service

Using the as-a-service approach for your business model allows you to grow your revenue stream with new practice areas, without forcing you to part ways with existing clients just because they don’t fit the mold of your new service offerings.

Simply put, we are trying to allow Exchange Web Services to connect to Outlook mailbox calendars to our Intranet.  The account we are using is a domain admin, but we are still getting the following error in the log;

Exchange Web Service connection failure: The remote server returned an error: (401)Unauthorized

I don't have a lot of experience with this process, so any help would be appreciated.
0
Good morning,

I'm looking for best practices on hardening Exchange 2013 Security HTTP Response Headers.For Example:  Security HTTP Response Headers

X-Frame-Options
Strict-Transport-Security
X-Content-Type-Options
X-XSS-Protection


There is a lot information for IIS, but I would like to know  specifically for securing Exchange web services. From I read if is not implemented correctly it can cause mail connectivity issues.

Thank you!
0
I am facing Problem when converting xml file to soap message for making a call to web service attaching my code and request  

following is the error

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:wsdl="http://xmlns.qtel.com.qa/B2B/WSDL" 
xmlns:par="http://www.tibco.com/namespaces/bc/2002/04/partyinfo.xsd">
   
   <soapenv:Header>
      <wsdl:TxInfo>
         <wsdl:Created>2018-06-10T11:07:20.953+03:00</wsdl:Created>
         <wsdl:Source>POS101</wsdl:Source>
         <wsdl:Lang>EN</wsdl:Lang>
      </wsdl:TxInfo>
      <par:PartyInfo>
         <from>
            <name>RQ</name>
         </from>
         <to>
            <name>Qtel</name>
         </to>
         <operationID>Qtel.Gateway/1.0/CheckLineStatus</operationID>
         <operationType>syncRequestResponse</operationType>
         <transactionID>RQJAV270220190000000010</transactionID>
      </par:PartyInfo>
   </soapenv:Header>


   <soapenv:Body>
      <wsdl:CheckLineStatusRequest>
         <wsdl:Request>RQ</wsdl:Request>
      </wsdl:CheckLineStatusRequest>
   </soapenv:Body>
</soapenv:Envelope>
ContentDescription >> null
Soap Header        >> [soapenv:Header: null]
Soap Part          >> com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl@37f8bb67
SOAP Body          >> [soapenv:Body: null]

Open in new window

SoapEnv.java
sample_rq.xml
0
Hi Experts,

Can you please share me the solution in C# to upload the document and file information to another system by using the restful request .

I have following :

1) Url ( They provided the service url to upload the documents)

Regards,
Kumar
IMG-20190220-WA0051.jpg
0
Hi Experts,

I need to help on writing the C# code develop a following solution.

Basically my requirement is to export the files to another application through restful web-service call (POST).

They provided following  :
URL ( Insert document service )
its restful web service call  - POST

They are expecting the request  multipart/Mixed  with json structure.

Please let me know if any questions.

Regards,
Kumar
1
Hi Experts,

I need help on restful web service testing in the soap UI.

Request type : POST

How to add the json structure in the multipart/mixed request to test in the soup UI.
in the soup UI - we have the media type - any one we can choose from the drop down.. but is there any way that we can pass json structure in the multipart/mixed request .

Let me know if you have any questions.

Regards,
Kumar
0
Hi Experts,
I need a help to write the code in C#
how to connect the restful api in the C# code.
I have the restful url and credentials.

Can you please share me the sample code .

Regards,
Praveen
0
Using VBA - I need to write a REST/POST command with JSON parameters.  However, I can't seem to find a simple example that I can follow.  Does anyone have anything?
0
I install the service using the service.bat /catalina and it shows up in services.msc just fine, but whenever I go attempt to start it, even with domain admin or local admin rights, it errors out, and eventlogs are useless because there is next to zero information on the actual root cause of why it won't start...


service won't start
0
CompTIA Security+
LVL 13
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

how to use copyright symbol and trad mark symbol in rest api call (I need to pass  one of the Json parameter )

I need to get it in Java code and save the values in DB .

Any one have idea on this ??
0
Need all steps to configure TOMCAT to run on HTTPS. I tried to use SELF signed cert and got errors.

I am trying to access a rest service from TOMCAT, the rest service is:

https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=MSFT&outputsize=full&apikey=DEMO

I am accesing this service from my self signed tomcat https running on port 8443 and did not have any luck

Here is the error message:


Type Exception Report

Message I/O error on GET request for "https://www.alphavantage.co/query": sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception
org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://www.alphavantage.co/query": sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX…
0
I am stuck with the following problem:

What I am trying to achieve:
1. Create a application that generates webservices on the fly
2. Deploy these as individual services in JBoss Fuse.
    Package these as OSGi bundle to deploy in JBoss Fuse server, using Apache CXF framework (This uses Apache Felix)
3. Call these Web Services
    a. Individually
    b. Aggregate / Combine output from multiple web services, create a new web service and deploy this in JBoss Fuse


The issue I'm, facing:
I get the following errors and warnings during deployment of 3 b, i.e. the new web service:
    Errors
     org.apache.felix.scr.impl.manager.DependencyManager.getServiceObject(DependencyManager.java:2012)[54:org.apache.felix.scr:1.8.2]
     org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:943)[org.apache.felix.framework-4.4.1.jar:]

     Warnings
     org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4445)[org.apache.felix.framework-4.4.1.jar:].
     org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)[org.apache.felix.framework-4.4.1.jar:]


I have posted this on stackoverflow, jboss developer forums and raised issues in redhat but no responses on this query.

Please find summary of files attached

1. Blueprint :- The blueprint container is a dependency injection framework that simplifies interaction with the OSGi container. In particular, the blueprint container …
0
i want to send a video to my friends and know how many minutes did every one of them watch of the video without the need to ask them !!!!!!
even if they don't have accounts for the used video streaming service like mark them using their public ip(s)
note: i'd make my video available for the ones that have the link only !!
0
I get the WCF error "{"The remote server returned an error: (403) Forbidden."} The HTTP request was forbidden with client authentication scheme 'Anonymous'." when using basicHttpBinding with Transport security and certificate credential. My service is in amazon ec2 instance and my client app remotely connect to it over the internet. I am able to connect to the wcf service if I my Transport credential is set to "None" in both the web.config of the service and app.config of the client. My service certificate is like "www.example.com" is installed on amazon ec2 "local machine store" and "Personal Folder". My client app certificate is just a self-signed certificate which I installed to its "local machine and Personal Folder" and also to the "Trusted People store" in the amazon ec2 instance where my wcf service is. I have also setup "https" to my IIS site bindings and I can reach the site through like "https://www.example.com"

Below is the web.config, app.config, and the code I have on the client app.

Service Web.config:

    <?xml version="1.0"?>
    <configuration>
   
      <system.web>
        <compilation debug="true" targetFramework="4.0" />
        <customErrors mode="Off"/>
      </system.web>
      <system.serviceModel>
       
       <bindings>
          <basicHttpBinding>
            <binding name="basicHttpBinding_Config" >
              <security mode="Transport">
                <transport clientCredentialType="Certificate"/>
              …
0
Hi Expert
I have added the web service to the Class Library file and created the DLL file.
so my issues are when I added to another project to this DLL file the web services classes method is can call from DLL file.
I need to hide the web service method from the new project. I need to allow only a few methods I have created.
How to do that.if any idea much appreciated.
0
Whats is the best too for Web services Testing Tool?
REST and API Testing
I'm planing to by Smart bear.Any idea is appreciated.
Company happy to pay for that.
0
Dear Experts,

I have a brief idea of Amazon Web Services.

I know that you create  an instance: virtual server/PC in the cloud.

The wizard is there to guide and you have to generate and download the key pair in order to access it.

I also know that S3 bucket is used to store the backup of Amazon EC2 instance, but where can I get information on how to do the backup to the S3 bucket using GUI instead of CLI?
0
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
OWASP: Avoiding Hacker Tricks
LVL 13
OWASP: Avoiding Hacker Tricks

Learn to build secure applications from the mindset of the hacker and avoid being exploited.

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

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.