We help IT Professionals succeed at work.

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.

Hi,

I have a classic asp site that connects to WCF using Moniker. It works fine with 8192 bytes message size. But then when it starts sending large data then we get the "The maximum string content length quota (8192) has been exceeded".

I read through different solutions online and tried what they suggested but didn't work. I'm new to WCF so I'm not sure where the changes need to be made and I don't know what the moniker binding, contract etc.... correspond to in the WCF web.config. I have dealt with asp.net site where it is easy to set the configuration on the bindings but it is different in classic asp.

I don't think there is any machine.config changes that were made as far as I know to make this work. The code below works fine but not for large messages.

Here is the code for the moniker in the asp page:

Function GetWsdlMoniker(username, password)
 
    dim strWsdl
    dim wsdlMoniker
    dim monikerProxy

     strWsdl = GetWsdlFromUrl("http://localhost/LegacyService.svc?wsdl")

   wsdlMoniker = "service4:address='http://localhost/LegacyService.svc?wsdl'"
	wsdlMoniker = wsdlMoniker + ", wsdl='" & strwsdl & "'"
	wsdlMoniker = wsdlMoniker + ", binding=CustomBinding_ILegacyService, bindingNamespace='https://WCF/LegacyService'"
	wsdlMoniker = wsdlMoniker + ", contract=ILegacyService, contractNamespace='https://WCF/LegacyService'"

    on error resume next	
   
    Set monikerProxy = GetObject(wsdlMoniker)  

    …
0
Hi,

I'm very confused by the concepts of "elements floating" and "elements positioning".

1) First of all, are they two similar things or they have nothing to do with each other at all? Can they be used together?

2) Let's say I've got an extremely simple page, with "header" on top, "footer" at the bottom and in the middle, there are "section" on the left and "aside" on the right. I can use "float:left" for "section" and "float:right" for "aside" and "clear:both" for the footer. Here's a quick question: what options do I have when using "clear"? Is it always "clear:both" under all circumstances? or can I use "clear:left" or "clear:right"? My css looks the following:
section {
  float: left;
  margin: 10px;
  width: 600px;
}
aside {
  float: right;
  margin: 10px;
  width: 320px;
}
footer {
      clear:both;
}

3) when talking about positioning element, we can concepts like "static", "relative", "absolute" and "fixed". Let's say I want to put an unordered list on the right hand side of the "header" division and here's the css:
header {
  position: relative;
}
ul {
  position: absolute;
  right: 10px;
  top: 10px;
}

Following point 2 and 3 above, here are my questions:
If I want to put an ordered list on the left and unordered list on the right, what should I use? Should I float the ordered list to the left and unordered list to the right and then clear both, OR should I declare the position of header to be relative first, and then give absolute …
0
Dear experts,

I am having a little dilemma. One of my clients has his domain and hosting plan in the same company. In addition his domain is being used as email by his Google Business Plan.
Because I am building a new website for him (he has a small business consulting company which as almost 30 employees), I would like to use a different hosting company that I think it is much better. But I am not sure if that is a good move. I don´t know if changing hosting companies would affect their emails, data, etc. Could you please help me to decide?

Thanks,

Winter
0
Does anyone know if it is possible to actually add an attachment (rather than a shared link) from a google drive document to a new gmail email?  

I've switched to the new style gmail view where the new compose box opens in the bottom right corner (whilst keep the inbox screen open in the background) and at the bottom it has a the google drive icon which enables me to add a document from google drive....or so I thought.  In fact, the recipients are complaining that they cannot access the link because I have not shared it.

I dont want to be fussed with setting sharing permissions for each and every attachment, but at the same time I want to be able to use the google drive storage capabilities. I just want a fast way of attaching the document itself, but not sure if there is a command or setting I can change somewhere?
0
I have Ubuntu Server 12.04 64bit.

Installed yum and tried to install php-soap with "yum install php-soap"

get: "No package php-soap available."

how can I fix this

PHPInfo: PHP Version 5.3.10-1ubuntu3.6
0
Web Service - How can I get the SOAP Envelope XML ?
Asked by: JElster
Hi..
I have a basic webservice. A user is asking for the SOAP Env. (XML)
How can I retrieve it from  my service.  I'm not clear what they are using to access the service.

Should be something like this

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetIncomeReport xmlns="http://tempuri.org/">
      <RequestContext xmlns="">
0
Hi..
I have a basic webservice. A user is asking for the SOAP Env. (XML)
How can I retrieve it from  my service.  I'm not clear what they are using to access the service.

Should be something like this

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetIncomeReport xmlns="http://tempuri.org/">
      <RequestContext xmlns="">
0
Dear Friends,


I would want to take online training for Java Web Services,please suggest me which is best site for online training center.

Thanks.
0
Hi,
I see one class declaration as below while working on webservice adapters.

class XYX extends XMLAdapter(<String Integer>){
......
}


I wonder what it means by XMLAdapter(<String, Integer>)



what does String and Integer represents in above class declaration
Please advise. Any ideas, resources, sample code highly appreciated. thanks in advance
0
Hi,

I would like to know differences, similarities, advantages, disadvantages of using JAXB vs JAXP in creating webservices.
Please advise. Any ideas, resources, sample code highly appreciated. thanks in advance
0
I'm very new to Web Services, and am looking through tutorials on servlets and web services. I created a new dynamic web project, but unlike the tutorials, I'm missing the web.xml file.

Is the web.xml file something that I need to create manually for every project?
0
Hello Experts!

I am in the process of designing a website that displays a list of meeting dates and times throughout the year.  The problem is that this site has to be fully international and allow the visitor from any country to view these meeting dates and times translated to the time zone where the visitor lives.

Does anyone know of a dependable website that offers an API to be able to determine the correct time for any time zone given the date and time of a particular meeting, remembering that Daylight Savings Time varies from region to region?
0
I just had this dumped on me...I need to connect to a WSDL interface using PHP.  It looks like nusoap is the easiest solution, but I am open to suggestions.  I was given the following interface information, and need some hints as to how exactly to connnect to this in PHP.  

I need help knowing how to map PHP variables into those in the specification.  

Please help!


[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ServiceModel.ServiceContractAttribute(ConfigurationName="Interface")]
public interface Interface
{
   
    [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/Interface/RequestApproval", ReplyAction="http://tempuri.org/Interface/RequestApprovalResponse")]
    string RequestApproval(string Id, string Num, int points, string Code);
}

[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public interface InterfaceChannel : Interface, System.ServiceModel.IClientChannel
{
}

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public partial class InterfaceClient : System.ServiceModel.ClientBase<Interface>, Interface
{
   
    public InterfaceClient()
    {
    }
   
    public InterfaceClient(string endpointConfigurationName) :
            base(endpointConfigurationName)
    {
    }
   
    public InterfaceClient(string endpointConfigurationName, string …
0
Is it true that it is best to have a separate entity for your domain registration and domain hosting?
0
Hello,

I desperately need the help of an expert here on this forum. I would like to modify my html coding such that my top header table row, stays frozen or fixed in place if a user is scrolling through data in my table.

Notes: has to be Ie 7 compliant, no external javascript libaries ie. jQuery, or Grids. Just pure css only please.

<!DOCTYPE html>

<html>

<head>

<style type="text/css">
#wrapper {
	border: 1px solid #808080;
	overflow-x: scroll;
	overflow-y: scroll;
	height: 200px;
}
#data {
	width: 100%;
	border: 0;
}

#data > * > tr > th,
#data > * > tr > td {
  border-left: 1px solid #808080;
  border-top:  1px solid #808080;
}

#data > * > tr > th,
#data > * > tr > td:first-child {
  border-left: none;
}

#data > *:first-child > tr:first-child > th,
#data > *:first-child > tr:first-child > td {
  border-top: none;
}
#data thead {
	font-weight: bold;

}
</style>

