Hi Paul; We support the dynamic WSDL based Service Client by passing definition object to ServiceClient. But we feel Stub always bound to a WSDL and if WSDL has changed, we must regenerate the stubs.
If we just need to change endpoint URL and SOAP action, we can set them by getting the underline ServiceClient object for the client. But if we provide a constructor that accepts a WSDL, user will expect stubs to do more changes based on WSDL, and lead to new requirements. So consensus at F2F is that we do not need to do this. Thanks Srinath On 6/15/07, Paul Fremantle <[EMAIL PROTECTED]> wrote:
Srinath Can you please detail the issues that you consider to be a problem? I think this is a key usage of WSDL and plenty of other programming languages and WS stacks support the dynamic lookup of endpoints from WSDL in this manner. I think its a shame that we get all the pain of WSDL and we aren't even getting the benefits! Paul On 6/15/07, Srinath Perera (JIRA) <[EMAIL PROTECTED]> wrote: > > [ https://issues.apache.org/jira/browse/AXIS2-2680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] > > Srinath Perera resolved AXIS2-2680. > ----------------------------------- > > Resolution: Won't Fix > > discussed F2F 2007 june, we feel supporting this would lead to many new isseues and complex senarios in the future. So it is a wont Fix. If wsdl changed you should regenerate code. > > > Allow passing a WSDL to a Stub to have endpoint and binding read > > ---------------------------------------------------------------- > > > > Key: AXIS2-2680 > > URL: https://issues.apache.org/jira/browse/AXIS2-2680 > > Project: Axis 2.0 (Axis2) > > Issue Type: Improvement > > Components: codegen > > Affects Versions: 1.2 > > Reporter: Paul Fremantle > > Assignee: Amila Chinthaka Suriarachchi > > Priority: Blocker > > > > Currently the Stub is generated from the WSDL, and I can pass a new Endpoint URL in. But suppose the WSDL change (just the SOAPActions and URL, say) then I would need to read the WSDL, find the endpoint and set it into the stub. > > In fact I can *probably* do this this way: > > ServiceClient sc = new ServiceClient(stub._getServiceClient().getServiceContext().getConfigurationContext(), wsdlURL); > > stub._setServiceClient(sc); > > But it would be nice to have a StubConstructor: > > new MyStub(wsdlURL); > > Of course if the porttype changes then its not gonna work, but you can't stop people shooting themselves in the foot! > > -- > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. > > -- Paul Fremantle Co-Founder and VP of Technical Sales, WSO2 OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- ============================ Srinath Perera: Indiana University, Bloomington http://www.cs.indiana.edu/~hperera/ http://www.bloglines.com/blog/hemapani --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
