Luke Robison's personal website

"for all of luke's hosting needs"

Best viewed in anything other than Internet Explorer.... lynx would work for goodness sake!

If this text is red, please update to a good browser (like firefox)

If you are looking to contact me, send me an email at luke@robisonranch.net or call me at 210.316.4752.

I am availible for hire as a web designer, PC technician, or to help teach you how to use your computer.

In the News/Blog:


Feb 2006 - further SOAP notes
here is the webconnector announcement, that helped me a lot:
http://developer.intuit.com/support/technical/?id=392

there are a few things you need before you can get a working setup:

() a .qwc file on the client's machine.  the user will double click this file to install it into their WebConnector.

***The example file on the website will not work!!!!!***
you need to add the line ""
(looking now i can't find an example on the website, but i know i did at some point)

() A wsdl file.  The one included on the website works fine, make sure you change the  tag to your URL.
my wsdl file is at: http://secure.weblings.net/qb/luke.wsdl
the wsdl file works as an api both the the php constructor, and for *you*.  check it to ensure you are getting and returning arguments correctly.

--------------
ok, here is how it works:
make a class that implements the functions in this diagram:
http://developer.intuit.com/uploadedImages/Support/Technical/Figure03_StateMachine.jpg
each of these functions will take only one argument.
this argument is a class (struct?) that has the members defined in the wsdl.
for example: the authenticate function:
function authenticate($args) {
  //  $args->strUserName and $args->strPassword are available for use
}
notice when passing things back from a function, you must construct a similar data structure.  there might be a better way of doing this, but so far i have made an array with named elements:
return array('authenticateResult'=>array($ticket,"accepted");
notice that the authenticateResult is an array of strings, and that what should be returned changes whether the user was authenticated or not.  see the webconnector announcement for what the elements should be.

be sure to return a named data structure: even though the authenticateResponse is the only things being returned, it still must be named!!

the working set of files may be found at vav:/webs/set1/secure.weblings.net/qb
the simpleserver.php has a good use of arguments, and getting and returning data.
the server.php implements a class used for the server, this is obviously the way we want to do it, and has some decent  documentation in it.

hope that helps, give me a call with any problems

-luke

here is a working qwc: (the file name doesn't matter)
[code  file="luke.qwc"]



Weblings Test
1234
https://secure.weblings.net/qb/luke.wsdl
Description of Weblings test
http://secure.weblings.net
luke
{d6c6da71-fd14-4743-a88e-d09ecc54902a}
{11111111-2222-3333-4444-555555555555}
QBFS



[/code]

Jan 6 2006 - SOAP notes
when args are passed to or from a soap client, they are accessable as members of a class

when args are returned, they need to be contructed using arrays indexed by strings. The stings you index the arrays with corrospond to the name of each variable you are returning.
from IBM's site:
Oct 13, 2004 - 12:17
I'm at UT now - check out my CC303 lectures in .ogg format in the Files section. They are named after the date given ("2004-10-13.ogg")