Need newsgroup thread + attachments for "Consuming EWS SOAP" posted 02-May-2011

Need newsgroup thread + attachments for “Consuming EWS SOAP” posted 02-May-2011

http://www.codenewsfast.com/cnf/thread/907234328/permalink.thr-ng1706q14470

I’m sorry, but we don’t have these

Is there anyone who has a copy of the RODL for using ExchangeWebService (EWS)?

Have you tried to import EWS wsdl with ServiceBuilder?

I sure have after manually inserting

<wsdl:service name="ExchangeWebService">
	<wsdl:port name="ExchangeServicePortType" binding="tns:ExchangeServiceBinding">
		<soap:address location="https://webmail.keppelverolme.nl/EWS/Exchange.asmx" />
	</wsdl:port>
</wsdl:service>

in the <wsdl:definitions> node.

The thing is that SB and RODL tool give me to many validation errors ‘language’ type for instance is not resolved that I think I build up a ‘minimized’ wsdl version only defining the the operations and structures (CreateItem…) I need.

in ServiceBuilder, you can cleanup library with Tools->Delete unused items…

Done and my project compiles. Except that when I want to choose the ServiceName I get a “Missing Content Type” after I login.

I have have RORemoteService1.Channel bound to ROWinInetHTTPChannel1 with TargetURL set to …/EWS/Exchange.asmx and RORemoteService1.Message bound to ROSOAPMessage1 with standard properties

You can paste correct name into RemoteService.ServiceName property… it tries to verify ServiceName when you are changing it

OK. Now I added RODynamicRequest1 and trying to choose a MethodName given me te same “Missing Content Type” (even when pasted in) . Looks to me like a structural problem. As I need to retrieve the params for the operation.

Done some call in code (under a button). Exchange/Windows prompts for credentials when I call (RORemoteService1 as IExchangeWebService).GetServerTimeZones(gstz, rsv, svi) but responds with:

An exception was raised on the server: The request failed schema validation: Could not find schema information for the element 'http://schemas.microsoft.com/exchange/services/2006/messages:MailboxCulture'.

if you created units with native delphi WSDLImp.exe and call this service with created unit, will it work as expected?