473,394 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

C# client consuming Java Axis (1.2RC2) Web Service

I'm sure this topic has been "around the block" a few times, but I have not
been able to find ANY solutin that fits this particular problem. I have
written a Java Axis web service that has a method which returns an object
with the following characteristics:

public class MMPerson {
public string firstName;
public string surname;
public int age;
public MMAddress address;
}

public class MMAddress {
public string street;
public string city;
public string state;
public string country;
public string postcode;
}

The method is called and via SOAPMonitor (utility to trace the SOAP messages
from server to client) I can see that the Request and Response messages are
fine and dandy:

Request:
--------
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<test_Person
xmlns="http://localhost:8080/axis/services/MarketManagerWebService">
<Username>guest</Username>
</test_Person>
</soap:Body>
</soap:Envelope>

Response:
---------
<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>
<test_PersonResponse
xmlns="http://localhost:8080/axis/services/MarketManagerWebService">
<test_PersonReturn>
<firstName>John</firstName>
<surname>Doe</surname>
<age>26</age>
<address>
<street>51 New Street</street>
<city>London</city>
<state>N/A</state>
<country>UK</country>
<postCode>SW1 5XZ</postCode>
</address>
</test_PersonReturn>
</test_PersonResponse>
</soapenv:Body>
</soapenv:Envelope>

Unfortunately, when the proxy instantiates the relevant class in c#, all of
the parameters (member variables) are un-initialised...

oPerson.firstName = null
oPerson.surname = null
oPerson.age = 0
oPerson.address = null

I will provide the relevant proxy code (Autogenerated by the reference to
the WSDL) OR the WSDL to whoever thinks that they can help me out.
--
Kind regards,

Jamie
Nov 23 '05 #1
0 1020

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: umhlali | last post by:
I get the following exception when my VB.NET app calls a Java web service that returns an array of objects. The same call works for a single object though. So looks like there is no problem...
4
by: JLJ | last post by:
I have a very simple webservice written in Java/Axis. It takes in a complexType with 2 string elements, userid and password. The response is a complexType containing two complexTypes each having...
0
by: Jamie Phillips | last post by:
I'm sure this topic has been "around the block" a few times, but I have not been able to find ANY solutin that fits this particular problem. I have written a Java Axis web service that has a method...
7
by: Jamie Phillips | last post by:
I'm sure this topic has been "around the block" a few times, but I have not been able to find ANY solutin that fits this particular problem. I have written a Java Axis web service that has a method...
3
by: Tom_B | last post by:
Trying to consume with a VB.Net client a Java Axis web service that returns a DataHandler type. After much searching on the internet -- no clues found. Any ideas on how to do this? Thanks. ...
0
by: dynoweb | last post by:
We have a return object that has a super class called SoapReturnResponse. There are several implementing classes like User, Card, DataTable (not the .net one). When we add the reference in VS...
1
by: John Smith | last post by:
I'm expiriencing the same problem as someone posted one year ago: ...
0
by: stephenmoore | last post by:
Hi, I'm having some dramas talking to a Java (Axis) web service. The 2 main road blocks are: a. the web service request must be signed with a certificate. b. the response includes SwA...
0
by: Ed | last post by:
Hi Guys, Opentext.com has implemented web services for their Livelink software, and many of its customers such as Philips and so on, are using them, for integration. Philips has published...
0
by: ajay p | last post by:
Hi, I have web service which is .NET 2.0. My client is having web service Java AXIs web service. I am able to invoke web method of client web service by passing SOAP Header. Now i facing problem...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
marktang
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,...
0
Oralloy
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,...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.