Skip to content

A simple demo which combines SpringBoot with webservice.

Notifications You must be signed in to change notification settings

wangk2014/SpringBoot_WebService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringBoot_WebService

A simple demo which combines SpringBoot with webservice.


define the .xsd file

tips: the request and response body should have same prefix, and have suffix explicitly.


Get wsdl file

http://127.0.0.1:8844/ws/define.wsdl


Test

Request

Post Xml(test/xml) http://127.0.0.1:8844/ws

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:gs="http://www.wk.cn/webservice">
    <soapenv:Header/>
    <soapenv:Body>
        <gs:createSuspectIrisRequest>
            <gs:xmlData>7</gs:xmlData>
            <gs:operName>8</gs:operName>
            <gs:password>9</gs:password>
        </gs:createSuspectIrisRequest>
    </soapenv:Body>
</soapenv:Envelope>

Response

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header/>
    <SOAP-ENV:Body>
        <ns2:createSuspectIrisResponse xmlns:ns2="http://www.wk.cn/webservice">
            <ns2:errorCode>1</ns2:errorCode>
            <ns2:errorDescriptiion>error</ns2:errorDescriptiion>
        </ns2:createSuspectIrisResponse>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Request

Post Xml(test/xml) http://127.0.0.1:8844/ws

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:gs="http://www.wk.cn/webservice">
    <soapenv:Header/>
    <soapenv:Body>
        <gs:createMatchedInfoRequest>
            <gs:suspectID>1</gs:suspectID>
            <gs:matchedSuspectID>2</gs:matchedSuspectID>
            <gs:operName>3</gs:operName>
            <gs:password>4</gs:password>
        </gs:createMatchedInfoRequest>
    </soapenv:Body>
</soapenv:Envelope>

Response

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header/>
    <SOAP-ENV:Body>
        <ns2:createMatchedInfoResponse xmlns:ns2="http://www.wk.cn/webservice">
            <ns2:errorCode>0</ns2:errorCode>
            <ns2:errorDescriptiion>success</ns2:errorDescriptiion>
        </ns2:createMatchedInfoResponse>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

About

A simple demo which combines SpringBoot with webservice.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages