[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

We have a web application that uses an external SMTP server to send emails.
We add CNAME records on our client's domain names so that the SMTP can send emails on their behalf. We don't have any issues so far, just with one of our clients in one specific situation.

If the application sends an email with our client's domain as the FROM to any email address other than their own domain, the email goes out without any issues.
If the application sends an email from any email address other than the client's domain and sends it to the clients domain, the email goes out without any issues.

BUT

If the application sends an email from an email address of our client's domain to another email address from the same domain, then the email doesn't even make it to the SMTP server. We checked the logs and there is no record of the email being processed.

What could possibly cause this?
0
Get Cisco Certified in IT Security
Get Cisco Certified in IT Security

There’s a high demand for IT security experts and network administrators who can safeguard the data that individuals, corporations, and governments rely on every day. Pursue your B.S. in Network Operations and Security and gain the credentials you need for this high-growth field.

Hello,

I generated soap web services using Eclipse JEE, which then I deployed ( .war) on Tomcat 7.0 on Centos 7 -  this works fine.
The aim is to insert a data received in an xml and insert it to an Oracle table.

I've added the below code to a java class file, which meant to do some insert statement ( which is valid ) , with hardcoded values, just to prove I can do it.

    public void InsertValue(String MessageId, String value){
    	try{

    	Connection con=null;
    	Class.forName("oracle.jdbc.driver.OracleDriver");


    	con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xxx", "xxx","xxx");
    	Statement s = con.createStatement();

    	s.execute("INSERT INTO ping_message (message_id,dstamp) VALUES ('1',To_char(SYSDATE))");
    	con.setAutoCommit(true);
    	s.close();
    	con.close();
    	}catch(Exception e){
    	System.out.println("ERROR: "+e.getMessage());
    	}
    	}
    

Open in new window


Unfortunately, this does not work. I wonder if this is because of the java code or Tomcat needs some db drivers in order to establish a connection the database ?

btw, my java skills are being developed as I type this :)
0
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
Hi Guys,

I wonder if anyone has any experience in calling an oracle procedure/function using APIs ?
I've been reading about JDeveloper, APEX and Oracle App server and I'm a little bit confused with all my findings and the best approach.
What I need is
1. receive a SOAP API call
2. Trigger an oracle function
3. Send a response back

I have already a web server running ( hosted web app - Apache-HttpClient). However, an oracle is on a different box.
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
Hi Exchange experts

i dont know how this has to be done so i need help here

we have our ERP system SAP and we need to make a changes about meetings or date and we need an automatic configuration between SAP and exchange calendars

that when the user in SAP change the data about meeting this changes will take effects in the email calendar

someone talk about something called exchange web services

which will use the web mail of exchange to do this changes

i don't know about this

plus if you have any other idea to meet such aim
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
SD-WAN: Making It Work for You
SD-WAN: Making It Work for You

As bandwidth requirements and Internet costs grow, businesses naturally want to manage budgets by reducing reliance on their most expensive connection types. Learn more about how to make SD-WAN work for your business in our on-demand webinar!

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
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
Problems using Powershell and Active Directory?
LVL 8
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

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

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.