Jason,

I am not sure if this will help you, but here goes. I did a quick test a
while ago to see if VB would work with Axis SOAP. I used MS SOAP 3.0. I did
NOT generate wrapper classes for the VB client instead, I let MS Soap do the
work for me. The wsdl I used was one generated using axis (however it needed
to be edited to put in the correct schema types, i.e. look at wsdl:types in
the wsdl included below). The VB code extract would look likee;

    Dim sc As MSSOAPLib30.SoapClient30
    Set sc = New MSSOAPLib30.SoapClient30
     sc.MSSoapInit "E:\bdTests\axis\combined.wsdl"
     Dim xmlOid As String
        'NB -> In a real worl scenario some mapping here would be required
to change from an Oid to the XML below
     xmlOid = "<Oid
xmlns=""http://www.fineos.com/XMLSchema/ta"";>PE:03003:0000034456</Oid>"
     'OidOutputBox.Text = sc.myTestCallOid(xmlOid)
        'The result returned is a SOAP message which needs to be parsed for
the return value
     Set test = sc.myTestCallOid(xmlOid)
     'NB:-> I did not test INOU/OUT values
     OidOutputBox.Text = test.context.lastChild.xml

I hope this gives you some idea as to how to go forward,

Brian

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://wsdlService";
xmlns="http://schemas.xmlsoap.org/wsdl/";
xmlns:apachesoap="http://xml.apache.org/xml-soap";
xmlns:impl="http://wsdlService"; xmlns:intf="http://wsdlService";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:ta="http://www.fineos.com/XMLSchema/ta";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
        <wsdl:types>
                <schema targetNamespace="http://www.fineos.com/XMLSchema/ta";
xmlns="http://www.w3.org/2001/XMLSchema";>
                        <import
namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
                        <xsd:include schemaLocation="Oid.xsd"/>
                        <!--element name="Oid" nillable="true"
type="tns1:Oid" /-->
                </schema>
        </wsdl:types>
        <wsdl:message name="myTestCallResponse">
                <wsdl:part name="myTestCallReturn" type="xsd:string"/>
        </wsdl:message>
        <wsdl:message name="myTestCallOidRequest">
                <wsdl:part name="in0" type="ta:Oid"/>
        </wsdl:message>
        <wsdl:message name="myTestCallOidResponse">
                <wsdl:part name="myTestCallOidReturn" type="ta:Oid"/>
        </wsdl:message>
        <wsdl:message name="myTestCallRequest">
                <wsdl:part name="in0" type="xsd:string"/>
        </wsdl:message>
        <wsdl:portType name="MyTestSoapSrvImpl">
                <wsdl:operation name="myTestCall" parameterOrder="in0">
                        <wsdl:input message="impl:myTestCallRequest"
name="myTestCallRequest"/>
                        <wsdl:output message="impl:myTestCallResponse"
name="myTestCallResponse"/>
                </wsdl:operation>
                <wsdl:operation name="myTestCallOid" parameterOrder="in0">
                        <wsdl:input message="impl:myTestCallOidRequest"
name="myTestCallOidRequest"/>
                        <wsdl:output message="impl:myTestCallOidResponse"
name="myTestCallOidResponse"/>
                </wsdl:operation>
        </wsdl:portType>
        <wsdl:binding name="MyTestSoapSrvSoapBinding"
type="impl:MyTestSoapSrvImpl">
                <wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
                <wsdl:operation name="myTestCall">
                        <wsdlsoap:operation soapAction=""/>
                        <wsdl:input name="myTestCallRequest">
                                <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://wsdlService"; use="encoded"/>
                        </wsdl:input>
                        <wsdl:output name="myTestCallResponse">
                                <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://wsdlService"; use="encoded"/>
                        </wsdl:output>
                </wsdl:operation>
                <wsdl:operation name="myTestCallOid">
                        <wsdlsoap:operation soapAction=""/>
                        <wsdl:input name="myTestCallOidRequest">
                                <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://wsdlService"; use="encoded"/>
                        </wsdl:input>
                        <wsdl:output name="myTestCallOidResponse">
                                <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://wsdlService"; use="encoded"/>
                        </wsdl:output>
                </wsdl:operation>
        </wsdl:binding>
        <wsdl:service name="MyTestSoapSrvImplService">
                <wsdl:port binding="impl:MyTestSoapSrvSoapBinding"
name="MyTestSoapSrv">
                        <wsdlsoap:address
location="http://localhost:8080/axis/services/MyTestSoapSrv"/>
                </wsdl:port>
        </wsdl:service>
</wsdl:definitions>


-----Original Message-----
From: Jason Hanshaw [mailto:[EMAIL PROTECTED]]
Sent: 04 February 2003 12:03
To: [EMAIL PROTECTED]
Subject: Axis and VB.NET compatibility.


Ladies and Gentlemen,

  I am looking for a very simple and definitive answer to a question.  I
have an EJB accessed via soap through AXIS, which returns a number of
different types, including a number of complex types.  When I used WSDL
supplied with the .NET Framework, it generates the wrapper classes to make
the soap calls, and this code in fact calls the server, and diagnostics
shows it is a valid, and well formed request.  When the soap document is
returned .net is unable to handle it, complaining about Error in document
(5,5).  I am assuming this is a marshalling issue with the complex types
involved.

My question is, is this problem solvable(I have seen it asked many times,
but no really good answer/definitive answer).

And secondly, does anyone know how to fix it.  Pointing me at the correct
documentation/samples/tutorials would be most appreciated.  If I can find a
solution with other peoples assistance I would be most appreciative, and
would post a follow up response,  explaining in detail how to do it, helping
the community at large.

Thank you in advance,

J Hanshaw, Developer.


**************************************************************************
The information contained in this e-mail is confidential,
may be privileged and is intended only for the use of the
recipient named above. If you are not the intended
recipient or a representative of the intended recipient,
you have received this e-mail in error and must not copy,
use or disclose the contents of this email to anybody
else. If you have received this e-mail in error, please
notify the sender immediately by return e-mail and
permanently delete the copy you received. This email has
been swept for computer viruses. However, you should
carry out your own virus checks.


Registered in Ireland, No. 205721. http://www.FINEOS.com
**************************************************************************

Reply via email to