Symantec Access Management

  • 1.  Error when doing wsdl2java on CA identity minder webservice TEWS6 WSDL

    Posted Nov 26, 2014 12:07 AM

    Hi,

     

    getting the following error when I am try to generate Java stub classes for CA identity minder TEWS6 web services.

     

    Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL  

    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:175)   

    at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)    

    at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)    

    Caused by: org.apache.axis2.AxisFault: More than one part for message CreateUserRequestMessage

    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)   

    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:411)

    at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)   

    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:169)   

    ... 2 more    

    Caused by: org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException: More than one part for message CreateUserRequestMessage   

    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1294)    

    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1217)    

    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:731)

    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:552)

    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:503)     

    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:373)

    ... 4 more 


    This part of the wsdl is throwing the error.


    <message name="XYZRequestMessage">

    <part name="ABCPart" element="tns:ABC"/>

    <part name="DEFPart" element="tns:DEF"/>

    </message>

     

    Some googling tells me that we cannot have multiple parts to a request message if we are using document style and not RPC style.

     

    Indeed the identity minder web service is using document style as evident from this part of the wsdl,

     

    <binding name="Tews6SoapBinding" type="tns:Tews6PortType">

    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

     

    Has any body faced this before. how to solve it.



  • 2.  Re: Error when doing wsdl2java on CA identity minder webservice TEWS6 WSDL

    Broadcom Employee
    Posted Nov 26, 2014 12:35 AM

    What version of IM are you using?.  I hit a similar problem, which I believe was resolved in a later version (12.5 SP13 I think.)



  • 3.  Re: Error when doing wsdl2java on CA identity minder webservice TEWS6 WSDL

    Posted Nov 26, 2014 04:56 AM

    hi,

     

    Here's the version info

     

    CA IdentityMinder    12.6.1.0.318

    IAM Framework    200.1.1.0.314



  • 4.  Re: Error when doing wsdl2java on CA identity minder webservice TEWS6 WSDL

    Broadcom Employee
    Posted Nov 26, 2014 10:22 PM

    Hi

     

    I can't speak to that version: I' don't believe it happens in the latest version (12.6 SP4)

     

    Regards



  • 5.  Re: Error when doing wsdl2java on CA identity minder webservice TEWS6 WSDL
    Best Answer

    Posted Dec 17, 2014 10:42 PM

    Thanks David for your responses.. The TEWS6 responses are conflicting with jax-ws/Axis2/cxf/was8.5 combination we are using unfortunately..

     

    finally we decided to expose this service thru the ESB with the necessary transformations and we worked around it.