--
Ephemeris Lappis
QName resultQName = new QName("http://ws.moon.net/three", "evaluateReturn");
Call call = (Call) service.createCall();
call.setProperty(javax.xml.rpc.Call.OPERATION_STYLE_PROPERTY, "literal");
call.setProperty(javax.xml.rpc.Call.OPERATION_STYLE_PROPERTY, "document");
call.setOperationName(operationQName);
call.addParameter("evaluate", operationQName, String.class, ParameterMode.IN);
call.setReturnType(resultQName, String.class);
-----Original Message-----
From: Kiran Kumar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 07, 2005 6:39 PM
To: [email protected]
Subject: RE: how to call a document style web service?Hello all.. I am really stuck.. please point me to some example on how to call webservice using soap envelope.. I searched through google, but could not find any example...Thank You, Kiran
From: Kiran Kumar [mailto:[EMAIL PROTECTED]
Sent: Tue 6/7/2005 8:15 AM
To: [email protected]
Subject: how to call a document style web service?Helo all,I am using axis 1.2 (java).. I built a document style
webservice, which has following method..
public Geocode onfromto(OnfromtoInputs inputs);
I started writing a client to call this web service
method.. but I could not find any API to call a web
service method with soap envelope.. can you please throw
some light on this ... ?
Thanks for your time, GK.
==== I started writing a client something like this..
// create envelope
SOAPEnvelope env = new SOAPEnvelope();
// create body
SOAPBody body = env.addBody();
// Create body
Name bodyName =
env.createName("onfromto","m","http://mydomain.domain/onfromto");
SOAPBodyElement bodyElement =
body.addBodyElement(bodyName);
Name nameAddress = env.createName("address");
SOAPElement eleAddress =
bodyElement.addChildElement(nameAddress);
eleAddress.addTextNode("2425 springdale");
Name nameGeoCodingTarget = env.createName("codingtarget");
SOAPElement eleGeo =
bodyElement.addChildElement(nameGeoCodingTarget);
eleGeo.addTextNode("0");
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(strEndpoint);How to invoke with soap envelop.... ?
=====------------------------------------------------
This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named. If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone. E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses. ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission. The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.
------------------------------------------------
------------------------------------------------
This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named. If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone. E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses. ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission. The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.
------------------------------------------------
