You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Bill Keicher <wk...@endeca.com> on 2004/09/16 21:25:23 UTC

.NET interorperability issue?

Hey Everyone,

I have written a service using Axis, and can throw and catch exceptions with
no problem using Axis generated clients and JWSDP generated clients.
However, whenever I wrote a .NET client and throw an exception, I get a
System.Xml.XmlException.  I captured the SOAP over the wire and it appears
that Axis is sending what it's supposed to, but .NET is freaking out when it
sees the <multiRef> element in the soap body...Has anyone had any experience
with this, or any similar problems?

-------------------------------------------------

.NET CLIENT POST:
<?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="urn:com.endeca.service.dataindexing"
xmlns:types="urn:com.endeca.service.dataindexing/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/"><tns:echo><in
0 xsi:type="xsd:string">is anyone out
there?</in0></tns:echo></soap:Body></soap:Envelope>POST
/services/DataIndexing HTTP/1.1 VsDebuggerCausalityData:
AwAAAFVig8mWeJ1On+cxv6WDfVVEAEUAVgAtADAANQA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAA User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
Protocol 1.0.3705.0) Content-Type: text/xml; charset=utf-8 SOAPAction: ""
Content-Length: 1422 Expect: 100-continue Host: localhost Authorization:
Basic d2Vic2VydmljZXM6d2Vic2VydmljZXM=  <?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="urn:com.endeca.service.dataindexing"
xmlns:types="urn:com.endeca.service.dataindexing/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/"><tns:addConte
nt><in0 xsi:type="xsd:string">difileexception</in0><in1 href="#id1"
/></tns:addContent><soapenc:Array id="id1"
soapenc:arrayType="tns:Record[1]"><Item href="#id2"
/></soapenc:Array><tns:Record id="id2" xsi:type="tns:Record"><values
href="#id3" /></tns:Record><soapenc:Array id="id3"
soapenc:arrayType="tns:PVal[4]"><Item href="#id4" /><Item href="#id5"
/><Item href="#id6" /><Item href="#id7" /></soapenc:Array><tns:PVal id="id4"
xsi:type="tns:PVal"><name xsi:type="xsd:string">foo0</name><value
xsi:type="xsd:string">bar0</value></tns:PVal><tns:PVal id="id5"
xsi:type="tns:PVal"><name xsi:type="xsd:string">foo1</name><value
xsi:type="xsd:string">bar1</value></tns:PVal><tns:PVal id="id6"
xsi:type="tns:PVal"><name xsi:type="xsd:string">foo2</name><value
xsi:type="xsd:string">bar2</value></tns:PVal><tns:PVal id="id7"
xsi:type="tns:PVal"><name xsi:type="xsd:string">foo3</name><value
xsi:type="xsd:string">bar3</value></tns:PVal></soap:Body></soap:Envelope>

SERVER RESPONSE:

 HTTP/1.1 500 Internal Server Error Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked Date: Thu, 16 Sep 2004 18:55:39 GMT Server:
Apache-Coyote/1.1 Connection: close  3b7 <?xml version="1.0"
encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.generalException</faultcode>
   <faultstring></faultstring>
   <detail>
    <ns1:DIFileException href="#id0"
xmlns:ns1="urn:com.endeca.service.dataindexing"/>
    <ns2:exceptionName
xmlns:ns2="http://xml.apache.org/axis/">com.endeca.service.dataindexing.DIFi
leException</ns2:exceptionName>
   </detail>
  </soapenv:Fault>
  <multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:DIFileException"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns3="urn:com.endeca.service.dataindexing">
   <message xsi:type="xsd:string">file exception</message>
  </multiRef>
 </soapenv:Body>
</soapenv:Envelope> 0



thanks,
bill

-------------------------------
William Keicher
Software Engineer
Endeca

T: 617-621-7250
F: 617-577-7766
E: wkeicher@endeca.com
-------------------------------


This email message and any attachments are confidential to Endeca. If you
are not the intended recipient, please notify Endeca immediately -- by
replying to this message or by sending an email to: legal@endeca.com -- and
destroy all copies of this message and any attachments. Thank you.

Re: .NET interorperability issue?

Posted by th...@gamefederation.com.
im no expert but i think you should be extending axisfault if you want
interop.

/t

> Hey Everyone,
>
> I have written a service using Axis, and can throw and catch exceptions
> with
> no problem using Axis generated clients and JWSDP generated clients.
> However, whenever I wrote a .NET client and throw an exception, I get a
> System.Xml.XmlException.  I captured the SOAP over the wire and it appears
> that Axis is sending what it's supposed to, but .NET is freaking out when
> it
> sees the <multiRef> element in the soap body...Has anyone had any
> experience
> with this, or any similar problems?


Re: .NET interorperability issue?

Posted by Jim Murphy <jm...@mindreef.com>.
I'm not sure the exception throwing semantics you expect are supported 
across toolkits and particularly with the .NET client.  Though .NET 
certainly has its own exception propagation convention.  SOAP 1.1 [1] 
doesn't have much to say on the matter.

Can anyone else comment on this?  I know its something thats kinda cool 
with Axis client and Axis Servers but should we expect it to interop?

