You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2003/06/13 17:56:11 UTC

DO NOT REPLY [Bug 20748] New: - HTTP GET called twice for the same WSDL

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20748>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20748

HTTP GET called twice for the same WSDL

           Summary: HTTP GET called twice for the same WSDL
           Product: Axis
           Version: 1.1rc2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: eric_beaumier@hotmail.com


Hi,



I'm a new user of Axis client module.  I have remark that Service class make a 
HTTP GET twice for the same WSDL.  Maybe we can avoid this extra steps by 
reusing it ...

   Service service = new Service(url, servQN);


Service(URL, QName) constructor make a call to create a DOM object.  This 
process create one HTTP GET for retrieving the WSDL.

  doc = XMLUtils.newDocument(wsdlDoc.toString());


After you call the 

  initService(doc, serviceName);

And inside this one you don't use de Document info.  At the place you parse 
WSDL again

  parser.run(this.wsdlLocation.toString());


And this cause a second HTTP GET to retreive the WSDL again.  At the end, we 
made 2 HTTP GET (WSDL) and one HTTP POST for the SOAP call.


Thanks.