Re: java2wsdl yeilds WSDL file that causes NullPointerException
Am Mittwoch, den 27.02.2008, 16:27 -0500 schrieb Daniel Kulp: > On Tuesday 26 February 2008, Daniel Lipofsky wrote: > > OK, I solved this original problem but I have more questions: > > > > How do you control the soap location. > > Right now it is outputing > > http://localhost:9090/hello"/> > > which is not correct. > > Hmm I don't see a way to do it with the 2.0.x java2wsdl tooling. > With the 2.1 tooling, there is a "-address" flag that looks like it > would be for that pupose. > > > > Also, can I override this programmatically in the client? > > That's the easy part. > ((BindingProvider)proxy).getRequestContext().put( > BindingProvider.ENDPOINT_ADDRESS_PROPERTY, > "http://blah/blah/blah";); > Part 7 of [1] gives a fuller example if it would help you. Glen [1] http://www.jroller.com/gmazza/entry/using_the_ebay_shopping_api1
Re: java2wsdl yeilds WSDL file that causes NullPointerException
On Tuesday 26 February 2008, Daniel Lipofsky wrote: > OK, I solved this original problem but I have more questions: > > How do you control the soap location. > Right now it is outputing > http://localhost:9090/hello"/> > which is not correct. Hmm I don't see a way to do it with the 2.0.x java2wsdl tooling. With the 2.1 tooling, there is a "-address" flag that looks like it would be for that pupose. > Also, can I override this programmatically in the client? That's the easy part. ((BindingProvider)proxy).getRequestContext().put( BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://blah/blah/blah";); Dan > > Thanks, > Dan > > p.s. I solved it by removing package-info.java and also > BasePortType.java and BaseService.java which were hanging around > from when I generated things for the abstract class; I also > removed a reference to targetNamespace=".../Base.wsdl" that was > hanging around in WSException.java. Not sure what really did it. -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog
RE: java2wsdl yeilds WSDL file that causes NullPointerException
OK, I solved this original problem but I have more questions: How do you control the soap location. Right now it is outputing http://localhost:9090/hello"/> which is not correct. Also, can I override this programmatically in the client? Thanks, Dan p.s. I solved it by removing package-info.java and also BasePortType.java and BaseService.java which were hanging around from when I generated things for the abstract class; I also removed a reference to targetNamespace=".../Base.wsdl" that was hanging around in WSException.java. Not sure what really did it.