You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Charitha Kankanamge (JIRA)" <ji...@apache.org> on 2006/11/06 06:26:37 UTC

[jira] Created: (AXIS2-1609) namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2

namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2
--------------------------------------------------------------------------

                 Key: AXIS2-1609
                 URL: http://issues.apache.org/jira/browse/AXIS2-1609
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.1
         Environment: Win XP, JDK 1.5
            Reporter: Charitha Kankanamge
            Priority: Critical
         Attachments: MathsService.wsdl

ns2p code gen option does not work in Axis2 1.1 RC2.

I provided the following code gen option.

C:\Axis\axis-rc\axis2-1.1\bin>wsdl2java -uri "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\MathsService.wsdl" -ns2p http://test.com=my.new
-o "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\packagetest"

The generated stub was not included in the given package (my.new). Instead, it was included inside the original package (com.test)

The wsdl file is attached here with.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1609) namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2

Posted by "Craig S. Bosma (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1609?page=comments#action_12457444 ] 
            
Craig S. Bosma commented on AXIS2-1609:
---------------------------------------

>From what I've found so far, there appear to be at least two issues at stake here. The first, and simplest, is that only the first namespace-to-package mapping is respected when specified on the command line in -ns2p ns1=pkg1,ns2=pkg2,...,nsN=pkgN format. If however, if a property file name containing the mappings is given as an argument to the -ns2p option, all of the mappings will be respected (NOTE: this usage does not seem to be well documented). The culprit seems to be in CodegenConfigLoader.loadConfig(CodeGenConfiguration config, Map optionMap). At line 141 (release 1.1) the value assigned to 'value' is a string representing only the first namespace name-value pair. Subsequently then, when 'value' is tokenized, only one mapping emerges. I cobbled together an alternative:

            ...
            List values = commandLineOption.getOptionValues();
            if (values != null && values.size() > 0) {
                // Try treating the values as a name=value pair separated by comma's
                String value = (String) values.get(0);
                if (value.indexOf('=') != -1) {
                    HashMap map = new HashMap(values.size());
                    for (Iterator iterator = values.iterator(); iterator.hasNext();)
                    {
                        value = (String) iterator.next();
                        String valuepair[] = value.split("=");
                        if (valuepair.length == 2) {
                            map.put(valuepair[0], valuepair[1]);
                        }
                    }
                    config.setUri2PackageNameMap(map);
                } else {
                    // Try loading the properties from the file specified
                    ...

Now that's just off the top of my head and untested, but you see the intent.

The second issue appears when the -u (unpack) option is enabled. Even when the namespaces are explictly mapped to packages (i.e. by the property file mentioned above), code generation still fails with a FileNotFoundException for '.\src\web\soap\v3\analytics\siebel\com\ExtensionMapper.java'. By running this through a debugger, I've observed that all the databinding classes generated from the schema are correctly mapped to the specified packages and written to disk; however, the ExtensionMapper class is not, because its package name comes from the 'mappingClassPackage' field which is registered by a call to registerExtensionMapperPackageName(String) in SchemaCompiler:244. It appears that the namespace from the schema is run through URLProcessor.makePackageName(String) and registered as the extension mapper package name without looking at any of the namespace mapping options given by the user. I don't think this would normally cause the whole process to fail (though the ExtensionMapper might wind up in a different package than expected), except that the URL Processor doesn't handle namespaces of the form com.example.foo/path/to/bar well; they end up with residual '/' characters which the file writer then chokes on.

I'd be happy to help implement any fixes; unfortunately I can't help out much more until I get home to my working copy. Any input from someone more familiar with the codebase than I would be welcome.

> namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-1609
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1609
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Win XP, JDK 1.5
>            Reporter: Charitha Kankanamge
>            Priority: Critical
>         Attachments: expression.xsd, FehlerWsdl2Java.zip, KeinFehlerWsdl2Java.zip, MathsService.wsdl, saw-local.wsdl, SAWServices.xsd
>
>
> ns2p code gen option does not work in Axis2 1.1 RC2.
> I provided the following code gen option.
> C:\Axis\axis-rc\axis2-1.1\bin>wsdl2java -uri "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\MathsService.wsdl" -ns2p http://test.com=my.new
> -o "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\packagetest"
> The generated stub was not included in the given package (my.new). Instead, it was included inside the original package (com.test)
> The wsdl file is attached here with.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-1609) namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2

Posted by "Ulf Heyder (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1609?page=all ]

Ulf Heyder updated AXIS2-1609:
------------------------------

    Attachment: FehlerWsdl2Java.zip

Hope you don't mind me attaching another example for this bug:
The attached zip contains a test wsdl, testGenerate.bat calling wsdl2java.bat with the options "-p de.foo.service" and "-ns2p tns=de.foo.service.types" and all the files created by w2j.
Stub, MessageReceiver, Skeleton and CallbackHandler are placed in src/de/foo/service, like I pleased w2j to do.
The schema related classes you find in src/org/example/test wich corresponds to the default namespace package mapping not to the package de.foo.service.types I asked for.

> namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-1609
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1609
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Win XP, JDK 1.5
>            Reporter: Charitha Kankanamge
>            Priority: Critical
>         Attachments: FehlerWsdl2Java.zip, MathsService.wsdl
>
>
> ns2p code gen option does not work in Axis2 1.1 RC2.
> I provided the following code gen option.
> C:\Axis\axis-rc\axis2-1.1\bin>wsdl2java -uri "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\MathsService.wsdl" -ns2p http://test.com=my.new
> -o "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\packagetest"
> The generated stub was not included in the given package (my.new). Instead, it was included inside the original package (com.test)
> The wsdl file is attached here with.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1609) namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2

