Hello,
I'm not sure how to tackle this one since for the most part I have
only user my WebServices with non-web based solutions like Objective-C
apps etc.

So here is my issue I have a web service called "ProxyServerData" and
I'm trying to call it using cfinvoke and I keep getting a error.

Running on OpenBD 1.4 https://myhost.com:2600/MyProxy.cfc

MyProxy.cfc:
<cfcomponent>
        <cffunction name="ProxyServerData" access="remote"
returnType="boolean" output="no">
                <cfargument name="proxyData">

                <cflog text="#arguments.proxyData#" />
                <cfreturn true>
        </cffunction>
</cfcomponent>

Test.cfm:
<cfinvoke webservice="https://myhost.com:2600/MyProxy.cfc?wsdl";
method="ProxyServerData" returnvariable="res">
        <cfinvokeargument name="proxyData" value="HelloWorld2">
</cfinvoke>


Type:
Application

Detail:
Unrecognized error code: Invalid web service operation. Cannot call
operation ProxyServerData. Error: null Could not get requested file.;
nested exception is: [--Catch Data--] type: Template tagname:
template: Line: ; Column: ErrorCode: errorCode.badRequest message:
Invalid Request detail: A request was made to a resource that could
not be located

Extended Info:
AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}
Server.generalException faultSubcode: faultString: Could not get
requested file.; nested exception is: [--Catch Data--] type: Template
tagname: template: Line: ; Column: ErrorCode: errorCode.badRequest
message: Invalid Request detail: A request was made to a resource that
could not be located faultActor: faultNode: faultDetail: {http://
xml.apache.org/axis/}hostname:myhost.com


The funny thing is I wanted to make sure it works, so I did this and
it works just fine.

ByHand.cfm:
<cfsavecontent variable="soapRequest">
<cfoutput>
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:na="http://na_svr";>
   <soapenv:Header/>
   <soapenv:Body>
      <na:ProxyServerData soapenv:encodingStyle="http://
schemas.xmlsoap.org/soap/encoding/">
         <proxyData xsi:type="xsd:string">HelloWorld</proxyData>
      </na:ProxyServerData>
   </soapenv:Body>
</soapenv:Envelope>
</cfoutput>
</cfsavecontent>

<cfhttp url="https://myhost.com:2600/MPProxy.cfc?wsdl"; method="POST"
resolveurl="NO" useragent="Axis/1.1">
<cfhttpparam type="header" name="SOAPAction" value="https://myhost.com:
2600/MPProxy.cfc?ProxyServerData">
<cfhttpparam type="xml" name="body" value="#soapRequest#">
</cfhttp>
<cfset soapresponse = XMLParse(cfhttp.FileContent) />


So how do I get this to work using cfinvoke? Is this a known issue?

Thanks,
Charlie

-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to