Skip to content

Commit

Permalink
Legger til erungufor fra bussen
Browse files Browse the repository at this point in the history
  • Loading branch information
pcmoen committed Sep 12, 2024
1 parent e095dfa commit 03a6d5c
Show file tree
Hide file tree
Showing 6 changed files with 155 additions and 0 deletions.
45 changes: 45 additions & 0 deletions erungufor/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>no.nav.pensjon.pesys-esb-wsclient</groupId>
<artifactId>pesys-esb-wsclient-legacy</artifactId>
<version>${revision}</version>
</parent>

<artifactId>erungufor</artifactId>

<build>
<plugins>
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<executions>
<execution>
<id>generate-beregning</id>
<phase>process-sources</phase>
<configuration>
<defaultOptions>
<extraargs>
<!--change Boolean type getters to getXXX (to ensure status quo with starting point) -->
<extraarg>-xjc-Xbg</extraarg>
<!-- Add namespace on element, not on package level -->
<extraarg>-xjc-npa</extraarg>
</extraargs>
</defaultOptions>
<includes>
<include>*.wsdl</include>
</includes>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
23 changes: 23 additions & 0 deletions erungufor/src/main/resources/wsdl/Binding.wsdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?><wsdl:definitions name="Binding" targetNamespace="http://no.nav/ekstern/pensjon/tjenester/erUngUfor/v1/Binding/" xmlns:erUngUfor="http://nav.no/ekstern/pensjon/tjenester/erUngUfor/v1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://no.nav/ekstern/pensjon/tjenester/erUngUfor/v1/Binding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:import location="v1/erUngUfor.wsdl" namespace="http://nav.no/ekstern/pensjon/tjenester/erUngUfor/v1"/>
<wsdl:binding name="ErUngUforBinding" type="erUngUfor:ErUngUfor">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="erUngUfor">
<soap:operation soapAction="http://no.nav/ekstern/pensjon/tjenester/erUngUfor/v1/Binding/erUngUfor/"/>
<wsdl:input>
<soap:body parts="parameters" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body parts="parameters" use="literal"/>
</wsdl:output>
<wsdl:fault name="erUngUforFault">
<soap:fault name="erUngUforFault" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ErUngUfor">
<wsdl:port binding="tns:ErUngUforBinding" name="ErUngUforPort">
<soap:address location="http://no.nav/ekstern/pensjon/tjenester/erUngUfor/v1/Binding/ErUngUfor/ErUngUforPort"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
19 changes: 19 additions & 0 deletions erungufor/src/main/resources/wsdl/feil/feil.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?><xsd:schema targetNamespace="http://nav.no/ekstern/pensjon/tjenester/erUngUfor/feil/v1" version="1.0" xmlns:feil="http://nav.no/ekstern/pensjon/tjenester/erUngUfor/feil/v1" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="StelvioFault">
<xsd:sequence>
<xsd:element minOccurs="0" name="errorMessage" type="xsd:string"/>
<xsd:element minOccurs="0" name="errorSource" type="xsd:string"/>
<xsd:element minOccurs="0" name="errorType" type="xsd:string"/>
<xsd:element minOccurs="0" name="rootCause" type="xsd:string"/>
<xsd:element minOccurs="0" name="dateTimeStamp" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="PersonIkkeFunnet">
<xsd:annotation>
<xsd:documentation>&lt;p&gt;Feilen returneres hvis kildesystemet ikke kjenner til fnr. Dette gjelder også hvis fnr tidligere har tilhørt en person som nå har byttet fnr.&lt;/p&gt;</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="feil:StelvioFault"/>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
27 changes: 27 additions & 0 deletions erungufor/src/main/resources/wsdl/meldinger/meldinger.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?><xsd:schema targetNamespace="http://nav.no/ekstern/pensjon/tjenester/erUngUfor/meldinger/v1" version="1.0" xmlns:meldinger="http://nav.no/ekstern/pensjon/tjenester/erUngUfor/meldinger/v1" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="ErUngUforRequest">
<xsd:sequence>
<xsd:element name="fnr" type="xsd:string">
<xsd:annotation>
<xsd:documentation>&lt;p&gt;Inneholder fnr til personen det spørres på&lt;/p&gt;</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element minOccurs="0" name="dato" type="xsd:date">
<xsd:annotation>
<xsd:documentation>&lt;p&gt;Dersom den ikke er satt, settes dato til dagens dato. Dersom dato er senere enn dagens dato settes dato lik dagens dato.&lt;/p&gt;</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ErUngUforUtvidelse1"/>
<xsd:complexType name="ErUngUforResponse">
<xsd:sequence>
<xsd:element minOccurs="0" name="erUngUfor" type="xsd:boolean">
<xsd:annotation>
<xsd:documentation>&lt;p&gt;Felt som sier om personen det spørres på er kategorisert som "Ung Ufør" eller ikke&lt;/p&gt;</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element minOccurs="0" name="utvidelse" type="meldinger:ErUngUforUtvidelse1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
40 changes: 40 additions & 0 deletions erungufor/src/main/resources/wsdl/v1/erUngUfor.wsdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?><wsdl:definitions name="erUngUfor" targetNamespace="http://nav.no/ekstern/pensjon/tjenester/erUngUfor/v1" xmlns:tns="http://nav.no/ekstern/pensjon/tjenester/erUngUfor/v1" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<xsd:schema targetNamespace="http://nav.no/ekstern/pensjon/tjenester/erUngUfor/v1" xmlns:feil="http://nav.no/ekstern/pensjon/tjenester/erUngUfor/feil/v1" xmlns:meldinger="http://nav.no/ekstern/pensjon/tjenester/erUngUfor/meldinger/v1">
<xsd:import namespace="http://nav.no/ekstern/pensjon/tjenester/erUngUfor/feil/v1" schemaLocation="../feil/feil.xsd"/>
<xsd:import namespace="http://nav.no/ekstern/pensjon/tjenester/erUngUfor/meldinger/v1" schemaLocation="../meldinger/meldinger.xsd"/>
<xsd:element name="erUngUfor">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="request" type="meldinger:ErUngUforRequest"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="erUngUforResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" name="response" type="meldinger:ErUngUforResponse"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="erUngUforpersonIkkeFunnet" type="feil:PersonIkkeFunnet"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="erUngUforRequest">
<wsdl:part element="tns:erUngUfor" name="parameters"/>
</wsdl:message>
<wsdl:message name="erUngUforResponse">
<wsdl:part element="tns:erUngUforResponse" name="parameters"/>
</wsdl:message>
<wsdl:message name="erUngUforFault">
<wsdl:part element="tns:erUngUforpersonIkkeFunnet" name="personIkkeFunnet"/>
</wsdl:message>
<wsdl:portType name="ErUngUfor">
<wsdl:operation name="erUngUfor">
<wsdl:documentation>&lt;p&gt;Tjenesten tilbyr konsument informasjon om en person er kategorisert som "Ung Ufør" eller ikke.&lt;/p&gt; </wsdl:documentation>
<wsdl:input message="tns:erUngUforRequest"/>
<wsdl:output message="tns:erUngUforResponse"/>
<wsdl:fault message="tns:erUngUforFault" name="erUngUforFault"/>
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<module>pesys-esb-wsclient-bom</module>
<module>ekstern-pensjon-tjeneste-beregning</module>
<module>samhandler</module>
<module>erungufor</module>
</modules>

<scm>
Expand Down

0 comments on commit 03a6d5c

Please sign in to comment.