You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by cmoulliard <cm...@gmail.com> on 2009/03/04 16:47:11 UTC

camel-cxf & dataformat

Hi,

In the documentation of the component camel-cxf, it is mentioned that we can
define the dataformat. When I set this parameter in my spring DSL, I receive
the following error :

Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute
'dataFormat' is not allowed to appear in element 'cxf:cxfEndpoint'.

    <!-- webservice endpoint -->           
    <cxf:cxfEndpoint id="reportIncident"
                     address="http://localhost:8080/camel-example/incident"
                     wsdlURL="wsdl/report_incident.wsdl"
                     dataFormat="PAYLOAD"
                     serviceClass="#reportIncidentEndpoint"
                     endpointName="s:ReportIncidentPort"
                     serviceName="s:ReportIncidentService" 
                    
xmlns:s="http://reportincident.example.camel.apache.org"
     />

Is it a mistake of me or an error ?

Regards,



-----
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: http://www.nabble.com/camel-cxf---dataformat-tp22332652p22332652.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: camel-cxf & dataformat

Posted by William Tam <em...@gmail.com>.
I just submitted a fix to trunk (Committed revision 750147).  BTW, you
could also define dataFormat in the endpoint URI (e.g.
cxf:bean:reportIncident?dataFormat=PAYLOAD).

https://issues.apache.org/activemq/browse/CAMEL-1421

On Wed, Mar 4, 2009 at 2:13 PM, William Tam <em...@gmail.com> wrote:
> I think you hit a bug that CxfEndpointBean's bean property map not
> getting merged.  I'll look into it.
>
> On Wed, Mar 4, 2009 at 10:57 AM, cmoulliard <cm...@gmail.com> wrote:
>>
>> In fact, I think that I don't use the correct syntax. Here is the good one :
>>
>>    <!-- webservice endpoint -->
>>    <cxf:cxfEndpoint id="reportIncident"
>>                     address="http://localhost:8080/camel-example/incident"
>>                     wsdlURL="wsdl/report_incident.wsdl"
>>                     serviceClass="#reportIncidentEndpoint"
>>                     endpointName="s:ReportIncidentPort"
>>                     serviceName="s:ReportIncidentService"
>>
>> xmlns:s="http://reportincident.example.camel.apache.org">
>>                     <cxf:properties>
>>                                        <entry key="dataFormat" value="PAYLOAD"/>
>>                     </cxf:properties>
>>    </cxf:cxfEndpoint>
>>
>> Unfortunately, this config generates the following error :
>>
>> 2009-03-04 16:54:30,740 ERROR MainSupport - Failed:
>> java.lang.IllegalArgumentException: serviceClass must be specified
>> java.lang.IllegalArgumentException: serviceClass must be specified
>>        at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:170)
>>        at
>> org.apache.camel.component.cxf.CxfSpringEndpoint.createServerFactoryBean(CxfSpringEndpoint.java:150)
>>        at org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java:46)
>>        at
>> org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:95)
>>        at
>> org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:62)
>>        at org.apache.camel.Route.getServicesForRoute(Route.java:74)
>>        at org.apache.camel.impl.RouteService.doStart(RouteService.java:77)
>>        at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:50)
>>        at
>> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:743)
>>        at
>> org.apache.camel.spring.SpringCamelContext.maybeDoStart(SpringCamelContext.java:165)
>>        at
>> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:160)
>>        at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:50)
>>        at
>> org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:95)
>>        at
>> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:114)
>>        at
>> org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
>>        at
>> org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
>>        at
>> org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
>>        at
>> org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
>>        at
>> org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
>>        at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:383)
>>        at
>> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
>>        at
>> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
>>        at
>> org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:232)
>>        at org.apache.camel.spring.Main.doStart(Main.java:186)
>>        at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:50)
>>        at org.apache.camel.util.MainSupport.run(MainSupport.java:121)
>>        at org.apache.camel.util.MainSupport.run(MainSupport.java:299)
>>        at org.apache.camel.spring.Main.main(Main.java:98)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:396)
>>        at java.lang.Thread.run(Thread.java:619)
>>
>>
>>
>> cmoulliard wrote:
>>>
>>> Hi,
>>>
>>> In the documentation of the component camel-cxf, it is mentioned that we
>>> can define the dataformat. When I set this parameter in my spring DSL, I
>>> receive the following error :
>>>
>>> Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2:
>>> Attribute 'dataFormat' is not allowed to appear in element
>>> 'cxf:cxfEndpoint'.
>>>
>>>     <!-- webservice endpoint -->
>>>     <cxf:cxfEndpoint id="reportIncident"
>>>
>>> address="http://localhost:8080/camel-example/incident"
>>>                      wsdlURL="wsdl/report_incident.wsdl"
>>>                      dataFormat="PAYLOAD"
>>>                      serviceClass="#reportIncidentEndpoint"
>>>                      endpointName="s:ReportIncidentPort"
>>>                      serviceName="s:ReportIncidentService"
>>>
>>> xmlns:s="http://reportincident.example.camel.apache.org"
>>>      />
>>>
>>> Is it a mistake of me or an error ?
>>>
>>> Regards,
>>>
>>>
>>>
>>
>>
>> -----
>> Charles Moulliard
>> SOA Architect
>>
>> My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
>> --
>> View this message in context: http://www.nabble.com/camel-cxf---dataformat-tp22332652p22332877.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>

