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 "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2007/11/12 19:35:51 UTC
[jira] Assigned: (AXIS2-3232) Code generated using jaxb databinding
creates empty namespace in toOM(..) method
[ 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