Hello,
I understood the following code,
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs = fac.createOMNamespace(
"http://example2.org/example2", "ex");
OMElement method = fac.createOMElement("echo", omNs);
OMElement value = fac.createOMElement("element", omNs);
value.addChild(fac.createOMText(value, "Axis2 hello"));
method.addChild(value);
also one more:
SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
SOAPEnvelope envelope = fac.getDefaultEnvelope();
OMNamespace namespace =
fac.createOMNamespace(webserviceNameSpace,
operationName);
OMElement params1 = fac.createOMElement(operationName,
namespace);
OMElement paramOM =
fac.createOMElement(paramName, namespace);
paramOM.setText(paramValue.toString());
params1.addChild(paramOM);
}
envelope.getBody().setFirstChild(params1);
return envelope;
}
But both take string as parameter. How can I send any other object other
than string?
With Warm Regards,
Nancy Aggarwal
Software Developer
-----Original Message-----
From: Nirmit Desai [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 6:29 PM
To: [email protected]
Subject: RE: [Axis2] Help me better understand axis2
Look at the AXIOM javadoc
http://ws.apache.org/commons/axiom/apidocs/index.html
I am not sure how you can have a HashMap type parameter in an Axis2
service operation. For best results, start from a WSDL and generate code
with databinding.
-Nirmit
"nancy"
<[EMAIL PROTECTED]
affodildb.com> To
<[email protected]>
09/18/2006 06:32 cc
AM
Subject
RE: [Axis2] Help me better
Please respond to understand axis2
[EMAIL PROTECTED]
he.org
Hi Sameera,
Thanks Sameera for the link. I have gone through the document.
Is there any link in which how to send the request having parameters other
than String is explained. As far as I know the setText method of OMelement
takes String parameter, also createOMElement method of OMfactory takes
string parameter?
With Warm Regards,
Nancy Aggarwal
Software Developer
(Embedded image moved to file: pic12149.gif)
From: Sameera Madushan [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 12:46 PM
To: [email protected]
Subject: Re: [Axis2] Help me better understand axis2
Hi nancy,
Since you have the implementation class. The next thing you have do is to
create the services.xml file. I will try to reply with the services.xml
file. Before hand you better refer the following tutorial.
...
...
For further details you can refer tutorial "Writing an Axis2 Service from
Scratch" by Deepal Jayasinghe under the following link
http://www.developer.com/services/article.php/3613896
http://www.developer.com/services/article.php/3613896
On 9/18/06, nancy <[EMAIL PROTECTED]> wrote:
Hello all,
I am very confused how to create my web service. I am having these two
operations which I want to expose. How can I create its service.xml and
then after exposing I need to create a client? But how, I am unable to
start with. Please help me to better understand the axis2.
public class Test{
public int tingTong(int var1){
return var1+100;
}
public HashMap tingTong(HashMap var1){
return var1;
}
}
With Warm Regards,
Nancy Aggarwal
Software Developer
(Embedded image moved to file: pic18618.gif)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]