I've got some VB code that's supposed to retrieve a Map from a Web Service written in Java, running under Tomcat via Axis-1.4. I'll list the WSDL, the response message and the source code below.
My problem is that while the response contains actual data, the call to Invoke() returns Nothing. I'm hoping someone can tell me why.
Thanks in advance. WSDL (i hope stripped down to about the bare minimum): - <?xml version="1.0" encoding="UTF-8"?>
-
<wsdl:definitions targetNamespace="urn:my-vmapi" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:my-vmapi" xmlns:intf="urn:my-vmapi" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
-
<!--WSDL created by Apache Axis version: 1.4
-
Built on Apr 22, 2006 (06:55:48 PDT)-->
-
<wsdl:types>
-
<schema targetNamespace="urn:my-vmapi" xmlns="http://www.w3.org/2001/XMLSchema">
-
<import namespace="http://xml.apache.org/xml-soap"/>
-
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
-
<complexType name="ArrayOf_soapenc_string">
-
<complexContent>
-
<restriction base="soapenc:Array">
-
<attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>
-
</restriction>
-
</complexContent>
-
</complexType>
-
</schema>
-
<schema targetNamespace="http://xml.apache.org/xml-soap" xmlns="http://www.w3.org/2001/XMLSchema">
-
<import namespace="urn:my-vmapi"/>
-
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
-
<complexType name="mapItem">
-
<sequence>
-
<element name="key" nillable="true" type="xsd:anyType"/>
-
<element name="value" nillable="true" type="xsd:anyType"/>
-
</sequence>
-
</complexType>
-
<complexType name="Map">
-
<sequence>
-
<element maxOccurs="unbounded" minOccurs="0" name="item" type="apachesoap:mapItem"/>
-
</sequence>
-
</complexType>
-
</schema>
-
</wsdl:types>
-
<wsdl:message name="getRequest">
-
<wsdl:part name="username" type="soapenc:string"/>
-
<wsdl:part name="admin" type="soapenc:string"/>
-
<wsdl:part name="password" type="soapenc:string"/>
-
</wsdl:message>
-
<wsdl:message name="getResponse">
-
<wsdl:part name="getReturn" type="apachesoap:Map"/>
-
</wsdl:message>
-
<wsdl:portType name="Provisioning">
-
<wsdl:operation name="get" parameterOrder="username admin password">
-
<wsdl:input message="impl:getRequest" name="getRequest"/>
-
<wsdl:output message="impl:getResponse" name="getResponse"/>
-
</wsdl:operation>
-
</wsdl:portType>
-
<wsdl:binding name="vmSoapBinding" type="impl:Provisioning">
-
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
-
<wsdl:operation name="get">
-
<wsdlsoap:operation soapAction=""/>
-
<wsdl:input name="getRequest">
-
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:my-vmapi" use="encoded"/>
-
</wsdl:input>
-
<wsdl:output name="getResponse">
-
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:my-vmapi" use="encoded"/>
-
</wsdl:output>
-
</wsdl:operation>
-
</wsdl:binding>
-
<wsdl:service name="ProvisioningService">
-
<wsdl:port binding="impl:vmSoapBinding" name="vm">
-
<wsdlsoap:address location="http://myapi.com/axis/services/vm"/>
-
</wsdl:port>
-
</wsdl:service>
-
</wsdl:definitions>
The Response: - <?xml version="1.0" encoding="utf-8"?>
-
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-
<soapenv:Body>
-
<ns1:getResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:my-vmapi">
-
<getReturn href="#id0"/>
-
</ns1:getResponse>
-
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Map" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://xml.apache.org/xml-soap">
-
<item>
-
<key xsi:type="soapenc:string">ext</key>
-
<value xsi:type="soapenc:int">120</value>
-
</item>
-
<item>
-
<key xsi:type="soapenc:string">box_size</key>
-
<value xsi:type="soapenc:int">5</value>
-
</item>
-
<item>
-
<key xsi:type="soapenc:string">mb_username</key>
-
<value xsi:type="soapenc:string">john</value>
-
</item>
-
<item>
-
<key xsi:type="soapenc:string">language</key>
-
<value xsi:type="soapenc:string">en</value>
-
</item>
-
<item>
-
<key xsi:type="soapenc:string">firstname</key>
-
<value xsi:type="soapenc:string">John</value>
-
</item>
-
<item>
-
<key xsi:type="soapenc:string">lastname</key>
-
<value xsi:type="soapenc:string">Smith</value>
-
</item>
-
<item>
-
<key xsi:type="soapenc:string">attach</key>
-
<value xsi:type="soapenc:boolean">true</value>
-
</item>
-
<item>
-
<key xsi:type="soapenc:string">PIN</key>
-
<value xsi:type="soapenc:string">7777</value>
-
</item>
-
<item>
-
<key xsi:type="soapenc:string">email</key>
-
<value xsi:type="soapenc:string">js@qmail.org</value>
-
</item>
-
<item>
-
<key xsi:type="soapenc:string">password</key>
-
<value xsi:type="soapenc:string">pwd</value>
-
</item>
-
</multiRef>
-
</soapenv:Body>
-
</soapenv:Envelope>
The Code: - <System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace:="urn:my-vmapi", ResponseNamespace:="urn:my-vmapi")> _
-
Public Function [get](ByVal username As String, ByVal admin As String, ByVal password As String) As <System.Xml.Serialization.SoapElementAttribute("getReturn")> Map
-
Dim results() As Object = Me.Invoke("get", New Object() {username, admin, password})
-
Return CType(results(0),Map)
-
End Function
5 4413
Not sure how to help you on this one. But you can use java programs in .NET if you compile them with the Microsoft compiler. Microsoft uses J# which is an almost verbatim port of Sun's Java. If it works for you in Java but not in VB maybe you can stick with that?
I appreciate the response, but working in J# isn't going to be the solution, for at least a couple of reasons: - The Web Service runs on Linux, under Tomcat; I don't suppose J# will do that.
- The Service seems to be running fine - it puts out what seems to be a correct SOAP message as a response; it's just that the client code doesn't understand it.
I appreciate the response, but working in J# isn't going to be the solution, for at least a couple of reasons: - The Web Service runs on Linux, under Tomcat; I don't suppose J# will do that.
- The Service seems to be running fine - it puts out what seems to be a correct SOAP message as a response; it's just that the client code doesn't understand it.
Has this been working in the past?
Has this been working in the past?
I've got Java and PHP clients that have no trouble, but this is the first time I've tried it with a .NET client.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Maarten van Reeuwijk |
last post by:
Hello,
I am using the Numeric package, and I need to strip edge cells off an array
(dimension unknown) in an a-priori unknown direction. I implented this as
follows:
def el_remove_bcells(var,...
|
by: Jacky Zhu |
last post by:
Hi all,
I am having a problem trying to consume a webservice that is developed on
..Net.
I can access it without any problem using a .net client, but when I use a
java client (based on Axis...
|
by: Claus Haslauer |
last post by:
Hi,
I want to create a chart
value (y-axis) vs. time (x-axis). In fact very similar to the
xy(scatter) example in the graph10.chm help-file.
I ran into problems, so I started a very basic *.mdb...
|
by: Lilly |
last post by:
I was testing a very simple web services written in Axis (1.2RC2) with
just a single method, returning a string "test". The method doesn't
need any parameters. when I tested it using .Net client,...
|
by: PkRichard |
last post by:
I want to change the x axis of my mschart.
I can change the y axis with the following commando:
With Chart1.Plot.Axis(MSChart20Lib.VtChAxisId.VtChAxisIdY).ValueScale
.Auto = False
.Minimum =...
|
by: Mrozik |
last post by:
I call ASP.NET WebService method from Java client (axis)
- call contains file as attachment.
This is my code:
String filePath = "F:\\Download\\17MAR2005 Exception Handling
Block.ppt"; // 1.6 MB...
|
by: nawrin22 |
last post by:
hi..
I am a niwebie in 'AXIS' . but i had correctly installed it without any problem
with the help of 'apache.axis.install.pdf' and also tested the examples
under 'samples\userguide' directoy...
|
by: dadasurf80 |
last post by:
Hello,
I've a problem with Axis which gives me a "Session alreday invalidated" message after a time of inactivity.
I use:
- Tomcat : 4.1.29
- Axis : 1.3
- JVM : 1.4.2-b28
The complete...
|
by: Gosi |
last post by:
It is quite easy to call J from Python
http://groups.google.com/group/J-Programming/browse_thread/thread/5e84b75667f5f64e
|
by: Just_a_fan |
last post by:
Some folks have searched, from time to time, for a dual axis MSChart
with different scales on the two Y axes. The sample, extracted from
running code I wrote, produces a graph with MSChart (VB9)...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |