You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by Vaibhav Joshi <vj...@multicitycorp.com> on 2002/04/17 20:04:40 UTC

MS SOAP CLIENT

Hi,
 I want to pass 4 parameters to a SOAP Method written in JAVA-APACHE,
through VB,ie. i want to invoke getInstances(String s, String s1,String
s2,String s3)...
Can you please let me know how can i invoke this method using VB. Is there
any sample code u could send me..This is what i am doing..

Method = "getInstances"
 Serializer.startEnvelope
        Serializer.SoapAttribute "xmlns:xsi", , _
                                 "http://www.w3.org/1999/XMLSchema-instance"
        Serializer.SoapAttribute "xmlns:xsd", , _
                                 "http://www.w3.org/1999/XMLSchema"
                                 
        Serializer.startBody
            Serializer.startElement Method, MULTICITY_NS, NS_URI_SOAP_ENC,
"sq"
                'In the Java client, this corresponds to a new
Parameter(...)
                Serializer.startElement "getInstances" 'Method name
                    Serializer.SoapAttribute "xsi:type", , "xsd:string"
                    Serializer.writeString "11"
                Serializer.SoapAttribute "xsi:type", , "xsd:string"
                    Serializer.writeString "s1"
                Serializer.SoapAttribute "xsi:type", , "xsd:string"
                    Serializer.writeString "s2"
                Serializer.SoapAttribute "xsi:type", , "xsd:string"
                    Serializer.writeString "s3"
                Serializer.endElement
            Serializer.endElement
        Serializer.endBody
    Serializer.endEnvelope

----------------------------------------------------------------------------
--------
Vaibhav Joshi
Multicity 
tel: 703-790-0063, ext. 238 | fax: 703-790-3379 
e-mail: vjoshi@multicitycorp.com 
http://www.multicity.com 

Voted "Best Chat" by Yahoo! Internet Life 
and proud to be part of the "100 Best Sites for 2001"

=========================================== 
This email message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message.





Re: MS SOAP CLIENT

Posted by Scott Nichol <sc...@yahoo.com>.
You can check my samples at
http://mywebpages.comcast.net/scottnichol/vbclientapachesoap.htm

>From the code below, it appears you are not doing startElement/endElement for
each parameter.  For example, the symbol parameter for the stock quote client is
serialized by this code:

                Serializer.startElement "symbol"
                    Serializer.SoapAttribute "xsi:type", , "xsd:string"
                    Serializer.writeString "IBM"
                Serializer.endElement

Scott

----- Original Message -----
From: "Vaibhav Joshi" <vj...@multicitycorp.com>
To: <so...@xml.apache.org>
Sent: Wednesday, April 17, 2002 2:04 PM
Subject: MS SOAP CLIENT


> Hi,
>  I want to pass 4 parameters to a SOAP Method written in JAVA-APACHE,
> through VB,ie. i want to invoke getInstances(String s, String s1,String
> s2,String s3)...
> Can you please let me know how can i invoke this method using VB. Is there
> any sample code u could send me..This is what i am doing..
>
> Method = "getInstances"
>  Serializer.startEnvelope
>         Serializer.SoapAttribute "xmlns:xsi", , _
>                                  "http://www.w3.org/1999/XMLSchema-instance"
>         Serializer.SoapAttribute "xmlns:xsd", , _
>                                  "http://www.w3.org/1999/XMLSchema"
>
>         Serializer.startBody
>             Serializer.startElement Method, MULTICITY_NS, NS_URI_SOAP_ENC,
> "sq"
>                 'In the Java client, this corresponds to a new
> Parameter(...)
>                 Serializer.startElement "getInstances" 'Method name
>                     Serializer.SoapAttribute "xsi:type", , "xsd:string"
>                     Serializer.writeString "11"
>                 Serializer.SoapAttribute "xsi:type", , "xsd:string"
>                     Serializer.writeString "s1"
>                 Serializer.SoapAttribute "xsi:type", , "xsd:string"
>                     Serializer.writeString "s2"
>                 Serializer.SoapAttribute "xsi:type", , "xsd:string"
>                     Serializer.writeString "s3"
>                 Serializer.endElement
>             Serializer.endElement
>         Serializer.endBody
>     Serializer.endEnvelope
>
> ----------------------------------------------------------------------------
> --------
> Vaibhav Joshi
> Multicity
> tel: 703-790-0063, ext. 238 | fax: 703-790-3379
> e-mail: vjoshi@multicitycorp.com
> http://www.multicity.com
>
> Voted "Best Chat" by Yahoo! Internet Life
> and proud to be part of the "100 Best Sites for 2001"
>
> ===========================================
> This email message is for the sole use of the intended recipient(s) and may
> contain confidential and privileged information. Any unauthorized review,
> use, disclosure or distribution is prohibited.  If you are not the intended
> recipient, please contact the sender by reply email and destroy all copies
> of the original message.
>
>
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Re: MS SOAP CLIENT

Posted by Scott Nichol <sc...@yahoo.com>.
You can check my samples at
http://mywebpages.comcast.net/scottnichol/vbclientapachesoap.htm