I had the same kind of problem. It seems the current XFire WsGen does
not generate the client class properly for SOAP 1.2. In the end I ended
up hacking the generated class and exposing the SOAP 1.2 port access
methods myself.
E.g.
In the constructor:
Endpoint SIFoRSoap12EP = service0 .addEndpoint(new QName("urn:xxxxxxx",
"SIFoRSoap12Port"), new QName("urn:xxxxxxx", "SIFoRSoap12"),
"http://x.y.com:8661");
endpoints.put(new QName("urn:xxxxxxx", "SIFoRSoap12Port"), SIFoRSoap12EP);
In the create0() method:
AnnotationServiceFactory asf = new .....
...
asf.createSoap12Binding(service0, new QName("urn:xxxxxxx",
"SIFoRSoap12"), "http://schemas.xmlsoap.org/soap/http");
New port access method:
public SIFoRInterface getSIFoRSoap12Port(String url) {
SIFoRInterface var = ((SIFoRInterface)(this).getEndpoint(new
QName("urn:xxxxxxx", "SIFoRSoap12Port")));
org.codehaus.xfire.client.Client.getInstance(var).setUrl(url);
return var;
}
Maxime Orain wrote:
Hello,
I search how configure XFire to set the version to 1.2… Today I
actually do:
<service>
<name>CountryService</name>
<namespace>CountryService</namespace>
<serviceClass>com.CountryService</serviceClass>
<implementationClass>com.CountryServiceBean</implementationClass>
<createDefaultBindings>false</createDefaultBindings>
<bindings>
<soap12Binding name="tns:CountryServiceBinding"
transport="http://www.w3.org/2003/05/soap/bindings/HTTP/"
allowUndefinedEndpoints="false"/>
</bindings>
</service>
It s not working it didn t generate any wsdl:bindings and it generate
for wsdl:service :
<wsdl:service name="CountryService"> </wsdl:service>
Thanks for reading me…
Max.
This email was sent to you by Reuters, the global news and information
company.
To find out more about Reuters visit www.about.reuters.com
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be the
views of Reuters Limited.
Reuters Limited is part of the Reuters Group of companies, of which
Reuters Group PLC is the ultimate parent company. Reuters Group PLC -
Registered office address: The Reuters Building, South Colonnade,
Canary Wharf, London E14 5EP, United Kingdom
Registered No: 3296375
Registered in England and Wales
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email