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

Have to use :message_tag #562

Closed
davemitchell opened this issue Apr 23, 2014 · 2 comments
Closed

Have to use :message_tag #562

davemitchell opened this issue Apr 23, 2014 · 2 comments

Comments

@davemitchell
Copy link

This is very similar to the issue described in #520, where the xml generated is not using the action but rather something else in the wsdl definition. Here is a link to the full wsdl document I'm using. It's a bit sensitive to case--only likes the :lower_camelcase formatted output, and I have to quote some fields such as 'objectID' and 'XCoord'. Unfortunately the endpoint is secured and there is no public version for testing. A few of the actions that get mangled include :write_case_eform_data and :retrieve_code_book.

Here's an example of a wsdl definition (it's broken down into many pieces):

 <wsdl:message name="writeCaseEformData">
      <wsdl:part element="flt:FLEformFields" name="WriteCaseEform"/>
 </wsdl:message>

  <wsdl:operation name="writeCaseEformData">
       <wsdl:input message="fls:writeCaseEformData"/>
   <wsdl:output message="fls:writeCaseEformDataResponse"/>
   <wsdl:fault message="fls:serviceException" name="serviceException"/>
   </wsdl:operation>

It should (and used to in earlier versions) produce output that looks like this:

<env:Body>
    <writeCaseEformData>
        <caseEformInstance>
            <caseReference>101000741839</caseReference>
        <eformName>GEN01_GenericeFormforOtherServiceRequestTypes</eformName>
        </caseEformInstance>
        <eformData>
            <eformFields>
                <fieldName>requestDescription</fieldName>
                <fieldValue>Test</fieldValue>
            </eformFields>
        </eformData>
    </writeCaseEformData>
</env:Body>

But with the latest release (2.4) it now produces this, generating errors similar to those described in #520:

<env:Body>
    <flt:FLEformFields>
        <caseEformInstance>
            <caseReference>101000741839</caseReference>
        <eformName>GEN01_GenericeFormforOtherServiceRequestTypes</eformName>
        </caseEformInstance>
        <eformData>
            <eformFields>
                <fieldName>RequestDescription</fieldName>
                <fieldValue>Test</fieldValue>
            </eformFields>
        </eformData>
    </flt:FLEformFields>
</env:Body>

Note specifically that it's sending "flt:FLEformFields" as the tag instead of "writeCaseEformData".

@stale
Copy link

stale bot commented Feb 19, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 19, 2018
@stale
Copy link

stale bot commented Feb 26, 2018

This issue is now closed due to inactivity. If you believe this needs further action, please re-open to discuss.

@stale stale bot closed this as completed Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant