I am giving u sample VB client code and web-service code which is working
properly.
You can convert VB code in ASP syntax. Hope this will help you.

Web-Service has one parameter only.
I am using

tomcat 3.2, apache 1.3.20, soap 2.1 or higher and MS-Soap 2.0 beta 2
release.


<<<<<<<<<<<<<< Client Code >>>>>>>>>>>>>>>>>>>>>>>

Dim Serializer As New SoapSerializer
Dim Connector As SoapConnector
Dim Reader As New SoapReader
Dim str As String

str = "hey can u here me"

Set Connector = New HttpConnector

Connector.Property("EndPointURL")
= ""http://localhost:8080/soap/servlet/rpcrouter";

Connector.Connect Nothing

Connector.Property("SoapAction") = "urn:ASDCCServer"    ' This is the id of
Web-Service deployed


Connector.BeginMessage Nothing


Serializer.Init Connector.InputStream


Serializer.startEnvelope


    Serializer.startBody


      Serializer.startElement "ASDCCRecieve", "urn:ASDCCServer"    '
ASDCCRecieve is method of web-service


         Serializer.startElement "xmlstrm"   'xmlstrm parameter of
web-service


             Serializer.writeString str  'value of parameter


         Serializer.endElement


      Serializer.endElement


    Serializer.endBody

Serializer.endEnvelope


Connector.EndMessage


Reader.Load Connector.OutputStream

msgbox  Reader.RPCResult.Text

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

<<<<<<<<<<<<<<<<<<<<<<< Web-Service Code >>>>>>>>>>>>>>>>>>>>>>>


import java.io.*;
import java.util.*;
import com.jobjects.jst.*;

public class ASDCCServer

{


   public String ASDCCRecieve(String xmlstrm) throws Exception

     {

          try
             {
           return "XML-Stream Accepted - " + xmlstrm;
              }

          catch (Exception e)
             {
                    return  e.getMessage();
              }
     }

}

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


<<<<<<<<<<<<<<<< deployement descriptor >>>>>>>>>>>>>>>>>>>>>>>>

<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment";
             id="urn:ASDCCServer">
  <isd:provider type="java"
                scope="Application"
                methods="ASDCCRecieve">
    <isd:java class="ASDCCServer" static="false"/>
  </isd:provider>


<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>

  <isd:mappings>
     <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
             xmlns:x="" qname="x:xmlstrm"
             xml2JavaClassName
="org.apache.soap.encoding.soapenc.StringDeserializer"/>
  </isd:mappings>

</isd:service>

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Brajendra Singh
Software Engineer
Max Ateev Limited

Reply via email to