[resolved] tWebServiceInput WSDL2Java not generation ServiceLocator for EWS

One Star jds
One Star

[resolved] tWebServiceInput WSDL2Java not generation ServiceLocator for EWS

Working with the Exchange 2010 EWS wsdl in tWebServiceInput, after adding the two referred-to xsd files to the services directory, was able to successfully (i.e. no reported errors) run WSDL2Java. It generated dozens of routines for the operations and as well the PortType and BindingStub routines. However it did not create the ServiceLocator routine.
1) Wondering if anyone has any guidance on why a ServiceLocator routine would not get generated by WSDL2Java in general for a wsdl and specifically for EWS... and if there is a way to get it to pop out?
2) Alternatively, while the tWebServiceInput tutorial utilizes ServiceLocator to help create the new instance. does anyone know if it would be possible to skip using it and just refer directly to an operator routine? And what the correct syntax would be?
Thanks for any advice you can give!

Accepted Solutions
One Star jds
One Star

Re: [resolved] tWebServiceInput WSDL2Java not generation ServiceLocator for EWS

Re-running WSDL2Java and now it is creating the ServiceLocator routine. Trick was to addend the wsdl file with:
<wsdl:service name="ExchangeServices">
<wsdlSmiley Tongueort name="ExchangeServicePort" binding="tns:ExchangeServiceBinding">
<soap:address location="https://my.exchange.com/EWS/Exchange.asmx"/>
</wsdlSmiley Tongueort>
</wsdl:service>
Credit to http://code.google.com/p/imap2exchange/wiki/ExchangeWebServices
Will see if it works tomorrow

All Replies
One Star jds
One Star

Re: [resolved] tWebServiceInput WSDL2Java not generation ServiceLocator for EWS

Re-running WSDL2Java and now it is creating the ServiceLocator routine. Trick was to addend the wsdl file with:
<wsdl:service name="ExchangeServices">
<wsdlSmiley Tongueort name="ExchangeServicePort" binding="tns:ExchangeServiceBinding">
<soap:address location="https://my.exchange.com/EWS/Exchange.asmx"/>
</wsdlSmiley Tongueort>
</wsdl:service>
Credit to http://code.google.com/p/imap2exchange/wiki/ExchangeWebServices
Will see if it works tomorrow
Moderator

Re: [resolved] tWebServiceInput WSDL2Java not generation ServiceLocator for EWS

Hi, jds
Thanks for your sharing, and we are all interested in your case. Waiting for your good news.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.