</head>

<body>
<div id="wrapper">
	<table id="data" cellpadding="0" cellspacing="0">
	<thead>
		<tr>
			<td>HEADER</td>
			<td>HEADER</td>
			<td>HEADER</td>
			<td>HEADER</td>
			<td>HEADER</td>
			<td>HEADER</td>
			<td>HEADER</td>
			<td>HEADER</td>
			<td>HEADER</td>
			<td>HEADER</td>
		</tr>
	</thead>
		<tr>
			<td>cell</td>
			<td>cell</td>
			<td>cell</td>
			<td>cell</td>
			<td>cell</td>
			<td>cell</td>
			<td>cell</td>
			<td>cell</td>
			<td>cell</td>
			<td>cell</td>
		</tr>
		<tr>
			<td>cell</td>
			<td>cell</td>
			<td>cell</td>
			<td>cell</td>
			<td>cell</td>
			<td>cell</td>

Open in new window

0
We currently use Google apps free edition for our email. Users are currently setup in outlook, using pop3. We also use google docs as a critical part of our production scheduling. Looking to move to Google apps for business, and have the following needs:

1. Invoice based, net 30 billing, monthly

2. Google emails continue to work as they currently are, and we gradually rollout apps for business setup on a per user basis on several different days. (Is this possible?)

3. Quick response time for phone technical support

4. An idea of the pricing structure/expectation for the mentioned reseller/partner.

We also use G-chat.
0
I am looking to build a servlet using Tomcat/Eclipse to do some simple tasks such as user authentication and retrieving some data from MySQL. I was advised to use REST services. I've never worked with REST services before, and looked into a few tutorials, which didn't seem to be to easy.

My question is, do I need to use REST services or can I just create a regular Web Service in Eclipse to encapsulate my regular Java class?
0
Hello, I'm struggling and have been trying to work things out on my own.

I'm using SQL 2012, .net, C#.

In my if/else statement, I'm trying to check si.StudentID (type="s:string") from a web service against my sql Registration table StudentID column.  I don't know how I would set this up.  
SqlConnection CheckIDConnection = new SqlConnection("Select IsActive, StudentID FROM Registration R WHERE (R.IsActive = 1) and (R.StudentID = " 
 + si.StudentID, CheckIDConnection);

if
(si.StudentID = new SqlCommand("R.StudentID", CheckIDConnection))
{
CheckIDConnection.Close(); } 

Open in new window

The StudentID column datatype is varchar(9).

Intelisense under "new SqlCommand" in SQL connector says "does not contain a constructor that takes 2 arguments."

Also Intelisense under "new SqlCommand("R.StudentID", CheckIDConnection)" says "cannot implicitly convert type to string.

Any help would be appreciated.
0
Hi,

Could someone explain to me in plain terms with examples

The difference between a stateless web service and a stateful web service with examples.

Also why are restful web services becoming popular now ?

thanks
-anshu
0
Hi there;

I am dealing with a simple "WCF service application" under .NET 4.0. I have the following error:
Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata.

Open in new window


My contracts are as follows:
 [ServiceContract]
    public interface ICustomersService
    {

        [OperationContract]
        List<Customer> ListCustomers();

        [OperationContract]
        CustomerDetail GetCustomersDetails(string customerId);

        [OperationContract]
        bool SaveChanges(string customerId, string companyName, string contactName, string contactTitle);
    }

    [DataContract]
    public class Customer
    {
        [DataMember]
        public string CustomerId { get; set; }

        [DataMember]
        public string CompanyName { get; set; }
    }

    [DataContract]
    public class CustomerDetail
    {
        [DataMember]
        public string CustomerId { get; set; }

        [DataMember]
        public string CompanyName { get; set; }

        [DataMember]
        public string ContactName { get; set; }

        [DataMember]
        public string ContactTitle { get; set; }
    }

Open in new window


I implemented those in my actual class. There is no compile error.

