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

Fiks namespace for samhandlerV2 fault-elementer #166

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

routsi
Copy link
Contributor

@routsi routsi commented Feb 19, 2024

XSD for SamhandlerIkkeFunnet var feil i forhold til hva tjenesten faktisk svarer med. Fault-elementene er qualified i rot-ns, mens xsd hadde unqualified i et annet ns.

Eksempel svar xml:

ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header/>
    <SOAP-ENV:Body>
        <SOAP-ENV:Fault>
            <faultcode>SOAP-ENV:Server</faultcode>
            <faultstring>Samhandler ikke funnet</faultstring>
            <detail>
                <v2:hentSamhandlerPrioritertAdressesamhandlerIkkeFunnet xmlns:v2="http://nav.no/virksomhet/tjenester/samhandler/v2">
                    <v2:errorMessage>Samhandler ikke funnet</v2:errorMessage>
                    <v2:errorSource>K415CW01</v2:errorSource>
                    <v2:errorType>Business</v2:errorType>
                    <v2:rootCause>Samhandler ikke funnet</v2:rootCause>
                    <v2:dateTimeStamp>20240219115710</v2:dateTimeStamp>
                </v2:hentSamhandlerPrioritertAdressesamhandlerIkkeFunnet>
            </detail>
        </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Med feilmelding: javax.xml.bind.UnmarshalException: unexpected element (uri:"http://nav.no/virksomhet/tjenester/samhandler/v2", local:"errorMessage"). Expected elements are <{}errorSource>,<{}errorType>,<{}rootCause>,<{}errorMessage>,<{}dateTimeStamp>

@routsi routsi requested a review from hconhegg February 19, 2024 13:09
@routsi routsi merged commit 447981f into master Feb 19, 2024
1 check passed
@routsi routsi deleted the bugfix/samhandler-v2-fault-ns branch February 19, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants