I modify the example xml you sent me to fit my HelloWorldService service, 
however I didn't see any difference in the generated WSDL. I see nothing 
that references the Header element. 

Thoughts?


package com.myeclipse.wsexample;
//Generated by MyEclipse

public class HelloWorldServiceImpl implements IHelloWorldService {
 
        public String example(String message) {
                return message;
        }
 
}


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://xfire.codehaus.org/config/1.0";> 
        <service>
                <name>HelloWorldService</name>
                <serviceClass>
                        com.myeclipse.wsexample.IHelloWorldService
                </serviceClass>
                <implementationClass>
                        com.myeclipse.wsexample.HelloWorldServiceImpl
                </implementationClass>
                <style>rpc</style>
                <use>literal</use>
                <scope>application</scope>
                <method name="example" operationName="example">
                <parameter index="1" class="java.lang.String" header=
"true" />
                <parameter index="2" class="java.lang.String" header=
"true" />
                </method>
        </service>
</beans>



Here is the sample you sent me:
Hmm, You can also configure this using services.xml file:

header="true" is important part

<service id="ConcatService">
    <name>ConcatService</name>
    <namespace>urn:concat-service</namespace>
 
<serviceClass>org.codehaus.xfire.spring.config.ConcatService</serviceClass>
    <method name="concat" operationName="concatThreeStrings" 
xmlns:c="urn:test">
      <parameter index="1" class="java.lang.String" header="true" />
      <parameter index="2" class="java.lang.String" header="true" />

    </method>
    <method name="excluded" exclude="true"/>
  </service>



Reply via email to