The code for a SOAPMethod that was revealed when exporting the App
source in 5.5.5 has support for an "object" parameter. The following
extract suggests that if you create the theXMLforthecollection
parameter as an XMLNode then it will be included.
SOAPMethod.GetParameterNode:
Function GetParameterNode(env as xmlDocument, idx as integer) As xmlNode
...
select case inputParams.value(pname).type
...
case 9// object
if inputParams.value(pname).objectValue isa XMLNode then
xnode = xmlElement(inputParams.value(pname).objectValue)
end
...
end
...
// return parameter node
return xnode
End Function
Regards,
Neil.
On 3 Apr 2006, at 15:53, Jason Essington wrote:
Unfortunately, this is a limitation of the RB SOAP implementation.
It really only supports parameters of basic types (String, Integer,
Double, Date, Boolean, etc).
There are two feature requests that are somewhat relative to this
problem:
http://support.realsoftware.com/feedback/viewreport.php?
reportid=bjlqxfiw
http://support.realsoftware.com/feedback/viewreport.php?
reportid=hfrlqkub
I suppose in the interim you could subclass HTTPSocket and override
the SetPostContent method to add your custom types in the
appropriate place. then use that socket with SOAPMethod via the
useSocket method.
It is an ugly solution, but it is probably less work than writing
your own SOAP implementaion.
-jason
On Apr 2, 2006, at 9:16 AM, Björn Eiríksson wrote:
Hello
I am having trouble with filling up a collection parameter when
using REALbasic soap.
Soap method parameters are filled like this in REALbasic:
m_SoapMethod.Parameter("productGuid") = productGuid
But I have no idea how to fill in the <serialNumbers> parameter
bellow which is a collection of other items, there seems to be no
handling for this in the REALbasic Soap implementation, and to
make the matter worse then it does not even allow me to create the
XML my self in a string and assign it to the Soap method object.
Unless if I can do something like this: m_SoapMethod.Parameter
("serialNumbers") = theXMLforthecollection
Though I doubt it. *sigh*
<vendor>string</vendor>
<productGuid>string</productGuid>
<customerName>string</customerName>
<serialNumbers> <<<<<<<<<< Trouble starts here
<anyType /> <anyType />
</serialNumbers>
--
_____________________________________________________________________
_
Björn Eiríksson [EMAIL PROTECTED]
Einhugur Software
http://www.einhugur.com/
_____________________________________________________________________
_
Einhugur Software has sold its products in 52 countries world wide.
_____________________________________________________________________
_
For support: [EMAIL PROTECTED]
To post on the maillist: [EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>