It will create a proxy with the necessary entities. that reflect how the
XML document is supposed to appear. You can then use these entities to
craft a msg to submit to the appropriate operation.
i.e. if your WSDL is expecting a PriceCheckRequest document (and
includes the appropriate schema info) as a parameter to an operation
(for example: checkPrice) then it will generate the
PriceCheckRequest.java class that knows how to serialize itself and it
generates the proxy with the methods identified in the WSDL.
I hope that gives you what you want. try it out. It's nice. (btw, I
can't guarantee that your Web Service that your consuming is defined
correctly or has the appropriate corresponding WSDL to accommodate this).
Brian
Carmine Gargiulo wrote:
Whaaaaaaaaaat??? sure?? :D
WSDL2Java generate a client in java with call functions??
In data Wed, 12 Oct 2005 19:22:25 +0200, Brian Bonner
<[EMAIL PROTECTED]> ha scritto:
If you have the WSDL for a document-style webservice, you can use
WSDL2Java to generate yourself a client that you can work with. Then
you can call the service using the generated client.
Brian
Carmine Gargiulo wrote:
Hi
i've a BIG problem
for my work i MUST ask infodata to document-style WebService.
In the net i've found a lot of example of clients for RPC-style
WS...but not for document-style WebService.
In general the code was:
String nameWS = "http://localhost:8080/axis/services/wsRemote";
URL endPointWS = new URL(nameWS);
// init
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(endPointWS);
call.setOperationName("getFileToString");
String op1 = new String(myParam);
call.addParameter("op1", XMLType.XSD_STRING, ParameterMode.IN);
call.setReturnType(XMLType.XSD_STRING);
ret = String.valueOf(call.invoke(new Object[] {op1}));
I'm junior of axis and WebService.....and I think that for
document-style WebService the cose above not is rith.
The WS give me a XML but i don't know ...how take this xml....and if
this XML is in HD or in memory or other.
Please help me!! I'S VERY URGENT
--Carmine Gargiulo
Carmine Gargiulo usa il rivoluzionario client e-mail di Opera:
http://www.opera.com/m2/
-- Email.it, the professional e-mail, gratis per te:
http://www.email.it/f
Sponsor:
Digitalpix stampa le tue migliori foto digitali* su vera carta
fotografica professionale.
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1532&d=12-10
--Carmine Gargiulo
Carmine Gargiulo usa il rivoluzionario client e-mail di Opera:
http://www.opera.com/m2/
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Problemi di Liquidità? Con Logos Finanziaria 30.000 � in 24 ore a
dipendenti e lavoratori autonomi con rimborsi fino a 120 mesi, clicca qui
*Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2911&d=12-10