[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

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
Angular Fundamentals
LVL 12
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

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
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
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
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
Has Powershell sent you back into the Stone Age?
LVL 8
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

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
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
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
C# web service calling another .NET assembly using reflection
I use a web service to a run-time assembly call using C# Reflection.
The assembly is in Binary format in database. All records contains a binary data which is almost same in structure. It has a Start method in a class called 'MyAssembly'
First I loads assembly object using  the Binary data, then finds the type - MyAssembly from it and then calls a method 'Start'. The start will write the logs into a directory. This works entirely fine when we call from an executable. All executables goes into separate process ID and the results are getting.

Then calling the same step using a Web service hosted in IIS, the results are getting messed up. Simultaneous calls to the same method gets the results into different different calls.
Example: Method1 called using web service and the logs are writing into File1.
Method1 again called using different arguments and the logs are writing into File2.
When calling method1 two times at the same point of time using web service, gets the logs messed up, File1 details are showing in File2 and File2 are in File1. It is not only the logs issue bug also the execution are getting wrong that inner methods are not getting proper outputs and return values. Everything messed up.

When the web service is calling EXE program (Which is not allowed in so many conditions) - That is without finding out the method using reflection and then calling it, it just calls an exe program using …
0
We are doing migration from exchange 2010 to exchange 2016. I need to know how to migrate shared mailboxes , DL and other exchange web services or any other important information provided by any article will help
0
I'm getting the following error:
<soap:Fault xmlns:env="http://www.w3.org/2003/05/soap-envelope">
      <faultcode>env:Sender</faultcode>
      <faultstring>Invalid version of SOAP in the request. SOAP 1.2 must be used. </faultstring>
    </soap:Fault>

Open in new window


How do I pro grammatically or using a config file change the SOAP to 1.2?

I have tried putting this line on the interface file but does not seem to be working. @BindingType(javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING)

I'm currently call the service like this:
LoggingInInterceptor loggingInInterceptor = new LoggingInInterceptor();
            loggingInInterceptor.setPrettyLogging(true);
            LoggingOutInterceptor loggingOutInterceptor = new LoggingOutInterceptor();
loggingOutInterceptor.setPrettyLogging(true);

CORETransactionService service = new CORETransactionService();
CORETransaction port = service.getCoreSoapPort();

Client client = ClientProxy.getClient(port);
Endpoint endpoint = client.getEndpoint();

endpoint.getInInterceptors().add(loggingInInterceptor);
endpoint.getOutInterceptors().add(loggingOutInterceptor);

Map<String, Object> ctx = ((javax.xml.ws.BindingProvider)port).getRequestContext();

Open in new window

0
I'm trying to set the SOAP Request to 1.2.  So with some research I see that you can accomplish this using the following code.

Service service = Service.create(servName);
service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, ServerMisc.DOCLIT_CODEFIRST_URL)

Open in new window


Where do I get portName from?
0
I have a java web service that is supposed to start automatically when it is deployed.  For some unknown reason it does not.  I am seeking guidance on how to figure out why it is not starting automatically.  I am using jdk 1.8, jax ws 2.2.6, tomcat 8 on rhel 7.  Here is what I have in the web.xml file for the service servlet:
    <listener>
        <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
    </listener>
    <servlet>
        <servlet-name>MiscService</servlet-name>
        <servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>MiscService</servlet-name>
        <url-pattern>/MiscService</url-pattern>
    </servlet-mapping>

Open in new window


Is there something else I am supposed to do other than put the number 1 in the load on startup tag?  Everything that I have googled said that this is all I need to do.  My server admin guy is not much help and if there is something on the server side that needs to be done can anybody please tell me that.  If there is something else that I need to put in my code then please let me know.

I do not have this issue in the development or staging environments but I can say that the one difference in the production environment, which is where I am having this issue, is that the web service is served via a load balancer.  The request goes through one of two regular apache web server to tomcat.

HELP!!!
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.

I'm trying to connect to a service outside our firewall but on our servers and I'm getting the following error:

error
Here is the code:

Code
Not sure how I get around this? This is all new to me?

Thanks!
0
I have been asked to stand up a weighted search appliance for a company.  The decision was to use SOLR to create the search tool so they can use the associated REST API for searches and recommendations.

I'm am still beginning in SOLR and have to ask a basic architecture question.  I have a table with 220 elements, 130 Million record strong.  I grow 5 million a year.

Does this become a Hadoop solution?  or can this still be done with a single SOLR engine?  I need to know which direction to start with so I do this right

