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

Reply via email to