Postman calls webservice service

 

 


 

Test service address http://localhost:8080/cloud-web/user

request method POST

Request Header information (actual test, do not set Accept and soapaction, can also successfully request and respond )

           Accept                text/xml, multipart/related

          Content-Type      text/xml; charset=utf-8

           soapaction          http://service.com/UserService/getRequest

Request Body Information

<?xml version="1.0" ?>
<S:Envelope
    xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
        <ns2:get
            xmlns:ns2="http://service.com/">
            <arg0>Zhang San</arg0>
        </ns2:get>
    </S:Body>
</S:Envelope>

 

 

request response information

<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
        <ns2:getResponse xmlns:ns2="http://service.com/">
            <return>Hello, Zhang San</return>
        </ns2:getResponse>
    </S:Body>
</S:Envelope>

 

 

 

 Additional instructions:

The webservice service used in the above test is published by JDK1.8 (JAX-WS).

 

 

 

 

 

 

 

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326264979&siteId=291194637