473,395 Members | 1,454 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,395 software developers and data experts.

Java client accessing .NET web service interoperablility

All,

I wonder if anyone can help/advise with the following interoperability
issue we are encountering?

We have a .NET web service that takes an abstract type as parameter.
Using it from a .net client works OK. However calling the method from
a java client (Websphere 5.0) we see the following error being thrown
on the call to the method.

System.InvalidOperationException: There is an error in XML document
(4, 94).
System.InvalidOperationException: The specified type is abstract:
name=Key
The method signature is as follows:

public string GetData(Key key)

....where Key is an abstract class.

Using the SOAP Trace utility I can see that the messages being sent
are different:

From .NET client:

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetData xmlns="http://paulstest.com/webservices/gcs/PolicyService">
<key xsi:type="SectionKey">
<Transaction>38630</Transaction>
<Component>8</Component>
<MasterNumber>9092DM</MasterNumber>
<MasterSequence>001</MasterSequence>
<SectionSequence>10</SectionSequence>
<SectionType>FIR</SectionType>
<SubSectionType>BLD</SubSectionType>
</key>
</GetData>
</soap:Body>
</soap:Envelope>

From Java client:

<?xml version="1.0"?>
<SOAPENV:Envelope xmlns:SOAPENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAPENV:Body>
<Q1:GetData xmlns:Q1="http://paulstest.com/webservices/gcs/PolicyService">
<Q1:key>
<Q1:Transaction>38627</Q1:Transaction>
<Q1:Component>8</Q1:Component>
<Q1:Transaction>38627</Q1:Transaction>
<Q1:Component>8</Q1:Component>
<Q1:MasterNumber>9092DJ</Q1:MasterNumber>
<Q1:MasterSequence>001</Q1:MasterSequence>
<Q1:Transaction>38627</Q1:Transaction>
<Q1:Component>8</Q1:Component>
<Q1:MasterNumber>9092DJ</Q1:MasterNumber>
<Q1:MasterSequence>001</Q1:MasterSequence>
<Q1:Transaction>38627</Q1:Transaction>
<Q1:Component>8</Q1:Component>
<Q1:MasterNumber>9092DJ</Q1:MasterNumber>
<Q1:MasterSequence>001</Q1:MasterSequence>
<Q1:SectionSequence>10</Q1:SectionSequence>
<Q1:SectionType>FIR</Q1:SectionType>
<Q1:SubSectionType>BLD</Q1:SubSectionType>
</Q1:key>
</Q1:GetData>
</SOAPENV:Body>
</SOAPENV:Envelope>

I know that the Component and transaction parts of Key are duplicated
in the Java SOAP messages - but this happens for other messages that
do not use an abstract class and they work fine from Java client.

The main problem part that I can see is that the .NET client sends:

<key xsi:type="SectionKey">

but the Java client sends:

<Q1:key>

However, even if I manually insert the 'xsi:type="SectionKey"' in the
Java SOAP message I get:

System.InvalidOperationException: There is an error in XML document
(4, 94).
System.InvalidOperationException: The specified type was not
recognized: name='SectionKey'
I have also tried setting the WebMethod to be SOAPDocumentType Literal
and Encoded aswell as SOAPRPCMethod without any luck.

Any ideas??

Thanks,

Paul
Jul 17 '05 #1
0 4427

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

Similar topics

2
by: B Deepak | last post by:
Hi, I have a c# developed web service deployed on IIS. and I am accessing it thorogh java client. Now the problem is whenever we call a web method with a parameter list from java client, web...
7
by: David Laub | last post by:
I've also posted this issue to a Sun/java formum, but since it appears to be an integration issue, this may be the better place to posr: I have written a dot net/c# Web Services doesn't fully...
4
by: Khalique | last post by:
I have built a web service whose purpose is to copy files from a secure place to client machine and vice versa. The problem I am having is perhaps related to permissions and access rights. For...
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...
1
by: srpatna | last post by:
I am trying to access Web Service of a Vendor. Its built using Java on Weblogic. Connection is restricted to users with client certificate provided by them and NOT from any recognised authority....
0
by: vijayalakshmi.venkataraman | last post by:
Hello, I have a .NET client that accesses a Java webservice. Let me first say that the client stub I got generated from the wsdl was incomplete and had to make changes to it manually to make it...
1
by: kapil.singhal | last post by:
Hello, I have created a VC++ Client in Visual Studio 6.0 which is accessing the Java Web Service. I have generated the proxy file using GSOAP 2.6 Toolkit and I am able to access the functions of...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
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...
1
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.