Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Cannot generate stub objects for web service invocation.

New Here ,
Nov 02, 2009 Nov 02, 2009

Hi All

since we have updated our CF server from 8.0 (8.0.0.176276) to 8.0.1 (8.0.1.195765) our remorte call to a CFC using <cfinvoke>

stoppe dworking and now it returned this error :

............................................................................................................................................................................................................

Cannot generate stub objects for web service invocation.

Name: http://xxx/resource/component/phrasebook.cfc?wsdl. WSDL: http://xxx/resource/component/phrasebook.cfc?wsdl. org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name: D:\ColdFusion8\stubs\WS100964810\resource\component\Phrasebook.java. Hint: you may have mapped two namespaces with elements of the same name to the same package name. It is recommended that you use a web browser to retrieve and examine the requested WSDL document to ensure it is correct. If the requested WSDL document cannot be retrieved or is dynamically generated, it is likely that the target web service has programming errors.

............................................................................................................................................................................................................

I have tried access that CFC directly from the browser and it returning back with nopb the WSDL xml

Also tried renamed that CFC, adn it did work, but renaming is not an option in our case

did anyone come across the above error ?

thanks for your help in advance.

Regards

M

2.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 02, 2009 Nov 02, 2009

Have you tried deleting the .java source code file it mentions?  It's just part of the web service stub compilation process, and will regenerate (and then get deleted) next time the WS is used.

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 02, 2009 Nov 02, 2009

Thanks Adam,

unfortunately no luck i have tried deleting that and still the same pb.

Regards

M

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 02, 2009 Nov 02, 2009

Hmmm.

OK.  I've had this before, but cannot remember how I sussed out what the problem was.  I think it's because CF can't interpret how to deal with a datatype the webservice says it uses, or something?

Have a troll through your CF & JRun logs to see if there's anything logged when the error occurs.

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 11, 2009 Nov 11, 2009

Thanks Adam

unfortunaly still no luck : (

here's the only error msg i am geting when i try to rebuild the wsdl manualy :

D:\ColdFusion8\runtime\bin>wsdl2java d:\temp\phrasebook.wsdl
org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name: resource\component\Phrasebook.java.
Hint: you may have mapped two namespaces with elements of the same name to the same package name.
        at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:137)
        at org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWriter.java:98)
        at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:284)
        at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:328)
        at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:82)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:246)
        at java.lang.Thread.run(Thread.java:619)

Regards

M

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Nov 12, 2009 Nov 12, 2009
LATEST

Hi,

Can you please post your wsdl code here?.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources