Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

web service client

 
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi am using JAX-WS client to invoke my web service. But it's making 2 call to the server. 1 st call to check the wsdl(get call) with empty body and 2nd call post with body. But when I use axis it's making only 1 call. Could some one please help me why it's making 2 call.
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
It could be that the Axis web service stack assumes that there are no changes in the WSDL and the endpoint address used when generating the client artifacts, while the JAX-WS web service stack does indeed check.
Best wishes!
 
Meet Gaurav
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for quick reply. Is there any way I can stop that ?. It's performance issue for me(2 network calls)
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
The JAX-WS specification mandates support for the Oasis XML Catalogs 1.1 specification, which enables you to redirect requests for XML schema and WSDL documents.
You could use this feature to redirect requests for the WSDL and associated XML schemas to local copies and thus avoid the network requests.
Reference:
Oasis XML Catalogs 1.1 specification: http://www.oasis-open.org/committees/download.php/14809/xml-catalogs.html
The specification includes links to examples.
Best wishes!
 
Meet Gaurav
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for response. Am new to web services, could you please assist me how to implement this in client code

<rewriteSystem systemIdStartString="http://www.example.com/";
rewritePrefix="file:///share/mirrors/example/"/>;

As per my understanding
JavadbWebServiceService service = new JavadbWebServiceService();
JavadbWebService port = service.getJavadbWebServicePort(); ----- This is making the get call.

String currentTime = port.getTime();



 
please buy my thing and then I'll have more money:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic