[ 
https://issues.apache.org/jira/browse/CXF-776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513527
 ] 

Freeman Fang commented on CXF-776:
----------------------------------

I just try the wsdl from http://wicket.silberlicht.de/service/AuthService?wsdl 
provided by Jan
I found  I failed on client side, get the exception like
org.apache.cxf.interceptor.Fault: NO_MESSAGE_FOR_PART
        at 
org.apache.cxf.aegis.databinding.XMLStreamDataWriter.write(XMLStreamDataWriter.java:65)
        at 
org.apache.cxf.aegis.databinding.XMLStreamDataWriter.write(XMLStreamDataWriter.java:1)
        at 
org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:92)
        at 
org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:67)
        at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:255)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:206)
        at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
        at 
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
        at $Proxy21.getAuthentication(Unknown Source)

Can Aegis databinding work with wrapped mode?

If I setWrapped(false) on client side, I can send out message but get error on 
server side like
rg.apache.cxf.interceptor.Fault: Message part 
{http://silberlicht.de/AuthService}sid was not recognized.
        at 
org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:181)
        at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
        at 
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:73)
        at 
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:253)
        at 
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:213)
        at 
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:54)
        at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
        at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)



> JaxWsServiceFactoryBean doesn't seem to work with AegisDatabinding
> ------------------------------------------------------------------
>
>                 Key: CXF-776
>                 URL: https://issues.apache.org/jira/browse/CXF-776
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.0.1
>         Environment: CXFServlet, resin 3.1.1, JDK 1.6
>            Reporter: Jan Kriesten
>         Attachments: spring.tar
>
>
> There really seems to be an issue with JaxWsServiceFactoryBean and Aegis.
> I tried the following configuration (CXFServlet):
> ---8<---
>   <bean id="serviceClass" 
> class="de.footprint.www.services.auth.AcegiAuthService"/>
>   <bean id="aegisDatabinding"
> class="org.apache.cxf.aegis.databinding.AegisDatabinding"/>
>   <bean id="serviceFactory"
> class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">
>   <property name="dataBinding" ref="aegisDatabinding"/>
>   </bean>
>   <bean id="serverBeanFactory" 
> class="org.apache.cxf.frontend.ServerFactoryBean"
> init-method="create">
>           <property name="address" value="/AuthService"/>
>           <property name="bindingId" 
> value="http://schemas.xmlsoap.org/soap/"/>
>           <property name="serviceBean" ref="serviceClass"/>
>           <property name="serviceFactory" ref="serviceFactory"/>
>   </bean>
> ---8<---
> This did _not_ work. The services-log tells me, that the WebService-Parameters
> are blank (btw, only Strings are used). Commenting out the 
> dataBinding-property
> in the serviceFactory-bean solves it again - all parameters are ok!
> My client looks like this:
> ---8<---
> Bus bus = new SpringBusFactory().createBus();
> AegisDatabinding aegisBinding = new AegisDatabinding();
> JaxWsProxyFactoryBean proxyBean = new JaxWsProxyFactoryBean();
> proxyBean.setBus( bus );
> proxyBean.getServiceFactory().setDataBinding( aegisBinding );
> proxyBean.setAddress( "http://localhost/service/AuthService"; );
> proxyBean.setServiceClass( IAuthService.class );
> service = (IAuthService) proxyBean.create();
> ---8<---
> If you need any more information just drop me a note... :-)
> Best regards, --- Jan.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to