Presentation is loading. Please wait.

Presentation is loading. Please wait.

Advanced Web Services: Soap Headers and more

Similar presentations


Presentation on theme: "Advanced Web Services: Soap Headers and more"— Presentation transcript:

1 Advanced Web Services: Soap Headers and more
Ron West Director of Professional Services PaperThin, Inc. CFUNITED – The premier ColdFusion conference

2 Web Services What’s so great about WS? What’s _not_ so great about WS?
Working with Endpoints Headers Adding Security Example June 28th – July 1st 2006

3 What’s so great about WS?
Their FUN! No, seriously though their fun! Still don’t believe me? Wait…you’ll see. June 28th – July 1st 2006

4 What’s so great about WS?
Standards based development Interoperability Reduce coding efforts Common access to data June 28th – July 1st 2006

5 What’s _not_ so great about WS?
Security (well sort of) Examples are currently very basic 2 Camps: Document vs. RPC Causes divergence in standards June 28th – July 1st 2006

6 What can we do to improve our WS?
Add security layers Work with headers Build some persistence Build sensibly June 28th – July 1st 2006

7 <cffunction access=“remote”>
Essentially a wrapper on the class org.apache.axis.client.Stub Some interesting data getHeaders() setHeaders() getUsername() getPassword() setAttachments() _setProperty() What does this look like? June 28th – July 1st 2006

8 WSDL Editing WSDL? Why would I want to do that? Manage endpoints
June 28th – July 1st 2006

9 What is the endpoint The location (URI) for accessing a Web Service
Can change during the call Adds an additional layer of security June 28th – July 1st 2006

10 Modifying an Endpoint June 28th – July 1st 2006

11 Security Authentication has multiple levels of complexity
Are you authenticated? Are you authorized? June 28th – July 1st 2006

12 SOAP Response <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv=" xmlns:xsd=" xmlns:xsi=" <soap:Header> </soap:Header> <soapenv:Body> </soapenv:Body> </soapenv:Envelope> June 28th – July 1st 2006

13 Working with Headers Add a header: addSOAPRequestHeader
Namespace (unique on application side) Name Value MustUnderstand (true, false [default] Called from your client June 28th – July 1st 2006

14 Working with Headers Using a header: getSOAPRequestHeader()
Namespace (unique on application side) Name asXML (true, false [default] Called within your Web Service June 28th – July 1st 2006

15 Persistence Are Web Services persisted? Yes! Client (using ColdFusion)
Standard Scopes (Application, Session) Server (AXIS Web Service Engine) SESSION_MAINTAIN_PROPERTY Cookies??? June 28th – July 1st 2006

16 Putting it together Talked about Interoperability
Connecting the disparate systems Coding once using multiple times Connecting ERP solutions June 28th – July 1st 2006

17 Example CRM and CMS Integration June 28th – July 1st 2006

18 Additional Notes isSOAPRequest() getSOAPRequest()
June 28th – July 1st 2006

19 Questions & Answers June 28th – July 1st 2006

20 Special Thanks Tom Jordahl (a.k.a. Web Service KING) Sean Corfield
Mapped the “SessionHeader” for Salesforce Sean Corfield Produced first proof of concept June 28th – July 1st 2006


Download ppt "Advanced Web Services: Soap Headers and more"

Similar presentations


Ads by Google