Posted by "Craig S. Bosma (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1609?page=comments#action_12457738 ] 
            
Craig S. Bosma commented on AXIS2-1609:
---------------------------------------

I made the following change to SchemaCompiler in the adb-codegen module, replacing this line (~244):

                writer.registerExtensionMapperPackageName(URLProcessor.makePackageName(nsp));

with this:

                if (options.getNs2PackageMap().containsKey(nsp)) {
                    writer.registerExtensionMapperPackageName((String) options.getNs2PackageMap().get(nsp));
                } else {
                    writer.registerExtensionMapperPackageName(URLProcessor.makePackageName(nsp));
                }

which solves the latter problem from the previous comment. I'll try to free up a little time tonight to generate and submit patches for these, if this is indeed the desired behaviour and a reasonable solution.


> namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-1609
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1609
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Win XP, JDK 1.5
>            Reporter: Charitha Kankanamge
>            Priority: Critical
>         Attachments: expression.xsd, FehlerWsdl2Java.zip, KeinFehlerWsdl2Java.zip, MathsService.wsdl, saw-local.wsdl, SAWServices.xsd
>
>
> ns2p code gen option does not work in Axis2 1.1 RC2.
> I provided the following code gen option.
> C:\Axis\axis-rc\axis2-1.1\bin>wsdl2java -uri "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\MathsService.wsdl" -ns2p http://test.com=my.new
> -o "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\packagetest"
> The generated stub was not included in the given package (my.new). Instead, it was included inside the original package (com.test)
> The wsdl file is attached here with.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-1609) namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1609?page=all ]

Amila Chinthaka Suriarachchi updated AXIS2-1609:
------------------------------------------------

    Attachment: patch_ns2p.txt

I fix the problem with this patch. Actually for some reason this feature has not considered when codegenerating and the PackageFinder extension was not called in order to set the package name in CodeGenConfig. 

> namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-1609
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1609
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Win XP, JDK 1.5
>            Reporter: Charitha Kankanamge
>            Priority: Critical
>         Attachments: expression.xsd, FehlerWsdl2Java.zip, KeinFehlerWsdl2Java.zip, MathsService.wsdl, patch_ns2p.txt, saw-local.wsdl, SAWServices.xsd
>
>
> ns2p code gen option does not work in Axis2 1.1 RC2.
> I provided the following code gen option.
> C:\Axis\axis-rc\axis2-1.1\bin>wsdl2java -uri "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\MathsService.wsdl" -ns2p http://test.com=my.new
> -o "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\packagetest"
> The generated stub was not included in the given package (my.new). Instead, it was included inside the original package (com.test)
> The wsdl file is attached here with.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1609) namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2

Posted by "Craig S. Bosma (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1609?page=comments#action_12456095 ] 
            
Craig S. Bosma commented on AXIS2-1609:
---------------------------------------

I think this remains an issue yet for namespaces that do not follow the 'http://example.com/some/path' convention. This is my wsdl2java command:

wsdl2java -o .\gen -uri e:\SiebelAnalytics\Web\App\saw.wsdl -ns2p com.siebel.analytics.web/expression/v1=com.siebel.analytics.expression,com.siebel.analytics.web/soap/v3=com.siebel.analytics.soap

With the following result:

Retrieving schema wsdl:imported from 'Wsdl/Schemas/SAWServices.xsd', relative to 'file:/e:/SiebelAnalytics/Web/App/'.
Retrieving schema at 'expression.xsd', relative to 'file:/e:/SiebelAnalytics/Web/App/Wsdl/Schemas/SAWServices.xsd'.
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.io.FileNotFoundException: .\gen\src\web\soap\v3\analytics\siebel\com\XmlViewServiceCallbackHandler.java (The system cannot find the path specified)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.io.FileNotFoundException: .\gen\src\web\soap\v3\analytics\siebel\com\XmlViewServiceCallbackHandler.java (The system cannot find the path specified)
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:301)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:213)
        ... 2 more
