Hi, Simon.
You had so many responses on this thread and I had to find the right one to
reply :-).
1) IIRC, it was me who commented out the code to set the soap:address as I
was getting some problems with the empty location URI. Ideally the uri
should from the binding.uri. To make that happen, we need to do some code
refactoring to pass the uri in.
2) The WSDLDefinitionGenerator is the seed code for the efforts to implement
java2wsdl from Tuscany's Interface/Operation model. I checked in the initial
code and Simon Nash is working on it. See
http://www.mail-archive.com/[email protected]/msg30162.html.
Thanks,
Raymond
--------------------------------------------------
From: "Simon Laws" <[EMAIL PROTECTED]>
Sent: Friday, April 11, 2008 7:26 AM
To: <[email protected]>
Subject: Re: Problems with wsdl2java
On Fri, Apr 11, 2008 at 3:17 PM, Simon Laws <[EMAIL PROTECTED]>
wrote:
I uncommented the lines in this code
protected Port createPort(Definition definition, Binding binding,
Service service) throws WSDLException {
Port port = definition.createPort();
port.setBinding(binding);
configurePort(definition, port, binding);
/*
ExtensibilityElement soapAddress =
definition.getExtensionRegistry
().createExtension(Port.class, SOAP_ADDRESS);
((SOAPAddress)soapAddress).setLocationURI("");
port.addExtensibilityElement(soapAddress);
*/
service.addPort(port);
return port;
And now ?wsdl returns
<wsdl:service name="HelloWorld__Service">
<wsdl:port name="HelloWorld__SOAPHTTPPort"
binding="tns:HelloWorld__SOAPBinding">
<wsdlsoap:address
location="http://192.168.247.1:8085/HelloWorldService"/>
</wsdl:port>
</wsdl:service>
So the URI must be inserted later on from the binding URI. My hunch was
wrong there. Why are these lines commented out?
Simon
Another thing that I notice is that there seems to be pretty much the same
code in
interface-wsdl-java2wsdl/o.a.t.s.interfacedef.wsdl.interface2wsdl.WSDLDefinitionGenerator.java
binding-ws-axis2/o.a.t.s.binding.ws.axis2.WSDLDefinitionHelper.java
Apart from the addition of a createTypes(Definition definition) method
to
WSDLDefintionGenerator.
Why do we have two copies of this code?
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]