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
Chiyaan AnanthChiyaan Ananth 

Expecting help in Metadata API

I am trying to execute the CreateSample with the generated java code from my metadata wsdl.  Once when I run the application,  I get a message like

 

- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.

 

After login when I hit enter I get the following exception message "No operation available for request {http://soap.sforce.com/2006/04/metadata}create" 

 

The sample code from the metadata api had like

metadatabinding._setProperty(MetadataBindingStub.ENDPOINT_ADDRESS_PROPERTY,

                loginResult.getMetadataServerUrl()); 

But there is no method defined as getMetadataServerUrl() in LoginResult in my enterprise package.  So I have chenged getMetadataServerUrl() to getServerURL()

Can some one help me in what do I miss here.

Thanks in Advance. 

SuperfellSuperfell
sounds like you have a really old enterprise WSDL, import a new enterprise WSDL.
Chiyaan AnanthChiyaan Ananth

Thank you for your reply.

I was using Java Quick Start API.  Thought that will be the latest code.  I will try to download the latest wsdl from my developer account. 

Chiyaan AnanthChiyaan Ananth

Thank you simon.

Just downloaded the wsdl,  saw metadataurl in the latest wsdl downloaded.  Still to generate client code from the downloaded enterprise wsdl.