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>