The problem is definitely under Web.config. I don't see any binding here..

Web.config content:
<?xml version="1.0"?>
<configuration>
	<connectionStrings>
		<add 

Open in new window

0
Hi there;

I need to convince myself that I need a restful web service in a specific circumstance. Tell me why should I use restful service?

I also appreciate a simple meaningful implementation that proves your point.

Please, do it in your own words.

Regards.
0
Ok, lets see how well I can explain this.  We are using a Firescope Unify "appliance" to monitor assets on our network.  The appliance has the ability to send out notifications on events we have set up.  

The claim is that it can do messaging via smtp  and sms.  SMTP through our exchange sever works fine.  Sending smtp to the sms gate way at AT&T also works just fine.  The SMS on the appliance isn't working.  The appliance does not have an SMS gateway built into it but does have places where I am suppose to put in info for SMS to work, so far I've had no luck.  I'm going to copy and past the support conversation and a screen shot or two for you to look over.  Not sure what I'm missing but I don't think this process should be very complicated.  So I'm tossing this to the experts.  

Original message

Ok, I've spent the morning on this and still have no SMS messages that look like they haven't left the appliance.  I don't remember SMS being so difficult, something is missing and I'm not sure what.  Test messages are still sitting on the appliance.  There has been no traffic though the firewall or spam filter for the ip address of the appliance, and I haven't found a place that looks like a "firescope" gateway for SMS, so the assumption is that it will be handled by AT&T.  
> For kicks I made and exception in the firewall for the IP of the box to have total access to all things internet.  Test message still never left the firescope box.  I' am not even going to …
0
I am trying to invoke the service in the link: http://www.webservicex.net/globalweather.asmx?WSDL

which can be seen in this link: http://www.webservicex.net/ws/wsdetails.aspx?catid=12&wsid=56


I added the service, yet, I have this error in .NET or PHP.
Following is the .NET web server consumer exception:

Unhandled Exception: System.InvalidOperationException: An endpoint configuration
 section for contract 'WeatherService.GlobalWeatherSoap' could not be loaded bec
ause more than one endpoint configuration for that contract was found. Please in
dicate the preferred endpoint configuration section by name.

  WeatherService.GlobalWeatherSoapClient clie = new WeatherService.GlobalWeatherSoapClient();
            Console.WriteLine(clie.GetWeather("Stockholm", "Sweden"));

Open in new window



I also try with PHP code, apparently, the error persists.

<?php

try {
	// form client
	$client = new SoapClient ("http://www.webservicex.net/globalweather.asmx?WSDL");
	
	$weather = $client->GetWeather("Stockholm", "Sweden");
	echo $weather."aaa";
	echo "<pre>";
	var_dump ( $weather );
	echo "/<pre>";
} catch ( Exception $ex ) {
	echo "Soap error" . $ex->getMessage ();
}
?>

Open in new window


The exception in php is as follows:
The error of the PHP is as follows:
Soap errorSystem.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: Procedure or function 'getWeather' expects parameter '@CountryName', which was not …
0
Hi Experts,

I'm getting a 404 error when trying to connect to http://localhost:8080/jasperserver-pro/services/repository from Repository Navigator in iReport. I'm using iReport 5 and JasperServer 5 on an Apache Tomcat Server.

I am also unable to to browse to that url (Specified page not found). I do not get the "Hi there, this is an AXIS service!" message like I believe I'm suppose too.

I can browse and login to http://localhost:8080/jasperserver-pro and view the repository with no errors.

My best guess is that there is a problem with the webservice since front end browsing works 100%.

Can someone please point me in the right direction as I am not sure where to check and for what I should be checking? Our business process is very reliant on this being resolved ASAP.

Thanks in advance!
0
Hello Experts,

      I am working on a OSB proxy service that needs to consume messages from weblogic JMS Topics and process them sequentially. I have a service that can run synchronously but I also need to get them done sequentially. your insight would be very much appreciated.

Thanks in advance,
Venra.
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.