Hi Cyrille

I have a very similar situation and would really appreciate if you could
help.
I am trying to call a remote webservice which forces gzip compression. I
looked at your very useful webpage
http://wiki.apache.org/ws/FrontPage/Axis/GzipCompression
And I have created the client-config.wsdd file as suggested on the wiki
page. But I am unable to find the BindingStub class.

I also followed the page
(http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL)
to create the proxy classes from WSDL2Java but WSDL2Java creates only
following files for me:-
MyWebService.java
MyWebServiceLocator.java
MyWebServiceSoap.java
MyWebServiceSoapStub.java

Could it be possible that my WSDL2Java version is old? I could not find
where to get the latest version of WSDL2Java.zip. Could someone help me.
I using Axis 1.4, commons-httpclient-3.0,  and WSDL2Java.zip with .class
files last modified around June-2003.

PS: I followed this page (
http://www.pocketsoap.com/weblog/2005/10/1565.html ) and call to the remote
method hangs if I use CommonsHTTPSender.

Cheers
Manish
EdF Trading

   Hello,

   VersionSoapBindingStub is a client stub generated from the wsdl.

You can generate a client stub of your remote service looking at :
http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL
http://wiki.apache.org/ws/FrontPage/Axis/UsingCommandLineTools

Once you have generated these stubs (including xxxBindingStub and
xxxServiceLocator), you can follow the code sample described in
http://wiki.apache.org/ws/FrontPage/Axis/GzipCompression

   Cyrille

--
Cyrille Le Clerc
[EMAIL PROTECTED]
[EMAIL PROTECTED]

On 2/14/06, Amjad Abu Zur - TusAlas <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Sorry I still lost. I have searched the web all the day. In with jar is
tha
> class VersionSoapBindingStub or VersionServiceLocator? How I should
change
> my code to use them?
>
> many thanks again
>
>  ________________________________
>  De: [EMAIL PROTECTED] en nombre de Cyrille Le Clerc
> Enviado el: lun 13/02/2006 16:36
> Para: [email protected]
> Asunto: Re: gzip and org.apache.axis.client.Call
>
>
>
>
>    Hello,
>
>    Did you have a look at the wiki
> http://wiki.apache.org/ws/FrontPage/Axis/GzipCompression ?
>
>    You have to play with CommonsHttpSender,
> binding._setProperty(HTTPConstants.MC_GZIP_REQUEST, Boolean.TRUE) and
> binding._setProperty(HTTPConstants.MC_ACCEPT_GZIP, Boolean.TRUE).
>
>    Cyrille
>
> --
> Cyrille Le Clerc
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
> On 2/13/06, Amjad Abu Zur - TusAlas <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > Hi all,
> >
> >
> > How can I send and receive GZIP webservices request and response  with
the
> class
> > org.apache.axis.client.Call? with the method I have  here should I
trust
> that I have ziped request and response?
> >
> >  I mean, does the line
> "_call.setProperty("Content-Encoding","gzip");" do all for
> me?
> >
> >  Is there any site where you could point me to see the way  to do it?
> >
> >  thanks in advance
> >
> >  public  org.w3c.dom.Element multiSubmitXml(java.lang.String profile,
> org.w3c.dom.Element  requests) throws java.rmi.RemoteException
> >      {
> >         if (super.cachedEndpoint ==  null)
> >          {
> >             throw  new
> org.apache.axis.NoEndPointException();
> >          }
> >         org.apache.axis.client.Call  _call = createCall();
> >          _call.setOperation(_operations[1]);
> >          _call.setUseSOAPAction(true);
> >
> _call.setSOAPActionURI("https://webservices.galileo.com/MultiSubmitXml";);
> >          _call.setEncodingStyle(null);
> >
> _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
>  Boolean.FALSE);
> >
> _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
>  Boolean.FALSE);
> >   _call.setProperty("Content-Encoding","gzip");
> >
>
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
> >          _call.setOperationName(new
javax.xml.namespace.QName(urlGalileo,
> "MultiSubmitXml"));
> >          setRequestHeaders(_call);
> >          setAttachments(_call);
> >         try  {        java.lang.Object _resp =  _call.invoke(new
> java.lang.Object[] {profile, requests});
> >              if (_resp instanceof java.rmi.RemoteException)
> >              {
> >                  throw  (java.rmi.RemoteException)_resp;
> >              }
> >             else
> >              {
> >                  extractAttachments(_call);
> >                  try
> >                  {
> >                      return (org.w3c.dom.Element)  _resp;
> >                  }
> >                  catch (java.lang.Exception _exception)
> >                  {
> >                      return (org.w3c.dom.Element)
> org.apache.axis.utils.JavaUtils.convert(_resp,
> org.w3c.dom.Element.class);
> >                  }
> >              }
> >         }
> >         catch (org.apache.axis.AxisFault  axisFaultException)
> >          {
> >             throw  axisFaultException;
> >          }
> >     }
> >
> >
> >
> >
> >
> >
> >
> > Mohamed        Abu Zur___          ________________
> > Browser        System        S.L.
>        [www.tusalas.com]
> > Departamento        de Desarrollo e Informática
> >
> >
> > TEL:        +34 91 475 02 42  @mail: [EMAIL PROTECTED]
> > C/ Cristo de        la victoria nº 102 - 104   ::: Madrid -
España


*********************************************************************
This communication contains confidential information some or all of which may 
be privileged.  It is for the intended recipient only and others must not 
disclose, distribute, copy, print or rely on this communication.  If an 
addressing or transmission error has misdirected this communication: in the 
case that this communication is an e-mail please notify the sender by replying 
to this e-mail and then delete the e-mail; in the case that this communication 
is a facsimile, please notify the sender immediately by telephone and return 
the facsimile to the sender by mail and the sender will reimburse you for any 
expense incurred.  E-mail sent to EDF Trading may be monitored by the Company. 
Thank you.  
EDF Trading Markets Limited
71 High Holborn, London WC1V 6ED
A Company registered in England No. 4255974. 
Switchboard: 020 7061 4000
EDF Trading Markets Limited is a member of the EDF Trading Limited Group and is 
regulated by the Financial Services Authority.
*********************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to