Paul,

I just want to really thank you for all your help. I really appreciate it.
Thanks again!

Dave

-----Original Message-----
From: Paul Vernon [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 18, 2007 10:30 PM
To: CF-Talk
Subject: RE: Web Service HELL - SOLVED


Just to follow up on this, it seems that the webservice David was trying to
consume using wsdl doesn't fit into the wsdl way of doing things in that it
attempts to set one of the invoking arguments and pass that back as well as
a complex object.

To get around this, I've told him to invoke the service using cfhttp instead
of cfinvoke and parse the resulting XML to get the data he needs...

<cfsavecontent variable="xmlrequest"><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>
    <Login xmlns="https://www.onecallnow.com/WebService/";>
      <Service>1</Service>
      <GroupKey>1111111</GroupKey>
      <Pin>1111</Pin>
      <LoginToken></LoginToken>
    </Login>
  </soap:Body>
</soap:Envelope>
</cfsavecontent>
<cfhttp method="post"
url="http://www.devcallnow.com/WebService/OneCallNow.asmx";>
        <cfhttpparam type="xml" value="#xmlrequest#">
</cfhttp>
<cfset SOAPXML = XMLParse(cfhttp.Filecontent.toString())>
<cfset response =
XMLParse(toString(SOAPXML["soap:Envelope"]["soap:Body"]["XmlChildren"][1]))>
<cfdump var="#response#">
<cfoutput>#response.LoginResponse.LoginToken#</cfoutput>

Paul





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291516
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to