473,216 Members | 1,292 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,216 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 4414

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: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.