Caused by: java.io.FileNotFoundException: .\gen\src\web\soap\v3\analytics\siebel\com\XmlViewServiceCallbackHandler.java
(The system cannot find the path specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
        at org.apache.axis2.wsdl.codegen.writer.ClassWriter.createOutFile(ClassWriter.java:127)
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeClass(AxisServiceBasedMultiLanguageEmitter.java:1733)
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeCallBackHandlers(AxisServiceBasedMultiLanguageEmitter.java:682)
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:276)
        ... 3 more

but if I specify a default package with -p, it works. However, I want to unpack the classes with -u, which fails in the same manner even with a default package specified.

I should point out that WSDL and schemas are out of my hands, or I'd just *fix* them.

> namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-1609
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1609
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Win XP, JDK 1.5
>            Reporter: Charitha Kankanamge
>            Priority: Critical
>         Attachments: FehlerWsdl2Java.zip, KeinFehlerWsdl2Java.zip, MathsService.wsdl
>
>
> ns2p code gen option does not work in Axis2 1.1 RC2.
> I provided the following code gen option.
> C:\Axis\axis-rc\axis2-1.1\bin>wsdl2java -uri "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\MathsService.wsdl" -ns2p http://test.com=my.new
> -o "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\packagetest"
> The generated stub was not included in the given package (my.new). Instead, it was included inside the original package (com.test)
> The wsdl file is attached here with.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-1609) namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1609?page=all ]

Davanum Srinivas resolved AXIS2-1609.
-------------------------------------

    Resolution: Fixed

Applied.

thanks,
dims

> namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-1609
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1609
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Win XP, JDK 1.5
>            Reporter: Charitha Kankanamge
>         Assigned To: Davanum Srinivas
>            Priority: Critical
>         Attachments: expression.xsd, FehlerWsdl2Java.zip, KeinFehlerWsdl2Java.zip, MathsService.wsdl, patch_ns2p.txt, saw-local.wsdl, SAWServices.xsd
>
>
> ns2p code gen option does not work in Axis2 1.1 RC2.
> I provided the following code gen option.
> C:\Axis\axis-rc\axis2-1.1\bin>wsdl2java -uri "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\MathsService.wsdl" -ns2p http://test.com=my.new
> -o "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\packagetest"
> The generated stub was not included in the given package (my.new). Instead, it was included inside the original package (com.test)
> The wsdl file is attached here with.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-1609) namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2

Posted by "Charitha Kankanamge (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1609?page=all ]

Charitha Kankanamge updated AXIS2-1609:
---------------------------------------

    Attachment: MathsService.wsdl

Attached wsdl file

> namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-1609
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1609
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Win XP, JDK 1.5
>            Reporter: Charitha Kankanamge
>            Priority: Critical
>         Attachments: MathsService.wsdl
>
>
> ns2p code gen option does not work in Axis2 1.1 RC2.
> I provided the following code gen option.
> C:\Axis\axis-rc\axis2-1.1\bin>wsdl2java -uri "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\MathsService.wsdl" -ns2p http://test.com=my.new
> -o "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\packagetest"
> The generated stub was not included in the given package (my.new). Instead, it was included inside the original package (com.test)
> The wsdl file is attached here with.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Assigned: (AXIS2-1609) namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1609?page=all ]

Amila Chinthaka Suriarachchi reassigned AXIS2-1609:
---------------------------------------------------

    Assignee: Davanum Srinivas

> namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-1609
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1609
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Win XP, JDK 1.5
>            Reporter: Charitha Kankanamge
>         Assigned To: Davanum Srinivas
>            Priority: Critical
>         Attachments: expression.xsd, FehlerWsdl2Java.zip, KeinFehlerWsdl2Java.zip, MathsService.wsdl, patch_ns2p.txt, saw-local.wsdl, SAWServices.xsd
>
>
> ns2p code gen option does not work in Axis2 1.1 RC2.
> I provided the following code gen option.
> C:\Axis\axis-rc\axis2-1.1\bin>wsdl2java -uri "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\MathsService.wsdl" -ns2p http://test.com=my.new
> -o "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\packagetest"
> The generated stub was not included in the given package (my.new). Instead, it was included inside the original package (com.test)
> The wsdl file is attached here with.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-1609) namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2

Posted by "Craig S. Bosma (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1609?page=all ]

Craig S. Bosma updated AXIS2-1609:
----------------------------------

    Attachment: saw-local.wsdl
                SAWServices.xsd
                expression.xsd

Here are the WSDL and referenced schemas.

> namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-1609
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1609
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Win XP, JDK 1.5
>            Reporter: Charitha Kankanamge
>            Priority: Critical
>         Attachments: expression.xsd, FehlerWsdl2Java.zip, KeinFehlerWsdl2Java.zip, MathsService.wsdl, saw-local.wsdl, SAWServices.xsd
>
>
> ns2p code gen option does not work in Axis2 1.1 RC2.
> I provided the following code gen option.
> C:\Axis\axis-rc\axis2-1.1\bin>wsdl2java -uri "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\MathsService.wsdl" -ns2p http://test.com=my.new
> -o "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\packagetest"
> The generated stub was not included in the given package (my.new). Instead, it was included inside the original package (com.test)
> The wsdl file is attached here with.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1609) namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2

Posted by "Craig S. Bosma (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1609?page=comments#action_12454972 ] 
            
Craig S. Bosma commented on AXIS2-1609:
---------------------------------------

I'm experiencing the same problem with the 1.1 release, generating client stubs for an existant webservice (part of an off-the-shelf product). 

The service uses somewhat unconventional namespaces, e.g. 'com.siebel.analytics.web/soap/v3', so I must map them to packages I define, or I get invalid package names, like 'web/soap/v3.analytics.siebel.com' (which obviously won't compile).

> namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-1609
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1609
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Win XP, JDK 1.5
>            Reporter: Charitha Kankanamge
>            Priority: Critical
>         Attachments: MathsService.wsdl
>
>
> ns2p code gen option does not work in Axis2 1.1 RC2.
> I provided the following code gen option.
> C:\Axis\axis-rc\axis2-1.1\bin>wsdl2java -uri "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\MathsService.wsdl" -ns2p http://test.com=my.new
> -o "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\packagetest"
> The generated stub was not included in the given package (my.new). Instead, it was included inside the original package (com.test)
> The wsdl file is attached here with.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-1609) namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2

Posted by "Ulf Heyder (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1609?page=all ]

Ulf Heyder updated AXIS2-1609:
------------------------------

    Attachment: KeinFehlerWsdl2Java.zip

Thanks to Carlos Riberiro answering my mail in axis-user list:
He wrote:
You probably need to do: "-ns2p http://www.foo-bar.de/bar=foo.bar.service.types".
I wrongly used the option like "-ns2p bar=foo.bar.service.types" having defined xmlns:bar="http://www.foo-bar.de/bar"

See my new attachment where I changed my wsdl2java call, everything works fine now.

It seems to be important to be precise with the namespace:
-ns2p http://www.example.org/Test/=de.foo.service.types works
-ns2p http://www.example.org/Test=de.foo.service.types doen't work since I defined 

xmlns:tns="http://www.example.org/Test/" (regard the last slash)

We should change status to "improvement" to extend functionality to use "-ns2p bar=foo.bar.service.types" also.

> namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-1609
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1609
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Win XP, JDK 1.5
>            Reporter: Charitha Kankanamge
>            Priority: Critical
>         Attachments: FehlerWsdl2Java.zip, KeinFehlerWsdl2Java.zip, MathsService.wsdl
>
>
> ns2p code gen option does not work in Axis2 1.1 RC2.
> I provided the following code gen option.
> C:\Axis\axis-rc\axis2-1.1\bin>wsdl2java -uri "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\MathsService.wsdl" -ns2p http://test.com=my.new
> -o "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\packagetest"
> The generated stub was not included in the given package (my.new). Instead, it was included inside the original package (com.test)
> The wsdl file is attached here with.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1609) namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2

Posted by "Thilo Frotscher (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1609?page=comments#action_12457206 ] 
            
Thilo Frotscher commented on AXIS2-1609:
----------------------------------------

I also think that this feature doesn't work correctly anymore. But it worked fine in earlier releases of Axis2 1.1 (I believe it worked for RC1, but not sure).
Please fix this for Axis2 1.1.1. It's an important feature.

Thanks.


> namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-1609
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1609
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Win XP, JDK 1.5
>            Reporter: Charitha Kankanamge
>            Priority: Critical
>         Attachments: expression.xsd, FehlerWsdl2Java.zip, KeinFehlerWsdl2Java.zip, MathsService.wsdl, saw-local.wsdl, SAWServices.xsd
>
>
> ns2p code gen option does not work in Axis2 1.1 RC2.
> I provided the following code gen option.
> C:\Axis\axis-rc\axis2-1.1\bin>wsdl2java -uri "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\MathsService.wsdl" -ns2p http://test.com=my.new
> -o "C:\Documents and Settings\Charitha\workspace2\servicetest\temp2\packagetest"
> The generated stub was not included in the given package (my.new). Instead, it was included inside the original package (com.test)
> The wsdl file is attached here with.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org