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

Hello,

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?
0
When ransomware hits your clients, what do you do?
When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot has fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.

I am currently developing a credit check app which uses web services and the response I get is in Json string format. I tried converting this to a Json object... however I was unsuccessful. I need to store this json result into an excel document. The json result is in the following format after desterilizing:

[
{
"Key": "CreditResult",
"Value": [
[
{
"Key": "ConsumerInfo",
"Value": {
"RecordSeq": "01",
"Part": "001",
"PartSeq": "01",
"ConsumerNo": "943599475",
"Surname": "TEST SURNAME",
"Forename1": "TEST NAME",
"Forename2": "",
"Forename3": "",
"Title": "MS",
"Gender": "F",
"NameInfoDate": "20170129",
"DateOfBirth": "20170101",
"IdentityNo1": "1234567891234",
"IdentityNo2": "",
"MaritalStatusCode": "",
"MaritalStatusDesc": "",
"Dependants": "00",
"SpouseName1": "",
"SpouseName2": "",
"TelephoneNumbers": "H(000)0000000 B(0000)0000",
"DeceasedDate": "00000000"
}
},
{
"Key": "LastAddress",
"Value": {
"ConsumerNo": "943599475",
"InformationDate": "20170911",
"Line1": "ABC",
"Line2": "",
"Suburb": "ABC",
"City": "ABC",
"PostalCode": "0000",
"ProvinceCode": "A",
"Province": "ABC",
"AddressPeriod": "00",
"OwnerTenant": "",
"AddressChanged": "Y"
}
}
],
[
{
"Key": "CreditScore",
"Value": {
"ConsumerNo": "943599475",
"PolicyFilters": [
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0"
],
"Indicators": [
{
"Type": "00",
"Score": "000"
},
{
"Type": "00",
"Score": "0"
},
{
"Type":…
0
I've embedded a tumblr blog in a website. Once the tumblr plug-in has initialised, the screen drops down by a couple of cms and I can't stop it.  Does anyone know why this happens.

Page is here:-

http://www.outstandingcarerating.co.uk/blog.html
0
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
ecp
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
0
Hi,

I hope that someone is able to help. The web development team have changed the current website that we are using. We have an order download application that integrated into mageno.

The issue is that I try to change the endpoint address to the following and I receive an error:

https://old.filofax.co.uk/index.php/api/v2_soap/index/?wsdl=1

Error message is attached(error1)

I have also tried to generate a proxy class using the same error message.

My issue is that I can browse to this URL ok.

I would appreciate any help. I have contacted the hosting company and they don't have any iea.

Best Regards,

Ross
error1.png
0
Capture1.JPGCapture2.JPGCapture3.JPG
I need help in setting up the Property Transfer for the Session String in the above example.  Can someone explain how the Property Transfer should be configured?
0
I have a piece of code that works fine in a windows executable but when I move the same code to a web services it fails with:
"The request was aborted: Could not create SSL/TLS secure channel."
see the below code where I wrote "FAILS"

               ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
                HttpWebRequest req1 = (HttpWebRequest)WebRequest.Create("https://thewebsite?wsdl");

                req1.ContentType = "text/xml; charset=\"utf-8\"";
                req1.Accept = "text/xml";
                req1.Method = "POST";

                System.Security.Cryptography.X509Certificates.X509Certificate2 x = new System.Security.Cryptography.X509Certificates.X509Certificate2("D:\\tlr\\TLR.crt", "");
                req1.ClientCertificates.Add(x);

                using (Stream stm = req1.GetRequestStream())
                {
                    using (StreamWriter stmw = new StreamWriter(stm))
                    {
                        stmw.Write(oRequest);
                    }
                }

                IAsyncResult asyncResult = req1.BeginGetResponse(null, null);

                asyncResult.AsyncWaitHandle.WaitOne();

                string soapResult = "";
                using (WebResponse webResponse = req1.EndGetResponse(asyncResult)) // FAILS!
                {
                    using (StreamReader rd = new StreamReader(webResponse.GetResponseStream()))
                    {
                 …
0
Trying to create an SSRS report that uses ArcGIS web service to convert coordinates to feet. No matter what I do I only get the method envelope and not the return data which is an array of geometry (x,y).
Attached is the wsdl file.
The report and the dataset have the parameters mentioned in the dataset.
This is my datasource:
http://myserver:myport#/arcgis/rest/services/Utilities/Geometry/GeometryServer
This is my dataset:
<Query>
<definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://www.esri.com/schemas/ArcGIS/10.3">
<Method Name="Project" Namespace="http://www.esri.com/schemas/ArcGIS/10.3/">
           <Parameters>
                <Parameter Name="inSR" Type="String"></Parameter>
      <Parameter Name="outSR" Type="String"></Parameter>
      <Parameter Name="geometries" Type="Array"></Parameter>
      <Parameter Name="transformation" Type="String"></Parameter>
      <Parameter Name="transformforward" Type="String"></Parameter>
      </Parameters>
   </Method>
<SoapAction>=http://myserver:myport#/arcgis/rest/services/Utilities/Geometry/GeometryServer/project</SoapAction>
<ElementPath IgnoreNamespaces="True">ProjectResponse{}/Result{}/diffgram{}/Table{}/geometries{x,y}</ElementPath>
</definitions>
</Query>


I get the titlecell, breadcrumbs and apiref instead of getting the geometries x and y values.
GeometryServerwsdl.txt
0
Hey all,

I've recently become part of a team that uses BIRT in combination with Actuate/OpenText iHub.

One of my tasks involves programmatically retrieving a full list of reports running on the iHub server. I've already discovered that iHub has a web service API that could possibly be used but I cannot find what method to use that achieves this.

Any experienced BIRT/iHub users on here that could help me get somewhere?

Looking forward to those reponses! :)

VV.
0
I have a .PFX file that I'd like to convert to use for Amazon Web Services (specifically in Cloudfront).

I have a pretty good process I use already, using OpenSSL on a Windows Server 2016 machine that looks like this:

C:\Users\Desktop\cert.pfx -nocerts -nodes -passin pass:quickie | openssl rsa -out C:\Users\Desktop\cert.key

Open in new window


I have four SSL's I need to generate and three of them worked perfectly. The fourth one generates the following error:

unable to load Private Key
1628:error:0906D06C:PEM routines:PEM_read_bio:no start line:crypto\pem\pem_lib.c:691:Expecting: ANY PRIVATE KEY

Open in new window


All of these PFX files are from the same vendor (GeoTrust) and from the same Server (Windows Server 2016). Anyone have a good recipe I could use to get this handled?

Thank you for your help.
0
Automating Your MSP Business
Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

Which platform do you recommend to integrate with internal, external APIs, web services but also support robust message queuing mechanism ? Is it better to split the two i.e. separate API integration platform and message queue platform?
0
Hi

Our current setup is:
-One single server (HP DL350G9) as dedicated hyperV host only for VDI (RD Virtualization Host) only
-Roles installed on physical box are: HyperV and Remote Desktop Connection Broker and RD Virtualization Host
-this hyperV host has 30 vm's with Windows10
-there is only one VDI collection
-inside virtual desktop collection setup \ Virtual Desktop Configuration \ Local storage is set for: Local and local virtual desktop creation location is set: D:\VDI

Q1: Is there a way to migrate current virtual desktop collection from physical host to vm ? without loosing existing 30 vm with windows 10?

Our goal is to move whole VDI setup as it is in to new cluster or other hyperv hosts.

Regards
Maciej Pepek
0
how to change the banner size in servicenow with script
0
I would like to build web portal to collect horse racing information in USA only. Anyone know where I can get the database or API ?
0
I want to create a web services (soap only) that allow php, aspx, and most common programming languages to consume my web services.
My native language is .net/c# with WCF. However, I am definitely okay to learn new stuffs if it is necessary.

All I need now is simple web services like "hello world" so I can get start it.
0
Is it possible to setup a google extended oauth2 connection with a non-super-admin credential?
0
UseCase 1 :-  Http Method : Get , expected json is {"id":1, "effecitveDate" :"2017-08-13 08:10"} - working fine

UseCase 2 :- Http Method : Get, expecting a list of objects i.e. ["id":1, "effecitveDate" :"2017-08-13 08:10"} ,"id":2, "effecitveDate" :"2017-08-16 08:10"}

but I am getting  date like ["id":1, "effectiveDate": [
            2017,
            8,
            13,
            8,
            10
        ]},
"id":2, "effectiveDate": [
            2017,
            8,
            16,
            8,
            10]}
]

How to solve this date issue.
Note : I am using java8 LocalDateTime.
0
Hello, is there a command line tool that tests web services to see if they work?  Thanks!
0
Hello,

I am using self written Java programmes at home that consume SOAP web services from my rc plane club. So far everything works good, But sometimes the SOAP web services that I use are not available due to maintnance or problems at the club's server. I want to monitor the availability of the SOAP services and persist the status. When I use the SOAP services the programme shall first check the availability from the monitor and if the status is 'available' perform the desired request or else queue the request until the service becomes available again.

Before I start to re-invent the wheel and write my own monitor I wanted to know if there are already tools that can accomplish this task, which can be easily embedded or used in Java before a request.

Best regards,
CB
0
Put Machine Learning to Work--Protect Your Clients
Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as the high-speed power of the cloud.

I have an XML file that when passed through SOAP UI returns a proper response as XML file. I need to create an application to pass the XML and recuperate the response. I tried searching but many say REST web service where they using only post/get.

Please send me some sample code and/or tutorials.
0
We are using Navision Web Services to publish the data so the third party application can consume, for our web services we need to pass username and password, I have done this several times using .NET but one of our client they are using Action Script and they are new to the web service.

Can anybody please help me with sample code for passing credentials, it is WSDL service.
0
Trying to consume webservice using wcf client, getting following error

The content type multipart/related; boundary=MIMEBoundaryurn_uuid_B50EC784A204DC07C91495512014914; type="text/xml"; start="<0.urn:uuid:B50EC784A204DC07C91495512014915@apache.org>"; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the  . The first 1024 bytes of the response were ...

Fiddler is showing the complete response but wcf is not able to deserialize the complete response. Response contains Japanese characters.
0
Example for WinRM  API using SOAP
0
Hi I am really stick here - I want to to change my service request - can someone please help me out: Thank you!

I am using nuSOAP with Code igniter

================================================
CURRENT REQUEST:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:OmniBeeEndPoint">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:GetRoomTypes soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <Token xsi:type="xsd:string">?</Token>
         <HotelCredentials xsi:type="urn:NestedParam">
            <!--You may enter the following 3 items in any order-->
             <Code>21</Code>
                 <UserName>TestUser</UserName>
             <Password>Password123</Password>
         </HotelCredentials>
      </urn:GetRoomTypes>
   </soapenv:Body>
</soapenv:Envelope>
====================================
THE WAY I NEED IT:

<?xml version="1.0" encoding="utf-8"?>
<GetRoomTypesRQ>
       <Token>1c056556-510b-4bda-8103-b595928b990a</Token>
       <HotelCredentials>
              <Code>21</Code>
              <UserName>TestUser</UserName>
              <Password>Password123</Password>
        </HotelCredentials>
</GetRoomTypesRQ>

============
============
CURRENT RESPONSE

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" …
0
I have developed Webmethod in C#. Here server send the Json Array in POST Request in the Below format.
[{ "name" : "AAAA", "address" : "Chennai"},{"name": "BBBB", "address":"Trichy"}]

Open in new window

How to read this Json and Serialize this Json?

When I Change the Request to below type my code is working Properly.
"JsonData":{[{ "name" : "AAAA", "address" : "Chennai"},{"name": "BBBB", "address":"Trichy"}]}

Open in new window

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.