Thanks much.
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.
0
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" ?>
<configuration>
	<configSections>
		<section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
	</configSections>
	<microsoft.web.services3>
		<security>
			<binarySecurityTokenManager>
				<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" />
				</add>
			</binarySecurityTokenManager>
			<x509 storeLocation="CurrentUser" />
			<securityTokenManager>
				<add type="Microsoft.Web.Services3.Security.Tokens.EncryptedKeyTokenManager, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="http://www.w3.org/2001/04/xmlenc#" localName="EncryptedKey">
					<keyAlgorithm name="SHA2" />
				</add>
			</securityTokenManager>
		</security>
		<diagnostics>
			<trace enabled="true" input="InputTrace.webinfo" output="OutputTrace.webinfo" />
			<detailedErrors enabled="true" />
		</diagnostics>
		<policy fileName="wse3policyCache.config" />
		<messaging>
			<mtom clientMode="On" serverMode="always" />
		

Open in new window

0
After using apache and weblogic for more than 10 years(the last working module used is: mod_wl_22), I am ready to set up a replacement system with the newer version of the connector module (mod_wl_24) for our production.

I follow the official documentation from this link:

https://docs.oracle.com/middleware/1221/webtier/develop-plugin/apache.htm#PLGWL395

The server OS is:
root@server90 ~]# uname -a
Linux server90 4.1.12-94.3.9.el7uek.x86_64 #2 SMP Fri Jul 14 20:09:40 PDT 2017 x86_64 x86_64 x86_64 GNU/Linux

Open in new window

Apache version:
[root@server90 ~]# apachectl -version
Server version: Apache/2.4.6 ()
Server built:   Oct 19 2017 14:54:33

Open in new window

APACHE_HOME folder details
[root@server90 httpd]# pwd
/etc/httpd
[root@server90 httpd]# ll
total 8
drwxr-xr-x 2 root root   58 Mar 10 21:58 conf
drwxr-xr-x 2 root root  103 Mar 10 21:56 conf.d
drwxr-xr-x 2 root root 4096 Mar 10 21:42 conf.modules.d
drwxr-xr-x 2 root root 4096 Mar 11 15:31 lib
lrwxrwxrwx 1 root root   19 Feb 22 16:32 logs -> ../../var/log/httpd
lrwxrwxrwx 1 root root   29 Feb 22 16:32 modules -> ../../usr/lib64/httpd/modules
lrwxrwxrwx 1 root root   10 Feb 22 16:32 run -> /run/httpd
[root@server90 httpd]# 

Open in new window

I created a lib folder at the APACHE_HOME folder and copy all the lib files and this connection module(downloaded from Apache foundation website) into this folder
[root@server90 httpd]# cd lib/
[root@server90 lib]# ll
total 138808
-rwxr-xr-x 1 root root  6990875 Mar 10 21:00 libclntshcore.so
-rwxr-xr-x 1 root root  6990875 Mar 10 21:00 libclntshcore.so.12.1
-rwxr-xr-x 1 root root 58793741 Mar 10 21:00 libclntsh.so
-rwxr-xr-x 1 root root 58793741 Mar 10 21:00 libclntsh.so.12.1
-rwxr-xr-x 1 root root   409107 Mar 10 21:00 libdms2.so
-rwxr-xr-x 1 root root  1768370 Mar 10 21:00 libipc1.so
-rwxr-xr-x 1 root root   544150 Mar 10 21:00 libmql1.so
-rwxr-xr-x 1 root root  6747034 Mar 10 21:00 libnnz12.so
-rwxr-xr-x 1 root root   346242 Mar 10 21:00 libons.so
-rwxr-xr-x 1 root root    98521 Mar 10 21:00 libonsssl.so
-rwxr-xr-x 1 root root    72281 Mar 10 21:00 libonssys.so
-rwxr-xr-x 1 root root   567319 Mar 11 15:24 mod_wl_24.so
[root@server90 lib]# 

Open in new window

After that, I added directive for loading the module  into the $APACHE_HOME/conf/httpd.conf file:
[root@server90 httpd]# cd conf
[root@server90 conf]# ll
total 36
-rw-r--r-- 1 root root 11814 Mar 11 00:49 httpd.conf
-rw-r--r-- 1 root root 13077 Oct 19 17:55 magic
-rw-r--r-- 1 root root  4104 Mar 10 21:58 weblogic.conf
[root@server90 conf]# cat httpd.conf 
LoadModule weblogic_module /etc/httpd/lib/mod_wl_24.so

Open in new window

Then verify if this apache web server has included the dynamic sharing module: mod_so.c
[root@server90 conf]# apachectl -l
Compiled in modules:
  core.c
  mod_so.c
  http_core.c
[root@server90 conf]# 

Open in new window

the next step is to try to test the syntax of httpd.conf:
[root@server90 conf]# apachectl -t
httpd: Syntax error on line 355 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_wl_24.so into server: libonssys.so: cannot open shared object file: No such file or directory
[root@server90 conf]# 

Open in new window

it shows some error message:

Open in new window

0
I am new to webservices. I am working on a sample program on the following link
https://www.ibm.com/developerworks/webservices/tutorials/ws-eclipse-javase1/ws-eclipse-javase1.html
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.
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.