Re: cgi webservice
"Scott Nichol" <[email protected]> Fri, 20 May 2005 11:24:42 -0400
| Newsgroups | gmane.text.xml.soap.user |
|---|---|
| Message-ID | <060d01c55d50$0c0b9660$6401a8c0@northgate> |
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 >