I deployed a service which has a custom wsdl that contains 
wsa:ReferenceParameters specified in the service element as shown below:

-----

 <wsdl:service name="AddressBookService">
 <wsdl:port name="AddressBookServiceSOAP11port_jms1" 
binding="axis2:AddressBookServiceSOAP11Binding">
  <soap:address 
location="jms:/queue/pojoQ?transport.jms.ConnectionFactoryJNDIName=ConnectionFactory&
                                      
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory&
                                      
java.naming.provider.url=jnp://localhost:1099" /> 
         <wsa:EndpointReference>
              
<wsa:Address>jms:/queue/pojoQ?transport.jms.ConnectionFactoryJNDIName=ConnectionFactory&
                                     
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory&
                                     
java.naming.provider.url=jnp://localhost:1099</wsa:Address> 
               <wsa:ReferenceParameters>
                   <test>some_parameter</test> 
               </wsa:ReferenceParameters>
          </wsa:EndpointReference>
  </wsdl:port>
</wsdl:service>
----


When I generated the stubs from this WSDL using WSDL2Java, and invoked the 
service, I did not see the specified wsa:ReferenceParameters in the outgoing 
SOAP message. 

I know I can manually add the reference parameter to an EndPointReference and 
associate it with the ServiceClient Options before invocation, but I was 
wondering why the stub did not generate this.

Or is this not the correct approach to manadate reference parameters to be sent 
by the client? I am looking for a standard approach to do this so that any 
non-Axis2 clients can by default send this out in the SOAP envelope.

Thanks for any pointers.

Shantanu Sen


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to