Jim Murphy
Mindreef, Inc.

[1] - http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383507

Mark Malinoski wrote:
> Bill,
> 
> Don't know much about the .Net side, but Axis will allow you to turn off
> sending of multiRefs in the server-config.wsdd file
> where Axis is deployed.  I don't know if that will help your .Net client to
> be able to consume the exception thrown
> from the service, but it might be worth a try.
> 
> Mark
> 
> 
> 
> 
>                                                                            
>              Bill Keicher                                                  
>              <wkeicher@endeca.                                             
>              com>                                                       To 
>                                        axis-user@ws.apache.org             
>              09/16/04 03:25 PM                                          cc 
>                                                                            
>                                                                    Subject 
>              Please respond to         .NET interorperability issue?       
>              axis-user@ws.apac                                             
>                   he.org                                                   
>                                                                            
>                                                                            
>                                                                            
>                                                                            
> 
> 
> 
> 
> Hey Everyone,
> 
> I have written a service using Axis, and can throw and catch exceptions
> with
> no problem using Axis generated clients and JWSDP generated clients.
> However, whenever I wrote a .NET client and throw an exception, I get a
> System.Xml.XmlException.  I captured the SOAP over the wire and it appears
> that Axis is sending what it's supposed to, but .NET is freaking out when
> it
> sees the <multiRef> element in the soap body...Has anyone had any
> experience
> with this, or any similar problems?
> 
> -------------------------------------------------
> 
> .NET CLIENT POST:
> <?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="urn:com.endeca.service.dataindexing"
> xmlns:types="urn:com.endeca.service.dataindexing/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/
> "><tns:echo><in
> 0 xsi:type="xsd:string">is anyone out
> there?</in0></tns:echo></soap:Body></soap:Envelope>POST
> /services/DataIndexing HTTP/1.1 VsDebuggerCausalityData:
> AwAAAFVig8mWeJ1On+cxv6WDfVVEAEUAVgAtADAANQA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> 
> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> 
> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> 
> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> 
> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> 
> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> 
> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> 
> AAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAA
> 
> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> 
> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> 
> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> 
> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> 
> AAAA User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
> Protocol 1.0.3705.0) Content-Type: text/xml; charset=utf-8 SOAPAction: ""
> Content-Length: 1422 Expect: 100-continue Host: localhost Authorization:
> Basic d2Vic2VydmljZXM6d2Vic2VydmljZXM=  <?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="urn:com.endeca.service.dataindexing"
> xmlns:types="urn:com.endeca.service.dataindexing/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/
> "><tns:addConte
> nt><in0 xsi:type="xsd:string">difileexception</in0><in1 href="#id1"
> /></tns:addContent><soapenc:Array id="id1"
> soapenc:arrayType="tns:Record[1]"><Item href="#id2"
> /></soapenc:Array><tns:Record id="id2" xsi:type="tns:Record"><values
> href="#id3" /></tns:Record><soapenc:Array id="id3"
> soapenc:arrayType="tns:PVal[4]"><Item href="#id4" /><Item href="#id5"
> /><Item href="#id6" /><Item href="#id7" /></soapenc:Array><tns:PVal
> id="id4"
> xsi:type="tns:PVal"><name xsi:type="xsd:string">foo0</name><value
> xsi:type="xsd:string">bar0</value></tns:PVal><tns:PVal id="id5"
> xsi:type="tns:PVal"><name xsi:type="xsd:string">foo1</name><value
> xsi:type="xsd:string">bar1</value></tns:PVal><tns:PVal id="id6"
> xsi:type="tns:PVal"><name xsi:type="xsd:string">foo2</name><value
> xsi:type="xsd:string">bar2</value></tns:PVal><tns:PVal id="id7"
> xsi:type="tns:PVal"><name xsi:type="xsd:string">foo3</name><value
> xsi:type="xsd:string">bar3</value></tns:PVal></soap:Body></soap:Envelope>
> 
> SERVER RESPONSE:
> 
>  HTTP/1.1 500 Internal Server Error Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked Date: Thu, 16 Sep 2004 18:55:39 GMT Server:
> Apache-Coyote/1.1 Connection: close  3b7 <?xml version="1.0"
> encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>  <soapenv:Body>
>   <soapenv:Fault>
>    <faultcode>soapenv:Server.generalException</faultcode>
>    <faultstring></faultstring>
>    <detail>
>     <ns1:DIFileException href="#id0"
> xmlns:ns1="urn:com.endeca.service.dataindexing"/>
>     <ns2:exceptionName
> xmlns:ns2="http://xml.apache.org/axis/
> ">com.endeca.service.dataindexing.DIFi
> leException</ns2:exceptionName>
>    </detail>
>   </soapenv:Fault>
>   <multiRef id="id0" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns3:DIFileException"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:ns3="urn:com.endeca.service.dataindexing">
>    <message xsi:type="xsd:string">file exception</message>
>   </multiRef>
>  </soapenv:Body>
> </soapenv:Envelope> 0
> 
> 
> 
> thanks,
> bill
> 
> -------------------------------
> William Keicher
> Software Engineer
> Endeca
> 
> T: 617-621-7250
> F: 617-577-7766
> E: wkeicher@endeca.com
> -------------------------------
> 
> 
> This email message and any attachments are confidential to Endeca. If you
> are not the intended recipient, please notify Endeca immediately -- by
> replying to this message or by sending an email to: legal@endeca.com -- and
> destroy all copies of this message and any attachments. Thank you.
> 
> 
> 
> 
> 

