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 "Stan Zilberleyb (JIRA)" <ji...@apache.org> on 2007/09/26 21:35:50 UTC

[jira] Created: (AXIS2-3232) Code generated using jaxb databinding creates empty namespace in toOM(..) method

Code generated using jaxb databinding creates empty namespace in toOM(..) method
--------------------------------------------------------------------------------

                 Key: AXIS2-3232
                 URL: https://issues.apache.org/jira/browse/AXIS2-3232
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: databinding
    Affects Versions: 1.3
         Environment: Windows Vista, java 1.6
            Reporter: Stan Zilberleyb


1. Generated code using following command: wsdl2java.bat -s -b -ns2p urn:com.workday/bsvc=interop.axis2 -o c:\workday\WorkdayMain\tools\WSTest\build\generated-jaxb -p interop.axis2 -d jaxbri -uri c:\Workday\workdaymain\tools\wstest\build\wsdl\TestService.wsdl
2. Run unit test thah uses generated code. Received error: [ERROR] forceExpand: expected element namespace Find_Employee_By_ID, found
3. Found following line of code in  method private org.apache.axiom.om.OMElement toOM(interop.axis2.FindEmployeeByIDType param, boolean optimizeContent) 
          org.apache.axiom.om.OMNamespace namespace = factory.createOMNamespace("", null);
4. Replace it with org.apache.axiom.om.OMNamespace namespace = factory.createOMNamespace("namespace", "prefix");
5. Run test again. No errors.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-3232) Code generated using jaxb databinding creates empty namespace in toOM(..) method

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12578038#action_12578038 ] 

Davanum Srinivas commented on AXIS2-3232:
-----------------------------------------

Stan,

could you please upload your wsdl?

thanks,
dims

> Code generated using jaxb databinding creates empty namespace in toOM(..) method
> --------------------------------------------------------------------------------
>
>                 Key: AXIS2-3232
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3232
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.3
>         Environment: Windows Vista, java 1.6
>            Reporter: Stan Zilberleyb
>            Assignee: Amila Chinthaka Suriarachchi
>
> 1. Generated code using following command: wsdl2java.bat -s -b -ns2p urn:com.workday/bsvc=interop.axis2 -o c:\workday\WorkdayMain\tools\WSTest\build\generated-jaxb -p interop.axis2 -d jaxbri -uri c:\Workday\workdaymain\tools\wstest\build\wsdl\TestService.wsdl
> 2. Run unit test thah uses generated code. Received error: [ERROR] forceExpand: expected element namespace Find_Employee_By_ID, found
> 3. Found following line of code in  method private org.apache.axiom.om.OMElement toOM(interop.axis2.FindEmployeeByIDType param, boolean optimizeContent) 
>           org.apache.axiom.om.OMNamespace namespace = factory.createOMNamespace("", null);
> 4. Replace it with org.apache.axiom.om.OMNamespace namespace = factory.createOMNamespace("namespace", "prefix");
> 5. Run test again. No errors.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-3232) Code generated using jaxb databinding creates empty namespace in toOM(..) method

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12578148#action_12578148 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-3232:
-----------------------------------------------------

I think this bug should have fixed with this commit[1]

please have a look at with a nightly build.

[1]http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/template/JaxbRIDatabindingTemplate.xsl?r1=614123&r2=635231

> Code generated using jaxb databinding creates empty namespace in toOM(..) method
> --------------------------------------------------------------------------------
>
>                 Key: AXIS2-3232
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3232
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.3
>         Environment: Windows Vista, java 1.6
>            Reporter: Stan Zilberleyb
>            Assignee: Amila Chinthaka Suriarachchi
>
> 1. Generated code using following command: wsdl2java.bat -s -b -ns2p urn:com.workday/bsvc=interop.axis2 -o c:\workday\WorkdayMain\tools\WSTest\build\generated-jaxb -p interop.axis2 -d jaxbri -uri c:\Workday\workdaymain\tools\wstest\build\wsdl\TestService.wsdl
> 2. Run unit test thah uses generated code. Received error: [ERROR] forceExpand: expected element namespace Find_Employee_By_ID, found
> 3. Found following line of code in  method private org.apache.axiom.om.OMElement toOM(interop.axis2.FindEmployeeByIDType param, boolean optimizeContent) 
>           org.apache.axiom.om.OMNamespace namespace = factory.createOMNamespace("", null);
> 4. Replace it with org.apache.axiom.om.OMNamespace namespace = factory.createOMNamespace("namespace", "prefix");
> 5. Run test again. No errors.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Assigned: (AXIS2-3232) Code generated using jaxb databinding creates empty namespace in toOM(..) method

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe reassigned AXIS2-3232:
----------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> Code generated using jaxb databinding creates empty namespace in toOM(..) method
> --------------------------------------------------------------------------------
>
>                 Key: AXIS2-3232
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3232
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.3
>         Environment: Windows Vista, java 1.6
>            Reporter: Stan Zilberleyb
>            Assignee: Amila Chinthaka Suriarachchi
>
> 1. Generated code using following command: wsdl2java.bat -s -b -ns2p urn:com.workday/bsvc=interop.axis2 -o c:\workday\WorkdayMain\tools\WSTest\build\generated-jaxb -p interop.axis2 -d jaxbri -uri c:\Workday\workdaymain\tools\wstest\build\wsdl\TestService.wsdl
> 2. Run unit test thah uses generated code. Received error: [ERROR] forceExpand: expected element namespace Find_Employee_By_ID, found
> 3. Found following line of code in  method private org.apache.axiom.om.OMElement toOM(interop.axis2.FindEmployeeByIDType param, boolean optimizeContent) 
>           org.apache.axiom.om.OMNamespace namespace = factory.createOMNamespace("", null);
> 4. Replace it with org.apache.axiom.om.OMNamespace namespace = factory.createOMNamespace("namespace", "prefix");
> 5. Run test again. No errors.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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