Re: camel-cxf & dataformat

Posted by William Tam <em...@gmail.com>.
I think you hit a bug that CxfEndpointBean's bean property map not
getting merged.  I'll look into it.

On Wed, Mar 4, 2009 at 10:57 AM, cmoulliard <cm...@gmail.com> wrote:
>
> In fact, I think that I don't use the correct syntax. Here is the good one :
>
>    <!-- webservice endpoint -->
>    <cxf:cxfEndpoint id="reportIncident"
>                     address="http://localhost:8080/camel-example/incident"
>                     wsdlURL="wsdl/report_incident.wsdl"
>                     serviceClass="#reportIncidentEndpoint"
>                     endpointName="s:ReportIncidentPort"
>                     serviceName="s:ReportIncidentService"
>
> xmlns:s="http://reportincident.example.camel.apache.org">
>                     <cxf:properties>
>                                        <entry key="dataFormat" value="PAYLOAD"/>
>                     </cxf:properties>
>    </cxf:cxfEndpoint>
>
> Unfortunately, this config generates the following error :
>
> 2009-03-04 16:54:30,740 ERROR MainSupport - Failed:
> java.lang.IllegalArgumentException: serviceClass must be specified
> java.lang.IllegalArgumentException: serviceClass must be specified
>        at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:170)
>        at
> org.apache.camel.component.cxf.CxfSpringEndpoint.createServerFactoryBean(CxfSpringEndpoint.java:150)
>        at org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java:46)
>        at
> org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:95)
>        at
> org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:62)
>        at org.apache.camel.Route.getServicesForRoute(Route.java:74)
>        at org.apache.camel.impl.RouteService.doStart(RouteService.java:77)
>        at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:50)
>        at
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:743)
>        at
> org.apache.camel.spring.SpringCamelContext.maybeDoStart(SpringCamelContext.java:165)
>        at
> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:160)
>        at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:50)
>        at
> org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:95)
>        at
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:114)
>        at
> org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
>        at
> org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
>        at
> org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
>        at
> org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
>        at
> org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
>        at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:383)
>        at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
>        at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
>        at
> org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:232)
>        at org.apache.camel.spring.Main.doStart(Main.java:186)
>        at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:50)
>        at org.apache.camel.util.MainSupport.run(MainSupport.java:121)
>        at org.apache.camel.util.MainSupport.run(MainSupport.java:299)
>        at org.apache.camel.spring.Main.main(Main.java:98)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:396)
>        at java.lang.Thread.run(Thread.java:619)
>
>
>
> cmoulliard wrote:
>>
>> Hi,
>>
>> In the documentation of the component camel-cxf, it is mentioned that we
>> can define the dataformat. When I set this parameter in my spring DSL, I
>> receive the following error :
>>
>> Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2:
>> Attribute 'dataFormat' is not allowed to appear in element
>> 'cxf:cxfEndpoint'.
>>
>>     <!-- webservice endpoint -->
>>     <cxf:cxfEndpoint id="reportIncident"
>>
>> address="http://localhost:8080/camel-example/incident"
>>                      wsdlURL="wsdl/report_incident.wsdl"
>>                      dataFormat="PAYLOAD"
>>                      serviceClass="#reportIncidentEndpoint"
>>                      endpointName="s:ReportIncidentPort"
>>                      serviceName="s:ReportIncidentService"
>>
>> xmlns:s="http://reportincident.example.camel.apache.org"
>>      />
>>
>> Is it a mistake of me or an error ?
>>
>> Regards,
>>
>>
>>
>
>
> -----
> Charles Moulliard
> SOA Architect
>
> My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
> --
> View this message in context: http://www.nabble.com/camel-cxf---dataformat-tp22332652p22332877.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>

