You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ken Hawkins <ke...@rosewoodblues.com> on 2005/11/21 21:18:56 UTC

moved from axis 1_3 to axis2 and having a WSDL2Java issue

Hi all,

This is the first on the list for me and please allow me to cut to  
the chase I perviously was using axis 1_3 and WSDL2Java to generate  
java files from http://affiliate.broadjam.net/server.php?wsdl this  
was happening fine however now that I moved to axis2 the following  
call produces errors:

java org.apache.axis.wsdl.WSDL2Java -uri "http:// 
affiliate.broadjam.net/server.php?wsdl"...
Exception in thread "main"  
org.apache.axis.wsdl.codegen.CodeGenerationException: Invalid WSDL  
Location
         at org.apache.axis.wsdl.codegen.CodeGenerationEngine.<init> 
(CodeGenerationEngine.java:63)
         at org.apache.axis.wsdl.WSDL2Code.main(WSDL2Code.java:28)
         at org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:22)
Caused by: java.io.FileNotFoundException: http:/ 
affiliate.broadjam.net/server.php?wsdl (No such file or directory)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at org.apache.axis.wsdl.codegen.CodeGenerationEngine.getWOM 
(CodeGenerationEngine.java:109)
         at org.apache.axis.wsdl.codegen.CodeGenerationEngine.<init> 
(CodeGenerationEngine.java:57)
         ... 2 more

I will dig through and see however I couldn't find anything readily  
in the archives and the calls seemed to have changed radically from  
1_3 to 2. this is on a nusoap server and i will quickly ping that  
list as well however, is there a communication problem between axis2  
and nusoap that anyone is aware of?

thanks,
ken;


Re: moved from axis 1_3 to axis2 and having a WSDL2Java issue

Posted by Ken Hawkins <ke...@rosewoodblues.com>.
Ah thanks for the heads up on SOAP-ENC!

ken;
On Nov 21, 2005, at 9:59 PM, Ruchith Fernando wrote:

> Hi  Ken,
>
> When I did java org.apache.axis2.wsdl.WSDL2Java -uri
> http://affiliate.broadjam.net/server.php?wsdl -o [path]
>
> I didn't get your error. The problem in your case is that you use
> 'double quotes' around the uri.
>
> But Axis2 WSDL2Java will not work in your case because we do not
> support SOAP-ENC yet.
>
> Thanks,
> Ruchith
>
> On 11/22/05, Ken Hawkins <ke...@rosewoodblues.com> wrote:
>> Hi all,
>>
>> This is the first on the list for me and please allow me to cut to  
>> the chase
>> I perviously was using axis 1_3 and WSDL2Java to generate java  
>> files from
>> http://affiliate.broadjam.net/server.php?wsdl this was
>> happening fine however now that I moved to axis2 the following  
>> call produces
>> errors:
>>
>> java org.apache.axis.wsdl.WSDL2Java -uri
>> "http://affiliate.broadjam.net/server.php?wsdl"...
>> Exception in thread "main"
>> org.apache.axis.wsdl.codegen.CodeGenerationException:
>> Invalid WSDL Location
>>         at
>> org.apache.axis.wsdl.codegen.CodeGenerationEngine.<init> 
>> (CodeGenerationEngine.java:63)
>>         at
>> org.apache.axis.wsdl.WSDL2Code.main(WSDL2Code.java:28)
>>         at
>> org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:22)
>> Caused by: java.io.FileNotFoundException:
>> http:/affiliate.broadjam.net/server.php?wsdl (No such file
>> or directory)
>>         at java.io.FileInputStream.open(Native Method)
>>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>>         at
>> org.apache.axis.wsdl.codegen.CodeGenerationEngine.getWOM 
>> (CodeGenerationEngine.java:109)
>>         at
>> org.apache.axis.wsdl.codegen.CodeGenerationEngine.<init> 
>> (CodeGenerationEngine.java:57)
>>         ... 2 more
>>
>> I will dig through and see however I couldn't find anything  
>> readily in the
>> archives and the calls seemed to have changed radically from 1_3  
>> to 2. this
>> is on a nusoap server and i will quickly ping that list as well  
>> however, is
>> there a communication problem between axis2 and nusoap that anyone  
>> is aware
>> of?
>>
>> thanks,
>> ken;
>>
>>
>
>
> --
> Ruchith


Re: moved from axis 1_3 to axis2 and having a WSDL2Java issue

Posted by Brice Lambi <bl...@iastate.edu>.
Hello,
    I am receiving the same error, without the double quotes.  I've 
tried no quotes and single quotes (and double).


blambi@broken:/opt/axis2-0.9-bin$ java org.apache.axis2.wsdl.WSDL2Java 
-uri 
http://www.geosamples.org/applications/resources/sesarSearchContract.wsdl
Exception in thread "main" 
org.apache.axis2.wsdl.codegen.CodeGenerationException: Invalid WSDL Location
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:58)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:28)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:22)
Caused by: java.io.FileNotFoundException: 
http:/www.geosamples.org/applications/resources/sesarSearchContract.wsdl 
(No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.getWOM(CodeGenerationEngine.java:110)
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:52)
        ... 2 more
