[
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]