Re: camel-cxf & dataformat

Posted by cmoulliard <cm...@gmail.com>.
In fact, I think that I don't use the correct syntax. Here is the good one :

    <!-- webservice endpoint -->           
    <cxf:cxfEndpoint id="reportIncident"
                     address="http://localhost:8080/camel-example/incident"
                     wsdlURL="wsdl/report_incident.wsdl"
                     serviceClass="#reportIncidentEndpoint"
                     endpointName="s:ReportIncidentPort"
                     serviceName="s:ReportIncidentService" 
                    
xmlns:s="http://reportincident.example.camel.apache.org">
                     <cxf:properties>
      					<entry key="dataFormat" value="PAYLOAD"/>
                     </cxf:properties>
    </cxf:cxfEndpoint>

Unfortunately, this config generates the following error :

2009-03-04 16:54:30,740 ERROR MainSupport - Failed:
java.lang.IllegalArgumentException: serviceClass must be specified 
java.lang.IllegalArgumentException: serviceClass must be specified
	at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:170)
	at
org.apache.camel.component.cxf.CxfSpringEndpoint.createServerFactoryBean(CxfSpringEndpoint.java:150)
	at org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java:46)
	at
org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:95)
	at
org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:62)
	at org.apache.camel.Route.getServicesForRoute(Route.java:74)
	at org.apache.camel.impl.RouteService.doStart(RouteService.java:77)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:50)
	at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:743)
	at
org.apache.camel.spring.SpringCamelContext.maybeDoStart(SpringCamelContext.java:165)
	at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:160)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:50)
	at
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:95)
	at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:114)
	at
org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
	at
org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
	at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
	at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
	at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:383)
	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
	at
org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:232)
	at org.apache.camel.spring.Main.doStart(Main.java:186)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:50)
	at org.apache.camel.util.MainSupport.run(MainSupport.java:121)
	at org.apache.camel.util.MainSupport.run(MainSupport.java:299)
	at org.apache.camel.spring.Main.main(Main.java:98)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:396)
	at java.lang.Thread.run(Thread.java:619)



cmoulliard wrote:
> 
> Hi,
> 
> In the documentation of the component camel-cxf, it is mentioned that we
> can define the dataformat. When I set this parameter in my spring DSL, I
> receive the following error :
> 
> Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2:
> Attribute 'dataFormat' is not allowed to appear in element
> 'cxf:cxfEndpoint'.
> 
>     <!-- webservice endpoint -->           
>     <cxf:cxfEndpoint id="reportIncident"
>                     
> address="http://localhost:8080/camel-example/incident"
>                      wsdlURL="wsdl/report_incident.wsdl"
>                      dataFormat="PAYLOAD"
>                      serviceClass="#reportIncidentEndpoint"
>                      endpointName="s:ReportIncidentPort"
>                      serviceName="s:ReportIncidentService" 
>                     
> xmlns:s="http://reportincident.example.camel.apache.org"
>      />
> 
> Is it a mistake of me or an error ?
> 
> Regards,
> 
> 
> 


-----
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: http://www.nabble.com/camel-cxf---dataformat-tp22332652p22332877.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: camel-cxf & dataformat

Posted by cmoulliard <cm...@gmail.com>.
Yes, the SEI has been generated by the maven plugin :

            <!-- CXF wsdl2java generator, will plugin to the compile goal
-->
			<plugin>
				<groupId>org.apache.cxf</groupId>
				<artifactId>cxf-codegen-plugin</artifactId>
				<version>${cxf-version}</version>
				<executions>
					<execution>
						<id>generate-sources</id>
						<phase>generate-sources</phase>
						<configuration>
							<sourceRoot>${basedir}/target/generated/src/main/java
							</sourceRoot>
							<wsdlOptions>
								<wsdlOption>
									<wsdl>${basedir}/src/main/resources/wsdl/report_incident.wsdl
									</wsdl>
								</wsdlOption>
							</wsdlOptions>
						</configuration>
						<goals>
							<goal>wsdl2java</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

Interface generated :

package org.apache.camel.example.reportincident.service;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;