blambi@broken:/opt/axis2-0.9-bin$ java org.apache.axis2.wsdl.WSDL2Java 
-uri 
'http://www.geosamples.org/applications/resources/sesarSearchContract.wsdl'
Exception in thread "main" 
org.apache.axis2.wsdl.codegen.CodeGenerationException: Invalid WSDL Location
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:58)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:28)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:22)
Caused by: java.io.FileNotFoundException: 
http:/www.geosamples.org/applications/resources/sesarSearchContract.wsdl 
(No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.getWOM(CodeGenerationEngine.java:110)
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:52)
        ... 2 more




Ruchith Fernando wrote:

>Hi  Ken,
>
>When I did java org.apache.axis2.wsdl.WSDL2Java -uri
>http://affiliate.broadjam.net/server.php?wsdl -o [path]
>
>I didn't get your error. The problem in your case is that you use
>'double quotes' around the uri.
>
>But Axis2 WSDL2Java will not work in your case because we do not
>support SOAP-ENC yet.
>
>Thanks,
>Ruchith
>
>On 11/22/05, Ken Hawkins <ke...@rosewoodblues.com> wrote:
>  
>
>>Hi all,
>>
>>This is the first on the list for me and please allow me to cut to the chase
>>I perviously was using axis 1_3 and WSDL2Java to generate java files from
>>http://affiliate.broadjam.net/server.php?wsdl this was
>>happening fine however now that I moved to axis2 the following call produces
>>errors:
>>
>>java org.apache.axis.wsdl.WSDL2Java -uri
>>"http://affiliate.broadjam.net/server.php?wsdl"...
>>Exception in thread "main"
>>org.apache.axis.wsdl.codegen.CodeGenerationException:
>>Invalid WSDL Location
>>        at
>>org.apache.axis.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:63)
>>        at
>>org.apache.axis.wsdl.WSDL2Code.main(WSDL2Code.java:28)
>>        at
>>org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:22)
>>Caused by: java.io.FileNotFoundException:
>>http:/affiliate.broadjam.net/server.php?wsdl (No such file
>>or directory)
>>        at java.io.FileInputStream.open(Native Method)
>>        at java.io.FileInputStream.<init>(FileInputStream.java:106)
>>        at
>>org.apache.axis.wsdl.codegen.CodeGenerationEngine.getWOM(CodeGenerationEngine.java:109)
>>        at
>>org.apache.axis.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:57)
>>        ... 2 more
>>
>>I will dig through and see however I couldn't find anything readily in the
>>archives and the calls seemed to have changed radically from 1_3 to 2. this
>>is on a nusoap server and i will quickly ping that list as well however, is
>>there a communication problem between axis2 and nusoap that anyone is aware
>>of?
>>
>>thanks,
>>ken;
>>
>>
>>    
>>
>
>
>--
>Ruchith
>
>  
>


Re: moved from axis 1_3 to axis2 and having a WSDL2Java issue

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi  Ken,

When I did java org.apache.axis2.wsdl.WSDL2Java -uri
http://affiliate.broadjam.net/server.php?wsdl -o [path]

I didn't get your error. The problem in your case is that you use
'double quotes' around the uri.

But Axis2 WSDL2Java will not work in your case because we do not
support SOAP-ENC yet.

Thanks,
Ruchith

On 11/22/05, Ken Hawkins <ke...@rosewoodblues.com> wrote:
> Hi all,
>
> This is the first on the list for me and please allow me to cut to the chase
> I perviously was using axis 1_3 and WSDL2Java to generate java files from
> http://affiliate.broadjam.net/server.php?wsdl this was
> happening fine however now that I moved to axis2 the following call produces
> errors:
>
> java org.apache.axis.wsdl.WSDL2Java -uri
> "http://affiliate.broadjam.net/server.php?wsdl"...
> Exception in thread "main"
> org.apache.axis.wsdl.codegen.CodeGenerationException:
> Invalid WSDL Location
>         at
> org.apache.axis.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:63)
>         at
> org.apache.axis.wsdl.WSDL2Code.main(WSDL2Code.java:28)
>         at
> org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:22)
> Caused by: java.io.FileNotFoundException:
> http:/affiliate.broadjam.net/server.php?wsdl (No such file
> or directory)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>         at
> org.apache.axis.wsdl.codegen.CodeGenerationEngine.getWOM(CodeGenerationEngine.java:109)
>         at
> org.apache.axis.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:57)
>         ... 2 more
>
> I will dig through and see however I couldn't find anything readily in the
> archives and the calls seemed to have changed radically from 1_3 to 2. this
> is on a nusoap server and i will quickly ping that list as well however, is
> there a communication problem between axis2 and nusoap that anyone is aware
> of?
>
> thanks,
> ken;
>
>


--
Ruchith