0 Replies Latest reply: Jul 27, 2006 11:07 AM by 525376 RSS

    SOAP call using ColdFusion 7

    525376
      I'm very new to SOAP, but I'm attempting to do a simple ping (for starters) using ColdFusion 7. I checked that the 'Web Services SOAP' is running. I get the following error (code is down below)
      :
      soap:Client.Error::System::SOAPRequest An XML parsing fatal error occurred Line: 2 Column: 1 Error Invalid document structure Error::System::SOAPRequest 0020-00-00-00000011 653 SAX2Handler.cpp,v 1.15 2003/07/10 20:12:33 ericp Thu Jul 27 09:02:22 2006 12182 3033959344 Error

      The code I'm using is (username and password have been changed to protect the innocent :):
      <cfsavecontent variable="xmlSOAPcontent">
      POST http://meded-cal.ucsd.edu:7778/ocws-bin/ocas.fcgi HTTP/1.1
      Content-Type: text/xml; charset="UTF-8"
      Content-Length: <char length>
      SOAPAction: http://www.oracle.com/WebServices/Calendaring/1.0/Ping
      <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
      soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <soap:Header>
      <auth:BasicAuth xmlns:auth="http://soap-authentication.org/2002/01/">
                     <Name>username</Name>
                     <Password>password</Password>
                </auth:BasicAuth>
      </soap:Header>
      <soap:Body>
                <cwsl:Ping xmlns:cwsl="http://www.oracle.com/WebServices/Calendaring/1.0/Ping"/>
      </soap:Body>
      </soap:Envelope>
      </cfsavecontent>

      <!--- Send Request --->
      <cfhttp url='http://meded-cal.ucsd.edu:7778/ocws-bin/ocas.fcgi' method="POST" port="7778" resolveurl="NO"
      username="username" password="password">
      <cfheader name="SOAPAction" value="">
      <cfheader name="Content-Type" value="text/xml; charset=utf-8">
      <cfhttpparam type="XML" name="CGI" value="#xmlSOAPcontent#">
      </cfhttp>
      <!--- Assign Results --->
      <cfset SOAPResponse ="#cfhttp.filecontent#">

      <cfoutput>#SOAPResponse#</cfoutput>


      Any help would be very greatly appreciated!

      Dylan
      UCSD School of Medicine