Shane, I've got an application that uses SOAP calls successfully... Here is
an example of how I'm sending the request.

<@assign
Scope="Method"
name="MessageResult"
Value=<@URL
LOCATION="<@var request$WebService>"
USERAGENT="Witango <@VERSION> <@PLATFORM><@CRLF>Content-type: text/xml;
charset=iso-8859-1<@CRLF>SOAPAction: <@dq>@@request$SOAPAction<@dq>"
POSTARGS="<?xml version=<@dq>1.0<@dq>
encoding=<@dq>ISO-8859-1<@dq>?><@CRLF><@VAR request$SoapPayload
ENCODING='NONE'>">>

I do believe that the @URL request will be sent in the ISO-8859-1 char
set....

My SOAPAction and SOAPPayload variables are  built dynamically, but I can
tell you they look like this...

<OperationName>
<argName1>argvalue1</argName1>
<argName2>argvalue2</argName2>
</OperationName>

I had a good example to go on for what the payload was supposed to look
like.

but I'm definitely labeling my XML with a different char set...

/John

On 1/18/07, Shane Pearlman <[EMAIL PROTECTED]> wrote:

 Hey all,



I am trying to make a SOAP call to the Fed's web service to get exchange
rates for USD to CAD (http://www.newyorkfed.org/markets/pilotfx.html) and
am new to all this.



After going through the Witango Docs and reading the talk list history I
am beginning to understand how this works but am still struggling on how to
properly form the call as I keep getting poorly formed XML error messages.



As far as I get it - the relevant part from their wsdl doc is:



<wsdl:operation name="getLatestNoonRate" parameterOrder="currency_code">

      <wsdl:input name="getLatestNoonRateRequest"
message="impl:getLatestNoonRateRequest"/>

      <wsdl:output name="getLatestNoonRateResponse"
message="impl:getLatestNoonRateResponse"/>

      <wsdl:fault name="CFCInvocationException"
message="impl:CFCInvocationException"/>

</wsdl:operation>



I want to make a request and pass in the parameter currency_code = 'CAD'





4 Questions:



1) How should the xml payload call look like (between the body tags)?



2) To further my understanding: in the USERAGENT portion of the @url call,
why identify all that info about Witango? Also what is the SOAPAction for?



3) Their .net demo uses utf-8 encoding. Is that necessary? I know Witango
has a mixed history with utf-8.



4) Is there something else you think I might need to know that I didn't
ask?





<@ASSIGN request$WebService "
http://www.newyorkfed.org/markets/fxrates/WebService/v1_0/FXWS.cfc";>



<@ASSIGN request$SOAPAction "
http://www.newyorkfed.org/markets/fxrates/WebService/v1_0/FXWS.cfc";>



<@ASSIGN request$SoapPayload '



<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope";>



<env:Body>



?????????????????????????



</env:Body>



</env:Envelope>



'>



<@ASSIGN Request$SOAPResponse '<@DOM VALUE="



<@URL



LOCATION='@@request$WebService'



USERAGENT='Witango <@VERSION> <@PLATFORM><@CRLF>Content-Type: text/xml
<@CRLF>SOAPAction: "@@request$SOAPAction"'



POSTARGS='<?xml version="1.0" encoding="UTF-8" 
?><@CRLF><@VARrequest$SoapPayloadENCODING=
"NONE">'



>">'>





<pre>

<@VAR Request$SOAPResponse encoding="html">

</pre>









Shane Pearlman

831.345.7033

S&P, Inc. <http://www.shaneandpeter.com>











Shane Pearlman

831.345.7033

S&P, Inc. <http://www.shaneandpeter.com>







________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf




--
John McGowan
Seven A C Consulting, Inc.

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to