8

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?

3
  • What do you hope to achieve by this?
    – superfell
    Dec 2, 2013 at 16:17
  • I would like to have an WSDL which contains just login, query and some custom web services. Dec 2, 2013 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, 2013 at 17:02

2 Answers 2

2

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.

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .