SOAP Library - More

David Burgun dave at looktowindward.com
Mon Oct 8 08:15:30 EDT 2007


Hi Again,

I'm really confused on how this SOAP library has to be setup. I've  
been trying to make sense of it by stepping through the code but  
since I'm not sure what it is supposed to work, I'm not having an  
awful lot of luck! For instance, this function:

--------------------------------------------
-- SOAP.RPCRequest
--
--------------------------------------------
FUNCTION SOAP.RPCRequest pUrl, pMethod, pNamespace, pParams,  
pSoapAction, pHeader, pValue, pType
     local tHeaders
     local tSOAPEnvelope
     local tMethod
     local tMethodTag

     put the uSOAPEnvelope of me into tSOAPEnvelope
     put kMethodHeader & ":" & pMethod into tMethod
     put "<" & tMethod &&  "xmlns:" & kMethodHeader & "=" & quote &  
pNamespace & quote & ">" into tMethodTag

     replace "<$METHOD>"  WITH tMethodTag  in tSOAPEnvelope
     replace "</$METHOD>" WITH "</" & tMethod & ">" in tSOAPEnvelope
     replace "<$PARAMS/>" WITH pParams in tSOAPEnvelope

     replace "<$HEADER>"  WITH pHeader  in tSOAPEnvelope

     return _SOAP.Post(tSOAPEnvelope, pUrl, pSOAPAction)
END SOAP.RPCRequest


What should "uSOAPEnvelope of me" be set to? In my copy of the stack,  
it's empty.

I'm trying to get a demo/proof of concept together and a major area  
is talking to the Server which uses Web Services. At the moment the  
App is coded is RealBasic. I have to add a lot more functionality to  
it and have suggested that the job is done in RunRev, however before  
committing, I need to show the basic server comms working.

Thanks a lot for any help
All the Best
Dave

----------------------------------------------------
Hi Mark,

Thanks for that, it looks a lot cleaner.

One question though, I can't find any documentation on the  
SOAP.RPCRequest() function. When I click it in SOAPLib Stack, it just  
shows the name.

I have the following snippet that I am trying to get to work before  
moving onto more complex commands:

------------------------------------------------------------------------ 
-----------
--
--  mouseUp
--
------------------------------------------------------------------------ 
-----------
on mouseUp
   local myParams
   local myURL
   local myMethod
   local myNameSpace
   local mySoapAction
   local mySoapResponse
   local mySOAPData

   put empty into myParams
   put SOAP.AddParam(myParams,"UserName","Danny","string") into  
mySOAPData

   put "http://www.genxdev.com/ws/UserService.asmx?wsdl" into myURL
   put "DoesUserExist" into myMethod
   put "http://dykyh.com/ws" into myNameSpace
   put "http://dykyh.com/ws/DoesUserExist" into mySoapAction
   put SOAP.RPCRequest 
(myURL,myMethod,myNameSpace,myParams,mySoapAction) into mySoapResponse
   put mySoapResponse into field 1
end mouseUp

This was taken from the old SOAP Stack, however there are now more  
parameters into RPCRequest() and I have no clue what to set them to.

Thanks a lot
All the Best
Dave

On 5 Oct 2007, at 19:06, Mark Wieder wrote:

> Dave-
>
> I've put my updated version of the stack on revOnline as libSOAP  
> (in user
> space mwieder). There are still some things that won't work from the
> original, as I don't really understand what was intended for these  
> handlers,
> and they're noted as such in the stack script. The others are fully
> functional and I use them for web services work, even over an https
> connection.
>
> -- 
>  Mark Wieder
>  mwieder at ahsoftware.net
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list