>From the SOAP envelopes below it seems that you are calling two different
methods on the same service.
To get the concat service running properly you will need a different
deployment description on the server that will map all types that VB
supplies to strings. This is done with the <isd:mappings> section of the DD.
Search the archives for this. Briefly, it is a interoperability issue, VB
does not allow you to specify the type mappings for each of the parameters
(unless U use the toolkit and C++, as you can access the stream direct
then). Hope this helps.
-----Original Message-----
From: Janesh Vasudeva [mailto:[EMAIL PROTECTED]]
Sent: 12 July 2001 06:46
To: [EMAIL PROTECTED]
Subject: Re: Anyone implemented vb client with java server
This is intermediate code generated by Vb Client
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAPSDK1:concat xmlns:SOAPSDK1="engine">
<a>hello</a>
<b>india</b>
</SOAPSDK1:concat>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
and this is intermediate code generated by Java Client
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getData xmlns:ns1="engine"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<x xsi:type="xsd:double">12.34</x>
</ns1:getData>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The difference between both of them is encoding part as java provides it's
own encoding for each type of variables through serializers.How do we do
that thru Vb Client so that it gets that data . as serializers are not found
for a and b
Pls hlp
Janesh Kumar Vasudeva
ASAP Sols Pvt Ltd
B-3 Sector -4 Noida
Ph. No. 91-4443211/3212/3213
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 12, 2001 9:51 AM
Subject: Re: Anyone implemented vb client with java server
>
> 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:faultListene
r>
>
> <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
>