- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI am atteping to invoke a webservice:
My code i am using to invoke the websrvice is located below.
I am recieving this error message: Unable to parse WSDL as an XML document.
This is the instructions:
Access
Web Service
The endpoint (or web location) for the web service is:
http://www.awebsite.net/LS
To view the Service Description (WSDL) you may enter:
http://www.awebservice.net
The TargetNamespace for the web service is the same as its URL.
Web Page
The endpoint (or web location) for the web page is:
http://www.awebservice.net
GetMethod ()
GetMethod() method accepts a an object of type QuoteRequest and returns an object of type
QuoteResponse which holds all returned policy quotes available for the set of criteria provided in the
request object QuoteRequest.
QuoteRequest
This object is passed to the method GetMethod() as a single parameter. This request object holds
a set of demographic information.
QuoteRequest Data Members
Data Member Type Description
RequestTransactionID String Passed in the request object and return as is
in the response object.
RequestState String State where the policy is purchased.
RequestClientAge String Age of the primary applicant
RequestClientTobacco boolean True/False primary use of tobacco
RequestFamilyStatus string Indicating the family status of the primary
applicant:
" Single
" Spouse Only
" Spouse And Children
" Children Only
RequestSpouseAge String Age of the primarys spouse
RequestSpouseTobacco String True/False primarys spouse use of tobacco
RequestModal String Payment frequency:
" Annual
" Biweekly
" Monthly
" Quarterly
" Semiannual
" Semimonthly
" Weekly
Invalid Demographics
Error Message
If Valid returns false then you have an error.
Possible errors:
Request object must have an age range from 18-64 for both applicant and spouse.
Request object must have all properties populated.
QuoteResponse
This object is returned by the GetMethod() method and contains a list of available quotes for Money
Purchases and Face Amounts rated.
QuoreResponse Data Members
Data Member Type Description
Quotes Array-List Array list
ChildrenFace String Face amount for the Children (if exist)
SpouseFace String Face amount for the spouse (if exists)
QRequest Object
The QuoteRequest object.
Valid Boolean True/False when false then error message exists
BenefitDescription String Description of policy benefits
ErrorMsg String Contains the error message (if any).
Quotes Data Members
Data Member Type Description
FaceAmountQuote Array-List
MoneyPurchaseQuote Array-List
FaceAmountQuote Data Members
Data Member Type Description
Quote Array-List
MoneyPurchaseQuote Data Members
Data Member Type Description
Quote Array-List
Quote Data Members
Data Member Type Description
QuoteValues Array-List
Colorado Bankers Life LifestyleProtector Service Software API Document
CBL_-_API.doc Page 4
QuoteValues Data Members
Data Member Type Description
FaceValue String Value of face amount or Money Purchase
ClientPremium String Premium value for individual only
FamilyPremium String Premium value for family
How would i set this up to get a responce back using coldfusion?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: LeadCoPosted on 2009-04-10 at 02:26:23ID: 24114192
I have figured out the way to call the webservice and return the response via cfhttp
rg/2001/XM LSchema-in stance" xmlns:xsd="http://www.w3.o rg/2001/XM LSchema" xmlns:soap12="http://www.w 3.org/2003 /05/soap-e nvelope"> .net"> equestTran sactionID> e> ClientAge> RequestCli entTobacco > SpouseAge> RequestSpo useTobacco > tModal> nly</Reques tFamilySta tus>
agent#"
FileConten t)#<br /></cfoutput><!------>
Here is the code in case you need to consume a webservice with cfhttp.
<cfset strURL = "#webserviceURL#" />
<cfsavecontent variable="strXML">
<soap12:Envelope xmlns:xsi="http://www.w3.o
<soap12:Body>
<GetQuotes xmlns="http://www.awebsite
<_quoteRequest>
<RequestTransactionID>1411</R
<RequestState>AL</RequestStat
<RequestClientAge>38</Request
<RequestClientTobacco>false</
<RequestSpouseAge>38</Request
<RequestSpouseTobacco>false</
<RequestModal>Monthly</Reques
<RequestFamilyStatus>SpouseO
</_quoteRequest>
</GetQuotes>
</soap12:Body>
</soap12:Envelope>
</cfsavecontent>
<cfhttp
url="#strURL#"
method="post"
useragent="#CGI.http_user_
result="objGet"
>
<cfhttpparam
type="XML"
value="#strXML.Trim()#"
/>
</cfhttp>
<cfoutput>#XMLFORMAT(objGet.