Skip navigation
Rockit8
Currently Being Moderated

Webservice Stubs

May 10, 2012 8:29 AM

Tags: #wsdl #cf8

Hi

 

I've working with webservices for a while now and i know that coldfusion generates java classes for a given wsdl and that these classes are in the <coldfusion_install_dir>\stubs\

 

Inside the stubs directory there is one folder for each referenced webservice...these folders have names like WS-882657457 or WS2071109075.

 

What is the relation between the WSDL and these folders? Where can I see the association Webservice - Stub Folder?

 

Regards.

 
Replies
  • Currently Being Moderated
    May 10, 2012 10:21 PM   in reply to Rockit8

    Always found these to be very random. You might be able to use jad, a java decompiler, to gain insight to the url embedded on the class files.

     
    |
    Mark as:
  • Currently Being Moderated
    May 12, 2012 12:00 AM   in reply to Rockit8

    Your example deals with Jave objects already. So why not just write the Java code directly from there? Something like

     

    import coldfusion.server.ServiceFactory;

     

    public class MyClass

    {

        public String testFunction()

        {

       

            try {

           

             //declare ServiceFactory variable

             ServiceFactory serviceFactory;

           

             //instantiate ServiceFactory variable

             serviceFactory = new ServiceFactory();

           

             //etc., etc., and off you go

           

            }

            catch (Throwable ex) {

                ex.printStackTrace();

            }

       

            return someString;

        }

    }

     

    Having said that, I have a lot of doubt about the strategy you're following. It is still unclear, to me at least, what you wish to achieve. Why would you want to have a handle on the internal ColdFusion processes between the WSDL and the stubs directory? Since you don't say, it sounds like you're just tinkering in the bowels of the machine. Even if you get it working, it will probably lead to more problems than you expect.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points