• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

Error in JAXWS client web service usig dynamic url

 
Ranch Hand
Posts: 620
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have client wsdl , from it i generated java stubs like this:

now in the client i want to be able to set dynamic endpoint urls, after reading few post here i did it like this:



but when it come to real invocation of the client im getting this exception:



any idea why ?
 
Ranch Hand
Posts: 491
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look at the exception. See what it said.
 
ben josh
Ranch Hand
Posts: 620
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
i forget the last sentence in the question ,
The error as you see that it tryes to read the wsdl file from which i compiled the stubs.
why , i dont need the wsdl after i already have the stubs , don't i ?
 
H Paul
Ranch Hand
Posts: 491
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you run wsimport OK, then you should see classes generated - Client artifacts that you called stubs.

Search among those classes where it refered to the wsdl and see why? Also look into the wsdl and see element <soap:address
 
ben josh
Ranch Hand
Posts: 620
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well the only indecation in the client stubs is in :


in the ApiService.java stub
what im doing wrong
 
H Paul
Ranch Hand
Posts: 491
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
(1. A side note: you don't put the provider's wsdl in the same directory's wsimport.)
2. Look at the exception and see what it said. Read slowly.
3. Look entirely at the ApiService.java.
5. If possible, instead of using command line wsimport, use an IDE Eclipse to import the wsdl. You will see the whole flow and the exception.
 
ben josh
Ranch Hand
Posts: 620
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i thing the answer is just " the client have to have the wsdl"
ok i found about the -wslocation parameter
 
Onion rings are vegetable donuts. Taste this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic