Symbian Learning Notes (17)--on the use of the WebServices API (i)

Source: Internet
Author: User

I haven't studied Symbian for a long time, and today I'm going to look at how to use the WebService framework provided in Symbian to SayHello.

From the information provided in the SDK documentation, this interface seems a bit complicated, including the connection API, the Description API, and the manager API three sets of things, in addition to some API applications such as XML parsing.

Reading its example program (the S60EX Directory of addressbook), let me more dizzy. How is the webservice that oneself use usually different?

There is a description of csenserviceconnection in the SDK documentation:

Web Services includes two different framework models: 1. Identity Based WEB Services Framework (ID-WSF). The framework ID is Kdefaultidwsfframeworkid ("Id-wsf"). 2. Basic Web Services Framework. The Framework ID is Kdefaultbasicwebservicesframeworkid ("WS-I").

If contract is provided, the id-wsf is used by default.

First use. NET to do a simple webservices to test, with the default generated HelloWorld bar. Quite simply, its soap description is as follows:

View Plaincopy to Clipboardprint?

<preclass=csharpname= "Code" >post/uim/pservice.asmxhttp/1.1

Host:localhost

Content-type:text/xml;charset=utf-8

Content-length:length

SOAPAction: "Urn:pservice:helloworld"

<?xmlversion= "1.0" encoding= "Utf-8"?>

<soap:envelopexmlns: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>

</soap:Body>

</soap:Envelope>

Http/1.1200ok

Content-type:text/xml;charset=utf-8

Content-length:length

<?xmlversion= "1.0" encoding= "Utf-8"?>

<soap:envelopexmlns: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>

<HelloWorldResult>string</HelloWorldResult>

</HelloWorldResponse>

</soap:Body>

</soap:Envelope></PRE>

view plaincopy to clipboardprint?
POST/uim/PService.asmxHTTP/1.1
Host:localhost
Content-Type:text/xml;charset=utf-8

Content-length:length

SOAPAction: "Urn:pservice:helloworld"

<?xmlversion= "1.0" encoding= "Utf-8"?>

<soap:envelopexmlns: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>

</soap:Body>

</soap:Envelope>

Http/1.1200ok

Content-type:text/xml;charset=utf-8

Content-length:length

<?xmlversion= "1.0" encoding= "Utf-8"?>

<soap:envelopexmlns: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>

<HelloWorldResult>string</HelloWorldResult>

</HelloWorldResponse>

</soap:Body>

</soap:Envelope>

Post/uim/pservice.asmx http/1.1
Host:localhost
Content-type:text/xml; Charset=utf-8
Content-length:length
SOAPAction: "Urn:pservice:helloworld"
<?xml version= "1.0" encoding= "Utf-8"?>
<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>
</soap:Body>
</soap:Envelope>
http/1.1 OK
Content-type:text/xml; Charset=utf-8
Content-length:length
<?xml version= "1.0" encoding= "Utf-8"?>
<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>
<HelloWorldResult>string</HelloWorldResult>
</HelloWorldResponse>
</soap:Body>
</soap:Envelope>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.