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 am new to webservices. I am working on a sample program on the following link
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.
Become a Leader in Data Analytics
Become a Leader in Data Analytics

Gain the power to turn raw data into better business decisions and outcomes in your industry. Transform your career future by earning your MS in Data Analytics. WGU’s MSDA program curriculum features IT certifications from Oracle and SAS.  

Our company is moving some components to our internal cloud and I am working in a project and one of the task is to expose an existing legacy java class as soap web service. Can anyone please help me stir in the right direction? How can  I write a soap Producer on existing new class and methods? Should I write a new class and extend this class or should I write a subclass? What is the best  way  to approach  this?I  am new  to integration projects. The company is using  Mule  Esb as an integration solution? Also how Mule esb fitst together  with all this?I am new to  Mule  esb.
I am getting this exception message
Message = "You must write ContentLength bytes to the request stream before calling [Begin]GetResponse."

Here is my code (Partially)
GlobalOneResponse objCharge = new GlobalOneResponse();
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URL);
request.Method = "POST";
request.ContentLength = xmlString.Length; 
request.ContentType = "text/xml";
StreamWriter requestWriter = new StreamWriter(request.GetRequestStream(), System.Text.Encoding.UTF8);
WebResponse webResponse = request.GetResponse();
Stream webStream = webResponse.GetResponseStream();
StreamReader responseReader = new StreamReader(webStream);

responsedata = responseReader.ReadToEnd();                      
responsedata = responsedata.Replace(System.Environment.NewLine, null);

Open in new window

The bad line is highlighted here
I am using Spring Boot and want to create a client that uses SOAP1.1 as the SOAP VERSION.

I am not sure how to check my current SOAP version and how to switch it to SOAP1.1 for the client.

Does anyone have idea as I cannot find this online anywhere.........
I have an Oracle .dmp file (65 GB) that I have transferred to a remote Amazon Web Services RDS Oracle instance.  The file is an original export (pre version 10) and cannot be imported using the data pump (impdp) commands - unfortunately I also don't have the option to get the file exported using the data pump or I wouldn't be asking this question.  I am currently connected to the Oracle instance using SQLPlus on a windows machine at my home office.  I was able to create a linked server and transfer the file to the remote server into the data pump directory.  However where I am getting stuck is the imp (not impdp command) gives me a cannot open file for read error when I specify the following import command:

imp username/password@remoteserverinstancepath file='/rdsdbdata/datapump/dumpfile.dmp' touser='import_user' fromuser='export_user' log='C:\Temp\importlog.log'

I was able to start up the import from my machine using a the same file but in a local directory on my pc but this is has been running for almost a day and is going very slowly and I may need to abort this import as it looks like it will take days if not a week to complete.  My hunch is my file path is not lining up in the imp command and needs to identify the linked server somewhere in the path.  Unfortunately I cannot find any information on performing a remote import using the original imp commands.  Any help would be appreciated.

I found various tutorials on how to create a web server/web API (I think these are one in the same). The tutorials I found use C# to demonstrate the tutorial. I believe the tutorials assumed knowledge the student has an understanding of protocols in order to understand the tutorial such as XML, JSON, etc..

I've written code for 46 years, however, I have not kept up on protocols for web services/web APIs. I'm looking for a beginners tutorial on how to create a web service/web API for a web application. This code will specifically allow me to interact with UPS (United Parcel Service).

Any assistance is most welcome using VB.NET.

Much thanks,
David Bach
Excuse my ignorance on this subject but is there a standard used when creating a JSON object as a data-layer for a web application from a web service?  The part I don't understand is if I have a web service that returns data and the end result is to create a JSON object used as a  data-layer, Is it usually the Web application takes the data from the web service and creates the data-layer or is it the web service returns the JSON object complete? Or could it be either way?

only 1 user is having issues with OOF , it goes on and off on its own,

 ERROR WHILE running test email auto configuration: local autodiscover failed through SCP

I ran test outlook web services and found the result (attached)

RunspaceId : 99504627-2906-4b82-89a2-54456e84723f
Id         : 1012
Type       : Warning
Message    : XML>Unknown Node:OwnerSmtpAddress OwnerSmtpAddress Line:http://schemas.microsoft.com/exchange/autodiscover

RunspaceId : 99504627-2906-4b82-89a2-54456e84723f
Id         : 1012
Type       : Warning
Message    : XML>Object being deserialized: Microsoft.Exchange.Management.SystemConfigurationTasks.AutoDiscoverAlternat

RunspaceId : 99504627-2906-4b82-89a2-54456e84723f
Id         : 1012
Type       : Warning
Message    : XML>Element

While other users are not getting any errors.

I have a webservice that I,m trying to apply a custome security, when I try to call the service it display the following error:


At least one security token in the message could not be validated.

To add the security I modify the service config file:

