I posted it else where doing it in the right place.

I am using axistools version 1.4 maven plugin to generate stubs for my wsdl. 
I am not able set http headers to my soap request because there is no method
in the generated client stubs which gives me serviceClient.  Can anyone
please tell me how to get serviceClient and set Options using the generated
sources with this plugin.  

if(options == null){
                        options = new Options();
client._getServiceClient().setOptions(options);  //This doesn't work with
axistools-maven-plugin
                }
options.setProperty(HTTPConstants.HTTP_HEADERS,myheaders);

This is the plugin I am using.

<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>axistools-maven-plugin</artifactId>
                <version>1.4</version>
                <configuration>
                        <!-- SourceDirectory should only refer to the
directory where the wsdl
                                                resides and not the actual
wsdl file itself -->
                                       
<sourceDirectory>src/main/resources/wsdl/</sourceDirectory>
                                       
<outputDirectory>${project.build.directory}/generated-sources/</outputDirectory>
                                       
<packageSpace>com.myservice</packageSpace>
                                        <serverSide>false</serverSide>
                                </configuration>
                                <executions>
                                        <execution>
                                                <goals>
                                                       
<goal>wsdl2java</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
-- 
View this message in context: 
http://old.nabble.com/how-to-get-set-http-headers-in-a-soap-request-for-the-generated-client-stubs-tp34159404p34159404.html
Sent from the mojo - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to