EndPoint =“https:128.0.0.1/test/wsdl“;
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ghe="http://gheo1.test.com">
<soapenv:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username>test_user</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">test123</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
<soapheader:loginInformation xmlns:soapheader="com.test.common">
<soapheader:loginUserID>USERID</soapheader:loginUserID>
<soapheader:loginUserType>CUSTOMER</soapheader:loginUserType>
<soapheader:loginUserUniqueKey>123456</soapheader:loginUserUniqueKey>
<soapheader:loginUserRole>CUSTOMER</soapheader:loginUserRole>
</soapheader:loginInformation>
</soapenv:Header>
<soapenv:Body>
<ghe:Request>
<!--Optional:-->
<arg0>
<!--Optional:-->
<accountNumber>123</accountNumber>
<!--Optional:-->
<groupNumber>456</groupNumber>
<!--Optional:-->
<authGroupNumber>789</authGroupNumber>
<!--Optional:-->
<authAccountNumber>123</authAccountNumber>
<!--Optional:-->
<authCertificateNumber>555</authCertificateNumber>
</arg0>
</ghe:Request>
</soapenv:Body>
</soapenv:Envelope>
我有一个WSDL文件,如上所述,我不知道如何调用这个头信息。
任何人都可以帮助我给予一个java轴的例子使用上面的xml,谢谢。
使用其他Web服务框架是可以的。
1条答案
按热度按时间wpx232ag1#
用户简单的java与HTTP调用:
public class footer {
}