You need to sign in to do that
Don't have an account?
Ivar
Apex WSDL: Need named complexType
Hi there.
I have been browsing around and searching for a solution but have found none.
My problem is that I am creating an Apex Web Service for internal use within my company and we are having some problems with the WSDL. According to the developers I am working with they cannot process the current WSDL because it contains anonymous complexType elements that their tools thus cannot reference:
example: <xsd:complexType>
Does anyone know if there is any way for me to manipulate this so that a name is assigned to the elements in question?
Something like this: <xsd:complexType name="CreateOrder">
My web service code, still only a test, looks like this:
global class WSCreateWorkOrder {
webService static string CreateOrder( string strOrderId ){
FieldServicesB2B__c wo = new FieldServicesB2B__c();
try{
insert wo;
}
catch( Exception e ){
return 'Error: ' + e.getMessage();
}
return wo.Id;
}
}
Best regards,
Ivar
Message Edited by Ivar on 01-14-2009 07:31 AM
Message Edited by Ivar on 01-14-2009 07:33 AM
I have been browsing around and searching for a solution but have found none.
My problem is that I am creating an Apex Web Service for internal use within my company and we are having some problems with the WSDL. According to the developers I am working with they cannot process the current WSDL because it contains anonymous complexType elements that their tools thus cannot reference:
example: <xsd:complexType>
Does anyone know if there is any way for me to manipulate this so that a name is assigned to the elements in question?
Something like this: <xsd:complexType name="CreateOrder">
My web service code, still only a test, looks like this:
global class WSCreateWorkOrder {
webService static string CreateOrder( string strOrderId ){
FieldServicesB2B__c wo = new FieldServicesB2B__c();
try{
insert wo;
}
catch( Exception e ){
return 'Error: ' + e.getMessage();
}
return wo.Id;
}
}
Best regards,
Ivar
Message Edited by Ivar on 01-14-2009 07:31 AM
Message Edited by Ivar on 01-14-2009 07:33 AM