cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jo <connect007...@yahoo.com>
Subject Re: Re: XFire to CXF issue
Date Thu, 22 May 2008 16:39:16 GMT
BLOCKQUOTE {	MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em}OL {	MARGIN-TOP: 0px; MARGIN-BOTTOM:
0px}UL {	MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px}CXF with the following config (SoapBindingFactory?):
 
 <import resource="classpath:META-INF/cxf/cxf.xml" />
 <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
 <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
 
<!-- use one web service wrapper for each osgi service -->
 <jaxws:endpoint id="videoService"
  implementor="#video.serviceProvider" address="/testVideoService" />

__________________________________________________________
XFire with the following config (AnnotationServiceFactory)
 
 <bean id="xfire.annotationServiceFactory"
  class="org.codehaus.xfire.annotations.AnnotationServiceFactory" />
 
 <bean id="xxx.videoServiceBean"
  class="org.codehaus.xfire.spring.remoting.XFireExporter">
  <property name="serviceFactory" ref="xfire.annotationServiceFactory" />
  <property name="xfire" ref="xfire" />
  <property name="serviceBean" ref="video.serviceProvider" />
  <property name="serviceClass" value="xxx.VideoService" />
 </bean>


---------------------------------
What data binding in CXF and in XFire?

On Thu, May 22, 2008 at 11:46 AM, Jo <connect007007@yahoo.com> wrote:
>  In my java interface, I have the following annotated
> method:
>
>
> @WebMethod(operationName = "setImageResolution",
> action = "urn:setImageResolution")
>  @Oneway
>  public void setImageResolution(@WebParam(name =
> "width", header = false)
>  int width, @WebParam(name = "height", header = false)
>  int height);
>
> The following is the generated WSDL with both CXF
> 2.1.0 and 2.1.1,
>
>  <wsdl:operation name="setImageResolution">
>  <soap:operation soapAction="urn:setImageResolution"
> style="document" />
>  <wsdl:input name="setImageResolution">
>  <soap:body use="literal" />
>  </wsdl:input>
>  </wsdl:operation>
>
> WSDL generated in  XFire:
>
> - <xsd:element name="setImageResolution">
> - <xsd:complexType>
> - <xsd:sequence>
>  <xsd:element maxOccurs="1" minOccurs="1"
> name="width" type="xsd:int" />
>  <xsd:element maxOccurs="1" minOccurs="1"
> name="height" type="xsd:int" />
>  </xsd:sequence>
>  </xsd:complexType>
>  </xsd:element>
>
> - <wsdl:portType name="videoService">
> - <wsdl:operation name="setImageResolution">
>  <wsdl:input name="setImageResolutionRequest"
> message="tns:setImageResolutionRequest" />
>  </wsdl:operation>
>
> With CXF, the generated WSDL doesn't include my
> @Webparam information? Why? and how can I generate
> wsdl with xsd information?
>
>
>
>
>



       
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message