Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EntitlementPolicyAdminService WSDL malformed #993

Closed
mleon-ayesa opened this issue Jan 12, 2017 · 0 comments
Closed

EntitlementPolicyAdminService WSDL malformed #993

mleon-ayesa opened this issue Jan 12, 2017 · 0 comments

Comments

@mleon-ayesa
Copy link

NOTE: I also created a bug in jira for this issue: https://wso2.org/jira/browse/IDENTITY-5572

When I generate a CXF client for the EntitlementPolicyAdminService service using the WSDL published by WSO2 IS, it fails because the methods without return type (void) don't have wsdl:output tag. The error generating the client is:

cvc-complex-type.2.4.a: Invalid content was found starting with element 'wsdl:fault'. One of '{"http://
 schemas.xmlsoap.org/wsdl/":output}' is expected.

I fix this, generating the client using a modified WSDL, but I think it's not the right way.
One malformed method:

 <wsdl:operation name="addSubscriber">
            <wsdl:input message="tns:addSubscriberRequest" wsaw:Action="urn:addSubscriber"/>
            <wsdl:fault message="tns:EntitlementPolicyAdminServiceEntitlementException" name="EntitlementPolicyAdminServiceEntitlementException" wsaw:Action="urn:addSubscriberEntitlementPolicyAdminServiceEntitlementException"/>
        </wsdl:operation> 

My fix for the method:

  <!-- I define the void message -->
   <wsdl:message name="vacio"/>

   <!-- I change the method -->
        <wsdl:operation name="addSubscriber">
            <wsdl:input message="tns:addSubscriberRequest" wsaw:Action="urn:addSubscriber"/>
            <wsdl:output message="tns:vacio"/>
            <wsdl:fault message="tns:EntitlementPolicyAdminServiceEntitlementException" name="EntitlementPolicyAdminServiceEntitlementException" wsaw:Action="urn:addSubscriberEntitlementPolicyAdminServiceEntitlementException"/>
        </wsdl:operation> 

I think it could happen in all web services of WSO2. Can you fix this for all WSDLs generated?

I don't know if this is the right place, project or component to create this bug, I apologize.

Thanks

@pulasthi7 pulasthi7 added this to the 5.6.0 milestone May 21, 2018
@isharak isharak modified the milestones: 5.6.0, FUTURE May 21, 2018
@thanujalk thanujalk modified the milestones: FUTURE, 5.11.0-M35, IS 5.11.0-M4 Sep 10, 2020
AnuradhaSK added a commit that referenced this issue Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants