function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
IvarIvar 

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