import org.apache.camel.example.reportincident.domain.InputReportIncident;
import org.apache.camel.example.reportincident.domain.OutputReportIncident;

/**
 * This class was generated by Apache CXF 2.2-SNAPSHOT
 * Mon Jan 26 15:33:08 CET 2009
 * Generated source version: 2.2-SNAPSHOT
 * 
 */
 
@WebService(targetNamespace =
"http://reportincident.example.camel.apache.org", name =
"ReportIncidentEndpoint")
@XmlSeeAlso({ObjectFactory.class})
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface ReportIncidentEndpoint {

    @WebResult(name = "outputReportIncident", targetNamespace =
"http://reportincident.example.camel.apache.org", partName = "out")
    @WebMethod(operationName = "ReportIncident", action =
"http://reportincident.example.camel.apache.org/ReportIncident")
    public OutputReportIncident reportIncident(
        @WebParam(partName = "in", name = "inputReportIncident",
targetNamespace = "http://reportincident.example.camel.apache.org")
        InputReportIncident in
    );
}

and servlce :

import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import javax.xml.ws.Service;

/**
 * This class was generated by Apache CXF 2.2-SNAPSHOT
 * Mon Jan 26 15:33:08 CET 2009
 * Generated source version: 2.2-SNAPSHOT
 * 
 */


@WebServiceClient(name = "ReportIncidentEndpointService", 
                  wsdlLocation =
"file:/D:/Dvlpt/Java/workspace-ganymede/osgi/reportincident.domain/src/main/resources/wsdl/report_incident.wsdl",
                  targetNamespace =
"http://reportincident.example.camel.apache.org") 
public class ReportIncidentEndpointService extends Service {

    public final static URL WSDL_LOCATION;
    public final static QName SERVICE = new
QName("http://reportincident.example.camel.apache.org",
"ReportIncidentEndpointService");
    public final static QName ReportIncidentService = new
QName("http://reportincident.example.camel.apache.org",
"ReportIncidentService");
    static {
        URL url = null;
        try {
            url = new
URL("file:/D:/Dvlpt/Java/workspace-ganymede/osgi/reportincident.domain/src/main/resources/wsdl/report_incident.wsdl");
        } catch (MalformedURLException e) {
            System.err.println("Can not initialize the default wsdl from
file:/D:/Dvlpt/Java/workspace-ganymede/osgi/reportincident.domain/src/main/resources/wsdl/report_incident.wsdl");
            // e.printStackTrace();
        }
        WSDL_LOCATION = url;
    }

    public ReportIncidentEndpointService(URL wsdlLocation) {
        super(wsdlLocation, SERVICE);
    }

    public ReportIncidentEndpointService(URL wsdlLocation, QName
serviceName) {
        super(wsdlLocation, serviceName);
    }

    public ReportIncidentEndpointService() {
        super(WSDL_LOCATION, SERVICE);
    }

    /**
     * 
     * @return
     *     returns ReportIncidentEndpoint
     */
    @WebEndpoint(name = "ReportIncidentService")
    public ReportIncidentEndpoint getReportIncidentService() {
        return super.getPort(ReportIncidentService,
ReportIncidentEndpoint.class);
    }

    /**
     * 
     * @param features
     *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on
the proxy.  Supported features not in the <code>features</code> parameter
will have their default values.
     * @return
     *     returns ReportIncidentEndpoint
     */
    @WebEndpoint(name = "ReportIncidentService")
    public ReportIncidentEndpoint
getReportIncidentService(WebServiceFeature... features) {
        return super.getPort(ReportIncidentService,
ReportIncidentEndpoint.class, features);
    }

}


Joe Luo wrote:
> 
> 
> I guess you must have already defined the bean ref
> "reportIncidentEndpoint" somewhere in your spring configure file to point
> to a SEI (Service Endpoint Interface) class name. 
> 
> Then did you generate the SEI using CXF "wsdl2java" tool against your
> WSDL?
>  
> 
>> Unfortunately, this config generates the following error :
>> 
>> 2009-03-04 16:54:30,740 ERROR MainSupport - Failed:
>> java.lang.IllegalArgumentException: serviceClass must be
>> specified 
> 
> 
> Send instant messages to your online friends http://uk.messenger.yahoo.com
> 
> 
> 


-----
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: http://www.nabble.com/camel-cxf---dataformat-tp22332652p22333985.html
Sent from the Camel - Users mailing list archive at Nabble.com.