I've discovered that these webservices are subject to developer preferences as far as what they will accept.  We use several of them and have a common way of sending receiving packets, but this one in particular is giving SOAP errors.

Here's the code I'm using:

======================================
<cfsavecontent variable="ToSend">
<?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:Header
        xmlns:soapaction="http://webapi.globusandcosmos.com/GetDeparturesXML">      
   </soap:Header>
  <soap:Body>
    <GetDeparturesXML xmlns="http://webapi.globusandcosmos.com/">
      <brand>Globus</brand>
      <tourCode>DIB</tourCode>
      <pricingModel>USA</pricingModel>
    </GetDeparturesXML>
  </soap:Body>
</soap:Envelope>
</cfsavecontent>


<cftry>   
    <cfhttp method="post"
        url="" class="moz-txt-link-rfc2396E" href="http://webapi.globusandcosmos.com/gvitawapi.asmx">"http://webapi.globusandcosmos.com/gvitawapi.asmx"
        throwonerror="no">               
        <cfhttpparam type="XML" name="xmlrequest" value="#tosend#">       
    </cfhttp>
       
    <cfset parsedXML = xmlParse(cfhttp.fileContent)>
    <cfdump var="#parsedXML#">
   
    <cfcatch type="Any">
        <cfoutput>#cfcatch.message#-#cfcatch.detail#</cfoutput>
        <cfabort>
    </cfcatch>
</cftry>

======================================

I get "System.Web.Services.Protocols.SoapException: Unable to handle request without a valid action parameter. Please supply a valid soap action." for a response. 

I've tried many many methods to pass the soap action, any ideas?  The developers at this place haven't been to helpful, I've asked for an example call, test form, verification of my packet, all to no avail.  Seems like they only support Java users.

Any help, links, or book suggestions are most welcomed :-)

-James



Sammy Larbi wrote:

James Dismukes wrote:
  
Does anyone have a good crash course resource for using SOAP with 
Coldfusion (MX6.1 specifically).  I have the basics of XML down, but am 
struggling with SOAP and a strict webservice I need to work with.  I 
know MX7 has some added functions just for SOAP, but I'll have to wait 
for Scorpio on those (couldn't sell the boss on 7, but did on 8!).

Any help in the right direction is greatly appreciated, some googling 
and a walk through Barnes & Noble just didn't produce much.
  
    

I'm not positive, but I think you'll need to use something like MSXML as 
a COM object.  I'm not sure what the API looks like off the top of my 
head, so maybe that info will trigger some memory in someone else (or 
perhaps google could find something). 

Someone correct me if I'm wrong, as I'm not terribly confident on this.

Sam



  

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Houston ColdFusion Users' Group" discussion list.
To unsubscribe, send email to [EMAIL PROTECTED]
For more options, visit http://groups.google.com/group/houcfug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to