Re: .NET interorperability issue?

Posted by Mark Malinoski <mm...@aessuccess.org>.
Bill,

Don't know much about the .Net side, but Axis will allow you to turn off
sending of multiRefs in the server-config.wsdd file
where Axis is deployed.  I don't know if that will help your .Net client to
be able to consume the exception thrown
from the service, but it might be worth a try.

Mark




                                                                           
             Bill Keicher                                                  
             <wkeicher@endeca.                                             
             com>                                                       To 
                                       axis-user@ws.apache.org             
             09/16/04 03:25 PM                                          cc 
                                                                           
                                                                   Subject 
             Please respond to         .NET interorperability issue?       
             axis-user@ws.apac                                             
                  he.org                                                   
                                                                           
                                                                           
                                                                           
                                                                           




Hey Everyone,

I have written a service using Axis, and can throw and catch exceptions
with
no problem using Axis generated clients and JWSDP generated clients.
However, whenever I wrote a .NET client and throw an exception, I get a
System.Xml.XmlException.  I captured the SOAP over the wire and it appears
that Axis is sending what it's supposed to, but .NET is freaking out when
it
sees the <multiRef> element in the soap body...Has anyone had any
experience
with this, or any similar problems?

-------------------------------------------------

.NET CLIENT POST:
<?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="urn:com.endeca.service.dataindexing"
xmlns:types="urn:com.endeca.service.dataindexing/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/
"><tns:echo><in
0 xsi:type="xsd:string">is anyone out
there?</in0></tns:echo></soap:Body></soap:Envelope>POST
/services/DataIndexing HTTP/1.1 VsDebuggerCausalityData:
AwAAAFVig8mWeJ1On+cxv6WDfVVEAEUA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAA User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
Protocol 1.0.3705.0) Content-Type: text/xml; charset=utf-8 SOAPAction: ""
Content-Length: 1422 Expect: 100-continue Host: localhost Authorization:
Basic d2Vic2VydmljZXM6d2Vic2VydmljZXM=  <?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="urn:com.endeca.service.dataindexing"
xmlns:types="urn:com.endeca.service.dataindexing/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/
"><tns:addConte
nt><in0 xsi:type="xsd:string">difileexception</in0><in1 href="#id1"
/></tns:addContent><soapenc:Array id="id1"
soapenc:arrayType="tns:Record[1]"><Item href="#id2"
/></soapenc:Array><tns:Record id="id2" xsi:type="tns:Record"><values
href="#id3" /></tns:Record><soapenc:Array id="id3"
soapenc:arrayType="tns:PVal[4]"><Item href="#id4" /><Item href="#id5"
/><Item href="#id6" /><Item href="#id7" /></soapenc:Array><tns:PVal
id="id4"
xsi:type="tns:PVal"><name xsi:type="xsd:string">foo0</name><value
xsi:type="xsd:string">bar0</value></tns:PVal><tns:PVal id="id5"
xsi:type="tns:PVal"><name xsi:type="xsd:string">foo1</name><value
xsi:type="xsd:string">bar1</value></tns:PVal><tns:PVal id="id6"
xsi:type="tns:PVal"><name xsi:type="xsd:string">foo2</name><value
xsi:type="xsd:string">bar2</value></tns:PVal><tns:PVal id="id7"
xsi:type="tns:PVal"><name xsi:type="xsd:string">foo3</name><value
xsi:type="xsd:string">bar3</value></tns:PVal></soap:Body></soap:Envelope>

SERVER RESPONSE:

 HTTP/1.1 500 Internal Server Error Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked Date: Thu, 16 Sep 2004 18:55:39 GMT Server:
Apache-Coyote/1.1 Connection: close  3b7 <?xml version="1.0"
encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.generalException</faultcode>
   <faultstring></faultstring>
   <detail>
    <ns1:DIFileException href="#id0"
xmlns:ns1="urn:com.endeca.service.dataindexing"/>
    <ns2:exceptionName
xmlns:ns2="http://xml.apache.org/axis/
">com.endeca.service.dataindexing.DIFi
leException</ns2:exceptionName>
   </detail>
  </soapenv:Fault>
  <multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:DIFileException"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns3="urn:com.endeca.service.dataindexing">
   <message xsi:type="xsd:string">file exception</message>
  </multiRef>
 </soapenv:Body>
</soapenv:Envelope> 0



thanks,
bill

-------------------------------
William Keicher
Software Engineer
Endeca

T: 617-621-7250
F: 617-577-7766
E: wkeicher@endeca.com
-------------------------------


This email message and any attachments are confidential to Endeca. If you
are not the intended recipient, please notify Endeca immediately -- by
replying to this message or by sending an email to: legal@endeca.com -- and
destroy all copies of this message and any attachments. Thank you.