Title: [newbie] how to consume my webservice?
 
-----Ursprüngliche Nachricht-----
Von: JEFF EMMINGER [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 26. Februar 2004 17:17
An: '[EMAIL PROTECTED]'
Betreff: [newbie] how to consume my webservice?

hi all,

newbie here...suppose I've deployed my webservice SimpleService...how do clients consume it?  the examples in soap-2_3_1 all use a java class to consume, but it doesn't seem practical to have to create a java class and distribute to all my clients?  shouldn't they be able to send a soap request via http post?

thanks,
Jeff
[Malte Kempff] 

well I think it is very practical to have a class having a routine doing a kind of native soap call. Then I dirived it for some more spezial methods calling this method by feeding it with parameters to the server part of my application.  Why do you think it is not suitable for you?

the method's signature which does actually the soap call in my client-application looks like this

    protected Object callSoaply(String callName, Vector params) throws MalformedURLException, SOAPException, Exception

while the return value is the response of the soap server

the more special routines in the dirived classes which are responsible for data-retrieving look something like this

   public Vector retrieveSomething(String parm1,
                                                    String parm2  // or what ever parameter you like to pass ) throws MalformedURLException,
                                                                SOAPException,
                                                                Exception
    {
        Vector     returnVec = null; // or what ever you want to get from the server part
        Vector     params      = new Vector();
        params.add(new Parameter("spartenId", String.class, parm1, null));
        params.add(new Parameter("hausId",    String.class, parm2,  null));

        // or what ever parameter you like to pass

        returnVec = (Vector)callSoaply(TechnicalConstants.CALL_GET_HAUS_ARTIKEL, params);

        return returnVec ;
    }

having such a callSoaply-method you do not bother so much anymore about placing a soap-call





CONFIDENTIAL NOTICE: This email including any attachments, contains
confidential information belonging to the sender. It may also be
privileged or otherwise protected by work product immunity or other
legal rules. This information is intended only for the use of the
individual or entity named above.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or the taking of any action in reliance on the contents
of this emailed information is strictly prohibited.  If you have
received this email in error, please immediately notify us by
reply email of the error and then delete this email immediately.

Reply via email to