Thanks Thilina, the SOAP message is below: I'm sure the client worked
once but then stopped?  The client code extract is:

        OMText binaryNode = (OMText) mapImage.getFirstOMChild();
                        
        DataHandler actualDH = (DataHandler)
binaryNode.getDataHandler();

<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
   <soapenv:Body>
      <ns:mapResponse xmlns:ns="http://samples.webservice.gss/xsd";>
         <ns:return>
            <ns:map>
               <ns:map_return_type>
                  <ns:display_style_name>Region</ns:display_style_name>
                  <ns:crs>uk_british_national_grid_mm</ns:crs>
 
<ns:centre>546307392.000000,258873636.000000</ns:centre>
 
<ns:image_layers>{sw_map=com.gesmallworld.gss.services.map.MapLayerRespo
[EMAIL PROTECTED]</ns:image_layers>
                  <ns:units>mm</ns:units>
                  <ns:style_group>default</ns:style_group>
                  <ns:options>{}</ns:options>
                  <ns:view_scale>127020.02565384615</ns:view_scale>
                  <ns:rotation>0.0</ns:rotation>
 
<ns:map_element_key>swrefVdisplay_styleVidZ0Q6</ns:map_element_key>
 
<ns:world>swrefVworldVdatasetZgisVuniverseZ0VworldZ0</ns:world>
                  <ns:ace_name>default</ns:ace_name>
                  <ns:name>test</ns:name>
                  <ns:map_image>
                     <xop:Include
href="cid:1.urn:uuid:[EMAIL PROTECTED]"
xmlns:xop="http://www.w3.org/2004/08/xop/include"/>
                  </ns:map_image>
               </ns:map_return_type>
            </ns:map>
         </ns:return>
      </ns:mapResponse>
   </soapenv:Body>
</soapenv:Envelope> 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 13 February 2008 14:48
To: [email protected]
Subject: Re: retrieving MTOM in a client

Hi Adam,
It would be helpfull if you post the SOAP message...

Thilina

On 2/12/08, Etches, Adam (GE Infra, Energy) <[EMAIL PROTECTED]> wrote:
>
>
> I'm using MTOM in a java client but when I try to retrieve the OMText 
> at the client side i.e.:
>
>
>
> OMText binaryNode = (OMText) mapImage.getFirstOMChild();
>
>
>
> I get a class cast exception, since the response is returning an 
> OMElement and not OMText  anyone come across this before?
>
>
>
> I've checked the soap message and it does actually include the binary 
> data.
>
>
>
> Thanks in advance
>
> Adam
>
>
>
>


--
Thilina Gunarathne  - http://thilinag.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to