This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | [68cat] Problems with Http binding | ||
---|---|---|---|
Product: | webservices | Reporter: | Peter Nabbefeld <epdv> |
Component: | Code | Assignee: | Milan Kuchtiak <mkuchtiak> |
Status: | NEW --- | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Peter Nabbefeld
2009-10-12 08:29:55 UTC
Thanks for pointing to this. Moreover, we incorrectly generate client for HTTP GET/POST soap binding. We should, at least, somehow inform the user that Netbeans doesn't support this binding. >Why do I need a SOAP address for Http binding? I think each wsdl:binding element requires specific wsdl:port element, though they could be mapped to the same endpoint. See example: <wsdl:service name="CurrencyConvertor"> <wsdl:port name="CurrencyConvertorSoap" binding="tns:CurrencyConvertorSoap"> <soap:address location="http://www.webservicex.net/CurrencyConvertor.asmx" /> </wsdl:port> <wsdl:port name="CurrencyConvertorSoap12" binding="tns:CurrencyConvertorSoap12"> <soap12:address location="http://www.webservicex.net/CurrencyConvertor.asmx" /> </wsdl:port> <wsdl:port name="CurrencyConvertorHttpGet" binding="tns:CurrencyConvertorHttpGet"> <http:address location="http://www.webservicex.net/CurrencyConvertor.asmx" /> </wsdl:port> <wsdl:port name="CurrencyConvertorHttpPost" binding="tns:CurrencyConvertorHttpPost"> <http:address location="http://www.webservicex.net/CurrencyConvertor.asmx" /> </wsdl:port> </wsdl:service> Suggested solution : use Jersey(REST) Client API to generate client for HTTP GET/POST bindings. Using this API it should be pretty straightforward. See: http://blogs.sun.com/enterprisetechtips/entry/consuming_restful_web_services_with This is pretty complex, so am qualifying this as new feature (enhancement). Setting this to enhancement due last comment of Milan. |