WebService Request

<< Click to Display Table of Contents >>

 

WebService Request

The requests to the Web Service, in XML format, follow the pattern described on the next example.

<soapenv:Envelope
  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:elip="http://Elipse.WebService.SendData"
  xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soapenv:Body>
    <elip:SetParams>
      <elip:p>
        <!--Option 1-->
        <arr:anyType type="string">
          qwert
        </arr:anyType>
        <!--Option 2-->
        <arr:anyType xsi:type="string">
          qwert
        </arr:anyType>
        <!--Option 3-->
        <arr:anyType type="xsd:string">
          qwert
        </arr:anyType>
        <!--Option 4-->
        <arr:anyType xsi:type="xsd:string">
          qwert
        </arr:anyType>
      </elip:p>
    </elip:SetParams>
  </soapenv:Body>
</soapenv:Envelope>

 

The Envelope, Body, SetParams, p, and anyType Tags require a namespace. The anyType Tag has a mandatory type attribute. The xsi and xsd namespaces are not mandatory. The next table contais the possible values for namespaces.

Possible values for namespaces

Namespace

URL

soapenv

http://schemas.xmlsoap.org/soap/envelope/

elip

http://Elipse.WebService.SendData

arr

http://schemas.microsoft.com/2003/10/Serialization/Arrays

xsi

http://www.w3.org/2001/XMLSchema-instance

xsd

http://www.w3.org/2001/XMLSchema

 

Data types accepted by the Web Service

Data Type

Description

boolean

A 'true' or 'false' value, represented in an application as 1 (one) or 0 (zero), respectively

char

An ASCII character, represented in an application as a value between 0 (zero) and 127

byte

A number between -128 and 127

unsignedByte

A number between 0 (zero) and 255

short

A number between -32768 and 32767

unsignedShort

A number between 0 (zero) and 65535

int

A number between -2147483648 and 2147483647

integer

unsignedInt

A number between 0 (zero) and 4294967295

long

A number between -2147483648 and 2147483647

unsignedLong

A number between 0 (zero) and 4294967295

double

A 64-bit floating-point value with a precision of 15 digits

decimal

float

A 32-bit floating-point value with a precision of 6 (six) digits

dateTime

Date and time in the format yyyy-mm-ddThh:mm:ss.sss (Year-Month-DayTHour:Minute:Second.Millisecond), in which milliseconds are optional

string

Interpreted as a text or a string of characters

anyURI

base64Binary

QName

anyType

Interpreted as string, long, or double

 

For more information, please check article Sending data to E3 via .NET web services on Elipse Knowledgebase.

Was this page useful?