Matthew Kerle wrote:
Can you include some of your code that requires
org.xmlsoap.schemas.soap.encoding.Array? Ideally your web service
interface should be defined in terms of plain java objects, and only
xFire should be concerned with weird xml encoding classes...
I'm working with an existing Web Service not written in XFire, but in
Delphi/RemObjects. I'm building my client code from the WSDL generated
by that system. I'm starting to think that this is all a red herring,
though. Another class, not an array, is also being returned with no
data. The server is reading the request properly, and sending back a
SOAP document. But I think that the SOAP that the server is generating
is not written in a way that XFire can read, at least not by default.
I'm going to dummy up a sample server using XFire to see if the SOAP
messages look completely different.
But if someone here can tell at a glance that the flavor of XML returned
is not something XFire can understand, I would appreciate it. A sample
returned document is below. I'm trying to get an item of type
ContactSummary, which has "contactName" and "contactId" parameters. I'm
really wondering if the fact that the response has embedded in the
result of the call only a pointer to the actual resulting object is at
fault. In other words, I would have expected the
<GetContactSummaryByEmailResponse> element to contain the
<ContactSummary> element; instead it contains a <Result> element with an
"href" atttribute pointing to the actual <ContactSummary> element. Is
that the underlying problem?
Someone on the team just found a switch we can set on the server to
toggle between document literal and RPC encodings. I'm off to see it
that will fix the problems.
-- Scott
======================================================================
<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:HNS="http://tempuri.org/"
>
<SOAP-ENV:Header>
<HNS:ROClientID
SOAP-ENV:mustUnderstand="0">{A48B8BDD-73BB-448F-9E9C-3F07747F8F66}</HNS:ROClientID>
</SOAP-ENV:Header>
<SOAP-ENV:Body
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ro="urn:Databox"
>
<NS1:GetContactSummaryByEmailResponse xmlns:NS1="Patron">
<Result href="#0"/>
</NS1:GetContactSummaryByEmailResponse>
<ro:ContactSummary id="0" xsi:type="ro:ContactSummary">
<ContactId xsi:type="xsd:long">123</ContactId>
<ContactName xsi:type="xsd:string">Fred
Flintstone</ContactName>
</ro:ContactSummary>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email