cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Diesler (JIRA)" <>
Subject [jira] Created: (CXF-1311) Improve documentation of WS-RM client side usage
Date Tue, 18 Dec 2007 12:38:43 GMT
Improve documentation of WS-RM client side usage

                 Key: CXF-1311
             Project: CXF
          Issue Type: Improvement
          Components: WS-* Components
    Affects Versions: 2.0.3
            Reporter: Thomas Diesler
            Assignee: Thomas Diesler

If a client proxy is build like this

   public void testBasicRMAccess() throws Exception
      URL wsdlURL = new File("resources/jaxws/cxf/reliable/reliable.wsdl").toURL();
      QName serviceName = new QName(targetNS, "RMService");

      Service service = Service.create(wsdlURL, serviceName);
      RMEndpoint port = (RMEndpoint)service.getPort(RMEndpoint.class);

      Object retObj = port.echo("Hello");
      assertEquals("Hello", retObj);

with a wsdl like this

<wsdl:definitions xmlns:wsdl="" xmlns:ns1=""
  xmlns:tns="" xmlns:xsd=""
  <wsp:Policy wsu:Id="RM" xmlns:wsp="" xmlns:wsu="">
    <wsam:Addressing xmlns:wsam="">
    <wsrmp:RMAssertion xmlns:wsrmp="">
      <wsrmp:BaseRetransmissionInterval Milliseconds="10000"/>
  <wsdl:message name="echoResponse">
    <wsdl:part name="return" type="xsd:string">
  <wsdl:message name="echo">
    <wsdl:part name="arg0" type="xsd:string">
  <wsdl:portType name="RMEndpoint">
    <wsdl:operation name="echo">
      <wsdl:input message="tns:echo" name="echo">
      <wsdl:output message="tns:echoResponse" name="echoResponse">
  <wsdl:binding name="RMServiceSoapBinding" type="tns:RMEndpoint">
    <soap:binding style="rpc" transport=""/>
    <wsdl:operation name="echo">
      <soap:operation soapAction="" style="rpc"/>
      <wsdl:input name="echo">
        <soap:body namespace="" use="literal"/>
      <wsdl:output name="echoResponse">
        <soap:body namespace="" use="literal"/>
  <wsdl:service name="RMService">
    <wsdl:port binding="tns:RMServiceSoapBinding" name="RMEndpointPort">
      <soap:address location="http://localhost:8080/jaxws-cxf-reliable"/>
      <wsp:PolicyReference URI="#RM" xmlns:wsp=""/>

I get 

Caused by: None of the policy alternatives can be

The incoming message is plain soap (i.e. not RM)

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

View raw message