That is the correct serverside design.
You need to add the method 'GetMyInfo' to your deployment descriptor and
ensure that you encode properly.
Example One:
Constants.NS_URI_LITERAL_XML for the call object.
Constants.NS_URI_SOAP_ENC for the parameter.
Example Two:
Constants.NS_URI_SOAP_ENC for the call object.
Remember that you cannot return a document in SOAP (documents in documents
dont work that well), so use the Element.
-Dirck
-----Original Message-----
From: Khamesra, SandeepX [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 8:55 AM
To: [EMAIL PROTECTED]; '[EMAIL PROTECTED]'
Subject: Is this the correct design
Guys
I need to write a java function which accepts a parametr and returns the
data in the form of XML . Now this service is in Java. What dod you think is
the best design . out of these
public Element GetMyInfo(String name )
{
/* This function builds the XML based on some criter*/
}
or
public String GetMyInfo(String name )
{
/* Concatenate the string to give XML lok and return it */
}
Is there any better design .. This should be accessible for all types of
client using SOAP..
------------------------------------------------------------------------------
DISCLAIMER
Notice Regarding Entry of Orders and Instructions:
Please do not transmit orders and/or instructions regarding your Robertson Stephens
account(s) by e-mail. Orders and/or instructions transmitted by e-mail will not be
accepted by Robertson Stephens, and Robertson Stephens will not be responsible for
carrying out such orders and/or instructions.
Notice Regarding Privacy and Confidentiality:
Robertson Stephens reserves the right to monitor and review the content of all e-mail
communications sent and/or received by its employees.
------------------------------------------------------------------------------