Xojo Conferences
XDCMay2019MiamiUSA

=?windows-1256?Q?passing pa?= =?windows-1256?Q?rameters t?= =?windows-1256?Q?o soap met?= =?windows-1256?Q?hod=FE?= (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Web edition, e-commerce & certificates
Next thread: getting administrator privileges with applescript


TypeLibs and API Interfaces for Windows   -   Garth Hjelte
  =?windows-1256?Q?passing pa?= =?windows-1256?Q?rameters t?= =?windows-1256?Q?o soap met?= =?windows-1256?Q?hod=FE?=   -   Daniele Murabito

=?windows-1256?Q?passing pa?= =?windows-1256?Q?rameters t?= =?windows-1256?Q?o soap met?= =?windows-1256?Q?hod=FE?=
Date: 02.08.11 08:25 (Tue, 2 Aug 2011 09:25:01 +0200)
From: Daniele Murabito

Hi guys,
I have a Soap complex type like this:

<xsd:complexType name="loginCredentials">
<xsd:all>
<xsd:element name="user" type="xsd:string"/>
<xsd:element name="pwd" type="xsd:string"/>
<xsd:element name="ID" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<message name="doLoginRequest">
<part name="parameters" type="tns:loginCredentials"/>
</message>
<message name="doLoginResponse">
<part name="return" type="xsd:string"/>
</message>

In my RB project i wrtite this:

Dim sm As SOAPMethod
Dim sr As SOAPResult

sm=new SOAPMethod

Dim param as New Dictionary
param.Value("user")="usernamevalue"
param.Value("pwd")="passwordvalue"
param.Value("ID")="IDValue"

sm.Parameter("parameters") = param

sm.methodNamespace="mynamespace"
sm.action="http://parth/action/doLogin"
sm.url ="myurl"
sr=sm.invoke("doLogin")

dim xdoc as XmlDocument
xdoc=sr.document

if(sr<>nil) then
TextArea1.text = xdoc.ToString
end if

Exception e
MsgBox e.Message


I receive a fault error, because some parameters were not passed correctly. How I wrong?

Thanks

Matt86
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>