Hello,
I have a VB client and Java service. I was able to return a String
to the VB client from the service. Now I would like to return a complex
object. It's nothing more than a class (SimpleJavaObject) with has a
reference to another class (MyStringHolder) which has a String.
I've created a wsdl file (below) using the IBM toolkit.. but my VB
Client code ...
Set SC = CreateObject("MSSOAP.SoapClient")
SC.mssoapinit "C:\public\ComplexJavaService_Service.wsdl"
Res = SC.getJavaObject
... gives a "Object doesn't support this property or method" Error. Can
anyone help we work through this?
Do I have to generate client side stub/proxies (I thought SOAP did this)?
Thanks in advance,
Craig
-----------
WSDL:
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="ComplexJavaService_Service"
targetNamespace="http://www.complexjavaserviceservice.com/ComplexJavaService
"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.complexjavaserviceservice.com/ComplexJavaService"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<types>
<xsd:schema
targetNamespace="http://www.complexjavaserviceservice.com/ComplexJavaService
"
xmlns="http://www.w3.org/1999/XMLSchema/">
<xsd:complexType
name="MyStringHolder">
<xsd:element name="_aJavaString"
type="xsd:string"/>
</xsd:complexType>
<xsd:complexType
name="SimpleJavaObject">
<xsd:element name="msh"
type="tns:MyStringHolder"/>
</xsd:complexType>
</xsd:schema>
</types>
<message
name="IngetJavaOjectRequest"/>
<message
name="OutgetJavaOjectResponse">
<part name="meth1_outType"
type="tns:SimpleJavaObject"/>
</message>
<portType
name="ComplexJavaService_Service">
<operation
name="getJavaOject">
<input
message="IngetJavaOjectRequest"/>
<output
message="OutgetJavaOjectResponse"/>
</operation>
</portType>
<binding
name="ComplexJavaService_ServiceBinding"
type="ComplexJavaService_Service">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation
name="getJavaOject">
<soap:operation
soapAction="urn:complexjavaservice-service"/>
<input>
<soap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:complexjavaservice-service"
use="encoded"/>
</input>
<output>
<soap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:complexjavaservice-service" use="encoded"/>
</output>
</operation>
</binding>
<service
name="ComplexJavaService_Service">
<documentation>IBM WSTK 2.0 generated service definition
file</documentation>
<port
binding="ComplexJavaService_ServiceBinding"
name="ComplexJavaService_ServicePort">
<soap:address location="http://montreal:8080/soap/servlet/rpcrouter"/>
</port>
</service>
</definitions>
------------------------------
------------------------------------------------------------
This email message is confidential and subject to copyright.
Any unauthorized use or disclosure is prohibited.