Hello Shantanu, I suspect that this is a bug. Please raise a JIRA issue to cover this. Thanks.
http://issues.apache.org/jira/browse/AXIS2 Cheers Brian DePradine Web Services Development IBM Hursley External +44 (0) 1962 816319 Internal 246319 If you can't find the time to do it right the first time, where will you find the time to do it again? Shantanu Sen <[EMAIL PROTECTED]> wrote on 18/04/2007 04:23:21: > 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] > Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
