You need to sign in to do that
Don't have an account?
karthik karthik
How to display Attributes in WSDL.
Hi,
I want to return two diffenrent datatypes from custom wsdl, for that I have created a Wrapper class inside the custom wsdl and return two different datatypes. Below is my code.
Global class GetOpportunityId
{
Global class Response{
Global String Message;
Global Boolean Status;
}
WebService static Response getOppFromVC(Opportunity OppParam,Account AccParam)
{
Response Res = New Response();
-------
my Apex code here
---------
--------
Res.Message = 'Upated Successfully';
Res.status = True;
return Res;
}
}
My wsdl:
<xsd:complexType name="Response">
<xsd:sequence/>
</xsd:complexType>
In the above XML the attributes like Message and Status are missing. How to get those attributes. Please it's some urgent.
Thanks in advance.
I want to return two diffenrent datatypes from custom wsdl, for that I have created a Wrapper class inside the custom wsdl and return two different datatypes. Below is my code.
Global class GetOpportunityId
{
Global class Response{
Global String Message;
Global Boolean Status;
}
WebService static Response getOppFromVC(Opportunity OppParam,Account AccParam)
{
Response Res = New Response();
-------
my Apex code here
---------
--------
Res.Message = 'Upated Successfully';
Res.status = True;
return Res;
}
}
My wsdl:
<xsd:complexType name="Response">
<xsd:sequence/>
</xsd:complexType>
In the above XML the attributes like Message and Status are missing. How to get those attributes. Please it's some urgent.
Thanks in advance.
Declare the Data type like the below,It works tested.
WebService String Message;
WebService Boolean Status;
Thanks,
Have a great day ahead,Let the Force be with you!
Please mark this as best answer if it helps you.
All Answers
Declare the Data type like the below,It works tested.
WebService String Message;
WebService Boolean Status;
Thanks,
Have a great day ahead,Let the Force be with you!
Please mark this as best answer if it helps you.