Hi, I have a service where I am attempting to stream back some binary data to the client. We have been uploading files without any problems using the Datahandler type on the method, but for some reason trying to return a Datahandler isn't working.
After snooping the http, it looks like the server isn't including the attachment part in the response: HTTP/1.1 100 Continue HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Fri, 20 Jul 2007 01:35:59 GMT 21f <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><ns1:getDocumentResponse xmlns:ns1="http://ws.service.company.com"><ns1:out xmlns:ns2="http://www.w3.org/2004/11/xmlmime" ns2:mimeType="application/octet-stream"><Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:11848953598731-1160531110@http://www.w3.org/2001/XMLSchema" /></ns1:out></ns1:getDocumentResponse></soap:Body></soap:Envelope> 0 I have MTOM and chunking enabled. I am using JSR181 annotations and xmlbeans configured via spring... Method: @WebMethod DataHandler getDocument( String objectId, String userName, DocBaseInfoDocument docBaseInfo); Spring Config: <bean id="webAnnotations" class="org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations" /> <bean id="xfire.xmlBeansAnnotationServiceFactory" class="org.codehaus.xfire.annotations.AnnotationServiceFactory"> <constructor-arg index="0" ref="webAnnotations"/> <!-- WebAnnotations --> <constructor-arg index="1" ref="xfire.transportManager"/> <!-- TransportManager --> <constructor-arg index="2" ref="xfire.xmlbeansBindingProvider"/> <!-- BindingProvider --> <property name="wsdlBuilderFactory" ref="xfire.xmlbeansWSDLBuilderFactory"/> </bean> <bean id="handlerMapping" class="org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping"> <property name="serviceFactory" ref="xfire.xmlBeansAnnotationServiceFactory"/> <property name="typeMappingRegistry" ref="xfire.xmlbeansTypeRegistry" /> <property name="xfire" ref="xfire" /> <property name="webAnnotations" ref="webAnnotations" /> </bean> <bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> <property name="defaultHandler" ref="handlerMapping"/> </bean> <bean id="serviceImpl" class="com.company.service.ws.support.ServiceImpl"/> The error received on the client is: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Could not find the attachment cid:11848953598731-1160531110@http://www.w3.org/2001/XMLSchema This is on xfire 1.2.6, any help would be greatly appreciated. Thanks, Ryan -- View this message in context: http://www.nabble.com/Datahander-return-problem-tf4114745.html#a11701086 Sent from the XFire - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
