Here is my old post, it includes the WSDL

http://markmail.org/search/?q=Jorge%20Medina#query:Jorge%20Medina%20type%3Ausers%20extension%3Awsdl+page:1+mid:d5jj2ijb3yq2jbnq+state:results


On Fri, Nov 26, 2010 at 11:49 PM, Jorge Medina
<[email protected]> wrote:
> I had a similar problem trying to generate code for VMWare LabManager
> 4 WSDL (I believe they use Microsoft tools on their servers, <sigh>)
> The generated Axis2 code would not compile. Nevertheless, the error in
> the code was just a missing comma (",")  in the parameters declaration
> of a couple of methods.
>
> In my case, I know the WSDL was not going to change, so I just fixed
> the code and moved on.
> But if your WSDL is still in evolution and you want to automate the
> process then you may be out of luck.
> I would be interested to know what type of construct in the WSDL
> causes the problem and if there will be a bug fix.
>
>
>
>
>
> On Fri, Nov 26, 2010 at 1:11 AM, paul nibin <[email protected]> wrote:
>> Hi All,
>>
>> I tried to generate the stubs for wsdl file of Microsoft Exchange server.
>>
>> First I tried to generate the stubs in unwrapped format using the "-uw" flag
>> specified for WSDL2Java.
>>
>> WSDL2Java.main( new String []
>>         { "-o", ".", "-uri", "C:\\WSDLTest\\services.wsdl", "-uw" } );
>>
>> And I got the following error.
>>
>> log4j:WARN No appenders could be found for logger
>> (org.apache.axis2.description.
>> WSDL11ToAllAxisServicesBuilder).
>> log4j:WARN Please initialize the log4j system properly.
>> Exception in thread "main"
>> org.apache.axis2.wsdl.codegen.CodeGenerationException:
>> org.apache.axis2.wsdl.codegen.CodeGenerationException: Unsupported Schema
>> format for unwrapping! found unknown type but expected Element
>>     at
>> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
>>     at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>>     at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
>>     at test.ClientGenerator.main(ClientGenerator.java:9)
>> Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException:
>> Unsupported Schema format for unwrapping! found unknown type but expected
>> Element
>>     at
>> org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.processXMLSchemaSequence(SchemaUnwrapperExtension.java:389)
>>     at
>> org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.processComplexContentModel(SchemaUnwrapperExtension.java:265)
>>     at
>> org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.handleAllCasesOfComplexTypes(SchemaUnwrapperExtension.java:222)
>>     at
>> org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.walkSchema(SchemaUnwrapperExtension.java:162)
>>     at
>> org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.engage(SchemaUnwrapperExtension.java:106)
>>     at
>> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
>>     ... 3 more
>>
>> The code generator is not able to generate the stub in unwrapped format.
>>
>> So removed the "-uw" flag and generated the code.
>>
>> It generated the stub. And one java file
>> (com.microsoft.schemas.exchange.services._2006.messages.ExchangeWebServiceStub)
>> is so big(The size of the file is around 14 MB and has 295727 lines) that it
>> is not even able compile it in the eclipse and it throws java heap space
>> error for compilation. How ever I compiled the client using build.xml
>> generated. But it also could not compile because of compilation errors in
>> the code.
>>
>> compile.src:
>>     [javac] Compiling 4 source files to
>> C:\MySpace\ToolsAndUtilities\eclipse\workspace\EWSClient\build\classes
>>     [javac]
>> C:\MySpace\ToolsAndUtilities\eclipse\workspace\EWSClient\src\com\microsoft\schemas\exchange\services\_2006\messages\ExchangeWebServiceStub.java:90187:
>> cannot find symbol
>>     [javac] symbol  : variable localPathTracker
>>     [javac] location: class
>> com.microsoft.schemas.exchange.services._2006.messages.ExchangeWebServiceStub.SetItemFieldType
>>     [javac]                    localPathTracker = false;
>>     [javac]                    ^
>>     [javac]
>> C:\MySpace\ToolsAndUtilities\eclipse\workspace\EWSClient\src\com\microsoft\schemas\exchange\services\_2006\messages\ExchangeWebServiceStub.java:90764:
>> cannot find symbol
>>     [javac] symbol  : variable localPathTracker
>>     [javac] location: class
>> com.microsoft.schemas.exchange.services._2006.messages.ExchangeWebServiceStub.SetItemFieldType
>>     [javac]                 if (localPathTracker){
>>     [javac]                     ^
>>     [javac]
>> C:\MySpace\ToolsAndUtilities\eclipse\workspace\EWSClient\src\com\microsoft\schemas\exchange\services\_2006\messages\ExchangeWebServiceStub.java:90995:
>> cannot find symbol
>>     [javac] symbol  : variable localPathTracker
>>     [javac] location: class
>> com.microsoft.schemas.exchange.services._2006.messages.ExchangeWebServiceStub.SetItemFieldType
>>     [javac]                  if (localPathTracker){
>>     [javac]                      ^
>>     [javac]
>> C:\MySpace\ToolsAndUtilities\eclipse\workspace\EWSClient\src\com\microsoft\schemas\exchange\services\_2006\messages\ExchangeWebServiceStub.java:142351:
>> cannot find symbol
>>     [javac] symbol  : variable localPathTracker
>>     [javac] location: class
>> com.microsoft.schemas.exchange.services._2006.messages.ExchangeWebServiceStub.SetFolderFieldType
>>     [javac]                    localPathTracker = false;
>>     [javac]                    ^
>>     [javac]
>> C:\MySpace\ToolsAndUtilities\eclipse\workspace\EWSClient\src\com\microsoft\schemas\exchange\services\_2006\messages\ExchangeWebServiceStub.java:142688:
>> cannot find symbol
>>     [javac] symbol  : variable localPathTracker
>>     [javac] location: class
>> com.microsoft.schemas.exchange.services._2006.messages.ExchangeWebServiceStub.SetFolderFieldType
>>     [javac]                 if (localPathTracker){
>>     [javac]                     ^
>>     [javac]
>> C:\MySpace\ToolsAndUtilities\eclipse\workspace\EWSClient\src\com\microsoft\schemas\exchange\services\_2006\messages\ExchangeWebServiceStub.java:142889:
>> cannot find symbol
>>     [javac] symbol  : variable localPathTracker
>>     [javac] location: class
>> com.microsoft.schemas.exchange.services._2006.messages.ExchangeWebServiceStub.SetFolderFieldType
>>     [javac]                  if (localPathTracker){
>>     [javac]                      ^
>>     [javac]
>> C:\MySpace\ToolsAndUtilities\eclipse\workspace\EWSClient\src\com\microsoft\schemas\exchange\services\_2006\messages\ExchangeWebServiceStub.java:189225:
>> cannot find symbol
>>     [javac] symbol  : variable localPathTracker
>>     [javac] location: class
>> com.microsoft.schemas.exchange.services._2006.messages.ExchangeWebServiceStub.AppendToItemFieldType
>>     [javac]                    localPathTracker = false;
>>     [javac]                    ^
>>     [javac]
>> C:\MySpace\ToolsAndUtilities\eclipse\workspace\EWSClient\src\com\microsoft\schemas\exchange\services\_2006\messages\ExchangeWebServiceStub.java:189802:
>> cannot find symbol
>>     [javac] symbol  : variable localPathTracker
>>     [javac] location: class
>> com.microsoft.schemas.exchange.services._2006.messages.ExchangeWebServiceStub.AppendToItemFieldType
>>     [javac]                 if (localPathTracker){
>>     [javac]                     ^
>>     [javac]
>> C:\MySpace\ToolsAndUtilities\eclipse\workspace\EWSClient\src\com\microsoft\schemas\exchange\services\_2006\messages\ExchangeWebServiceStub.java:190033:
>> cannot find symbol
>>     [javac] symbol  : variable localPathTracker
>>     [javac] location: class
>> com.microsoft.schemas.exchange.services._2006.messages.ExchangeWebServiceStub.AppendToItemFieldType
>>     [javac]                  if (localPathTracker){
>>     [javac]                      ^
>>     [javac] Note:
>> C:\MySpace\ToolsAndUtilities\eclipse\workspace\EWSClient\src\com\microsoft\schemas\exchange\services\_2006\messages\ExchangeWebServiceStub.java
>> uses or overrides a deprecated API.
>>     [javac] Note: Recompile with -Xlint:deprecation for details.
>>     [javac] Note:
>> C:\MySpace\ToolsAndUtilities\eclipse\workspace\EWSClient\src\com\microsoft\schemas\exchange\services\_2006\messages\ExchangeWebServiceStub.java
>> uses unchecked or unsafe operations.
>>     [javac] Note: Recompile with -Xlint:unchecked for details.
>>     [javac] 9 errors
>>
>> BUILD FAILED
>> C:\MySpace\ToolsAndUtilities\eclipse\workspace\EWSClient\build.xml:43:
>> Compile failed; see the compiler error output for details.
>>
>> Instead of getting 1 big stub file with many inner classes for types, is it
>> possible to generate the stub with separate java files for the types?
>>
>> I could generate the stubs using xmlbeans data binding(I feel it is a little
>> more complex to use xmlbeans binding in the client side). So I would like to
>> stick with ADB itself. So, is there anyway to generate the stubs using ADB
>> binding itself with unwrapped flag for the attached WSDL?
>>
>> Thanks,
>> Paul
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to