7

I am trying to generate a WSDL that expose only some of my objects and methods.

The Enterprise WSDL expose every object and method that my org has.

I know that it could be possible "cutting" the generated XML by hand taking care the dependences, but is there any tool to resolve those dependences? or to regenerate a WSDL from other WSDL choosing the exposed methods?

  • What do you hope to achieve by this? – superfell Dec 2 '13 at 16:17
  • I would like to have an WSDL which contains just login, query and some custom web services. – Martin Borthiry Dec 2 '13 at 16:26
  • 1
    but why? I've seen people mistakenly think this provides some kind of security, which it doesn't – superfell Dec 2 '13 at 17:02
1

The usual method is manual editing, although it should be possible to use the Eclipse IDE's WSDL editing mode to trim out the extra functions that you don't need. You'll still need to take care not to delete dependencies that are actually required, because Eclipse cannot validate what is or isn't necessary directly.

| improve this answer | |
0

This answer says that the Enterprise WSDL content depends on the current user.

If you need to hide Objects or fields, you might want to define all these permissions in a user profile, for a specific webservice user, and generate the WSDL while connected as that user. It should only contain what they're allowed to manipulate.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.