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

Soap compat issues between .Net and j2Ee

Hi,

Im trying to consume a webservice which i have no control over, it is
built in j2ee, and I want to consume it using .Net.

I have tried both, and the soap generated from .Net looks completely different
from the one generated from java, and from SoapScope!

Ive attached the different generated SOAPS below, seems like
the structure is completely different. Is there some setting I can
use to control this, so that "Correct" Java-friendly SOAP is produced?

the last one, the dot.net one has some fancy HREF trick which seem fishy!
Ive even tried the "contract first" kit provided by thinktecture
(http://www.thinktecture.com/Resource...t/default.html)
it generates the same stuff.

Please any info will be appreciated!

- Andreas
-------------------------- here is the soapscope one
----------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:mrns0="SNIP"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://localhost/WebServices/DocumentPoller/PollForDocumentRequest"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<mrns0:PollForDocumentRequest>
<PollForDocumentRequest xsi:type="tns:__PollForDocumentRequest2">
<Action xsi:type="xs:string">GetCount</Action>
</PollForDocumentRequest>
</mrns0:PollForDocumentRequest>
</soap:Body>
</soap:Envelope>
------------------------------------------------------------------------------------
---------------- Here is the generated code from .net ---------------------
------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://tempuri.org/" xmlns:types="http://tempuri.org/encodedTypes"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<q1:PollForDocumentRequest xmlns:q1="SNIP">
<PollForDocumentRequest href="#id1" />
</q1:PollForDocumentRequest>

<q2:__PollForDocumentRequest2 id="id1"
xsi:type="q2:__PollForDocumentRequest2"
xmlns:q2="http://localhost/WebServices/DocumentPoller/PollForDocumentRequest">
<Action xsi:type="xsd:string">GetCount</Action>
</q2:__PollForDocumentRequest2>

</soap:Body>
</soap:Envelope>

Mar 29 '06 #1
0 939

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

Similar topics

1
by: sreak | last post by:
Need to find the cause of the following error: The sample code goes as follows:( file name version.cpp ) #include <iostream> struct version { int val; }; int main()
3
by: parrot toes | last post by:
Summary: I have been trying to make requests of a web service provided by Axis using a dotnet client with code generated by wsdl.exe and have been getting exceptions when trying to process the...
6
by: A.M-SG | last post by:
Hi, We are developing a SmartClient application and we are planning to expose business objects layer to SmartClient application by using ASP.NET SOAP web services.
1
by: paul.drummond | last post by:
Hi all, I am new to whole idea of "web services" and architectures such as .NET and J2EE so please bare with me. I am trying to research as much as possible before asking silly questions but...
1
by: Mongo | last post by:
I have an interesting situation with soap:address being dynamically generated. My production environment has a load balancer that is doing https encryption. From there it communicates with my...
1
by: Hema | last post by:
Onsite Assignment with SIEMENS / 6-8 years experience /J2EE/SOAP/EAI The position that we have is a long term onsite assignment to US with SIEMENS. J2EE, EAI, SOAP technologies 6-8 years of...
1
by: Florian Grousset | last post by:
Hi, I'm trying to code a simple C# SOAP client wich query an Axis2 Java SOAP Server. Server side code has been generated from a WSDL file. SOAP requests and responses must both contain a simple...
15
by: =?Utf-8?B?ZG91Zw==?= | last post by:
I hadn't had a class yet and I had some MS help on this to set up, but I wrote a .Net WS that creates a proxy class response using SOAP. Works fine. And in kind of a good way, the IDE has hidden...
5
by: =?Utf-8?B?SmltbWVy?= | last post by:
Hello, I've been trying to create a WCF SOAP Router Service that can forward not just the message body but also any security headers set by the originator of the message. The destination service...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
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
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.