Omar,

Because you are using Apache Axis for the client, I suggest you try posting to 
the list [EMAIL PROTECTED]

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message ----- 
From: "Omar Bennani" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, May 20, 2005 6:20 AM
Subject: cgi webservice


> Hi
> I'm devloping cgi web servie (an delphi executable)
> and i want use a java client, have somebody samples of
> codes or tutorials about this, cause i have some
> problems
> in my client java code I have:
> 
> String url =
> "http://localhost:8088/cgi-bin/Project2.exe/wsdl/ITHitchHiker";;
> int o = 1;
> Service service = new Service();
> Call call = (Call) service.createCall();
> call.setTargetEndpointAddress(new URL(url));
> call.setSOAPActionURI("TheAnswer");
> call.setEncodingStyle(NamespaceConstants.NSURI_SOAP_ENCODING);
> call.setOperationName(new QName("urn:TTHitchHiker",
> "TheAnswer"));
> call.setReturnType(XMLType.XSD_INTEGER);
> Integer hello = (Integer) call.invoke(new Object[] { o
> } );
> System.out.println("The Web Service returned: " +
> hello);
> System.out.println ("HelloWorld.main: All done!");
> 
> ITHitchHiker is the cgi object
> TTHitchHiker is the cgi class
> TheAnswer is the cgi method
> 
> 
> 
> 
> 
> 
> _____________________________________________________________________________ 
> D�couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, 
> photos et vid�os ! 
> Cr�ez votre Yahoo! Mail sur http://fr.mail.yahoo.com
>

Reply via email to