[b][b]<services> <service name = "WcfService1.Service1"> <endpoint address="" binding="customBinding" bindingConfiguration="customBindingOasis" contract="WcfService1.IService1"> <headers> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <wsse:UsernameToken> <wsse:Username>USERNAME</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">PASSWORD</wsse:Password> </wsse:UsernameToken> </wsse:Security> </headers> </endpoint> </service> </services> <bindings> <customBinding> <binding name ="customBindingOasis"> <security authenticationMode="UserNameOverTransport" includeTimestamp="false" messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10"> <secureConversationBootstrap /> </security> <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16" messageVersion="Soap12" writeEncoding="utf-8"> <readerQuotas maxDepth="32"
Hi, I'm trying send to using SOAP to data,but it's keep sending the same value. I created array ,but didn't work

My code
OMS.OfferOrdered oOfferOrdered = new OMS.OfferOrdered();
            newOrders.Offers = new OMS.OfferOrdered[TotalNumberLine];
            OMS.OfferIDHeader oOfferIDHeader = new OMS.OfferIDHeader();
            OMS.OfferID oOfferID = new OMS.OfferID();

  while (reader.Read())

 newOrders.Offers[i].Offer.Header.ID = reader["OfferHeaderID"].ToString();

Open in new window

Web services  Code

  public partial class OfferOrdered : PMObject {
        private OfferID offerField;


public partial class OfferOrdered : PMObject {
        public OfferOrdered[] Offers {
            get {
                return this.offersField;
            set {
                this.offersField = value;
public partial class OfferIDHeader : PMObject {
        public string ID {
            get {
                return this.idField;
            set {
                this.idField = value;
 public OfferIDHeader Header {
            get {
                return this.headerField;
            set {
                this.headerField = value;

Open in new window

Any idea much appreciated. Just want to know why is keep recording last number in the all the array.

For example

if in the order having ID 500,800,900.
It will keep saving in the array 900 for all the array[0],array[1] and  array[2]

MAny Thanks
Free tool for managing users' photos in Office 365
Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

I've been tasked with updating remote MS SQL database tables. I'd like best ideas for utilizing our IBM i to do this. I'm primarily and ILE-RPG, RPG Freeform programmer, but have worked using RPG-XML (which we have) and consuming  web services via a local MS SQL database. I'm also familiar with SQLLERPG to a degree.    

I have access to 'data source', 'Initial Catalog', 'User ID', and 'password' for the remote database tables.

All ideas are welcome and will rewards points accordingly.


Phil Knox

I have this WCF service that works fine using soap1. I'm trying to change it to run in soap1.2 but I have not been able.

I have try changin diferents things in the webconfig.

First I change the basicHttpBinding for wsHttpBinding.  I also change the protocol , remove the soap1.1 and add the soap 1.2

How I can made that my WCF web service run in soap1.2?
Hi Experts;

I can send PHP Email from the command line connected to an Amazon Web Services EC2 instance configured with an Apache 2.4.2 server, PHP 7.0, and PHPMailer 6.01 through the AWS SES SMTP interface. I am unable however to send responses to an html form using PHPMailer to an Email address from the AWS website running on the same EC2 instance and server. Here is the code used to send PHP Email from the command line without any problems:

use PHPMailer\PHPMailer\PHPMailer;
require '/home/ec2-user/vendor/autoload.php';
$mail = new PHPMailer;

$mail->setFrom('address@example.com', 'Verified Email');
$mail->addAddress('Recipient@receiver.com', 'Recipient Name');

$mail->Username = 'Amazon SMPT credentials';
$mail->Password = 'Amazon SMPT secret Key';
$mail->Host = 'email-smtp.us-west-2.amazonaws.com';

$mail->Subject = 'Testing Amazon SES SMTP PHP Mail';
$mail->Body = '<h1>Email Test</h1>
    <p>This email was sent through the
    <a href="https://aws.amazon.com/ses">Amazon SES</a> SMTP
    interface using the PHPMailer.</a><br><br></p>';

$mail->SMTPAuth = true;
$mail->SMTPSecure = 'tls';
$mail->Port = 587;

$mail->AltBody = "Email Test\r\n This email was sent through the
    Amazon SES SMTP interface using the PHPMailer class.";

if(!$mail->send()) {
    echo "Email not sent. " , $mail->ErrorInfo , PHP_EOL;
} else {
echo "Email sent!" , PHP_EOL;

I need help with …
Hi All

I am in the process having exchange 2003 and  and exchange 2010 in co existence. All configurations have been done. After testing connections i found the error below
Your connection is not private ERR_CERT_AUTHORITY_INVALID
What do i have to do tpo get it to work

We will use the following
outlook anywhere
exchange web services
active sync
outlook web app
owa directory

Do i have to buy a certificate? If so which one. We will be adding a new domain to our exchange server as well

Appreciate a feedback
I am looking for an eConnect method that will add an Item Warehouse record,  I am currently doing this using GP Web Services call CreateItemWarehouse(), but we find this to be much slower than using eConnect.  Any help would be appreciated.

Thanks, Bob
I've been watchin a video from Amazon on AWS Direct Connect. I see that a direct connection is made from Amazon Direct Connect PoP to a router in a co-location facility. The from there there is a circuit (say 1Gbps or 10Gbps) to the enterprise itself. The presentation at turns talked about the carrier owning the (a?) router and the customer owning the router. In the diagram attached below - the device labeled "Customer Gateway" is generally owned and configured by the end customer/user of Amazon Web Services? Or is that more typically owned by the carrier that is providing the data circuit? And finally if the carrier owns that device do they configure it or leave that to the customer? Thank you for clarifying this point for me.
Hello experts,

I need to develop a system to be used by users from different locations, I think the best option to do it is AWS. I already saw some services of AWS but till now, I'm not sure how to start and what services I will need. This is the first time that I make a system to use a database on a cloud. All the systems and apps that I have made before are for local use only or to access thru a remote desktop connections or TeamViewer , so I use a server to host the data bases and the programs.

I will use vb.net and MySQL database but I think I need a more things like a Virtual Server, maybe VPN and other things.

Does anybody have done something like this?

Please I need an advice, I'm a little lost.

Thank you very much in advance.
I am try to connect to web services and this show that error:

ERROR App Error sin controlar ---> com.sun.xml.ws.client.ClientTransportException: HTTP transport error: java.net.ConnectException: Connection refused: connect
      at com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:132)
      at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:223)
      at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:145)
      at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:110)
      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1136)
      at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:1050)
      at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:1019)
      at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:877)
      at com.sun.xml.ws.client.Stub.process(Stub.java:463)
      at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:191)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:92)
      at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:161)
      at com.sun.proxy.$Proxy41.updateEmail(Unknown Source)
      at com.bancoexterior.sf.SF.actualizarMail(SF.java:73)
      at com.bancoexterior.SF.updateMail(SF.java:317)
      at com.bancoexterior.App.accion(App.java:253)
      at com.bancoexterior.App.main(App.java:140)
Caused by: …
Which is the best place to learn Tableau Online?
Get Certified for a Job in Cybersecurity
Get Certified for a Job in Cybersecurity

Want an exciting career in an emerging field? Earn your MS in Cybersecurity and get certified in ethical hacking or computer forensic investigation. WGU’s MSCSIA degree program was designed to meet the most recent U.S. Department of Homeland Security (DHS) and NSA guidelines.  

Hello experts,

I need to build a MySQL database on Amazon Web Services, the application will be made in vb.net, since this is the first time I'm going to use this service, one of the main objective for this project is to send emails using the contacts that will be stored in the data base.

Is there any service I an use or I have to code using another service from Amazon?

So, I'm looking for an expert advice before continuing.

This is very important for my client, so I really appreciate the help you guys can give me.

Thank you so much in advance.
Let's say I've bought a domain called "mynicedomain.org"

Now I want to have a mail service. Let's say office 365 or gsuite so I can have an email address called "ben@mynicedomain.org"

Beyond that I want to buy a web hosting (like GoDaddy) service to serve "http://mynicedomain.org".

Maybe I also want an intranet service hosted by AWS virtual machine at "http://wwwin.mynicedomain.org".

Can this be accomplished? If so how it works? Who is going to be nameserver for my domain?
This is the code:
    public static function callApiUpdate($hostname, $ip)
        $service_url = 'http://blablabla.com/api/updateDdns';
        $ch = curl_init($service_url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
        $payload = array(
            'hostname' =>  $hostname,
            'ip' => $ip,
        curl_setopt($ch, CURLOPT_HTTPHEADER,array('Content-Type: application/json')); 
        curl_setopt($ch, CURLOPT_POSTFIELDS,CJSON::encode($payload));
        $response = curl_exec($ch);
        if ($response === false) {
            $info = curl_getinfo($ch);

Open in new window

Whenever I enable sending the payload the server where the API is executed doesn't receive any call while if I don't send any payload (and modify the api on the receiver server) the called server does receive the call.

Any idea why this could happen or something I forgot to check?
i have the Microsoft Office 2003 Web Services Toolkit. and it created a new class clsws_CEMService
from http://www.pli.edu/public/CEM/Service.asmx?wsdl
need to create vba coding to use this webservice
I am currently hosting an API as an Azure App service. But I want to move it into my Virtual Machine and run it in IIS.
I already set it up as I would with any website but for some reason the page does not come up. Is there anything in specific I need to do to run the service?
I was wondering why I should use Amazon Web Services for a relational database instead of just running the database on the server.

The application is as follows - apps will be able to enter data into this database. PHP will be able to export a CSV file.

I was going to use cryptography to secure remote access from the app. Would this be more desirable than a static IP VPN?

I'm leaning towards just having the database run on the server.

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.